2016-01-08 20:00:27 +01:00
|
|
|
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
|
2012-04-03 03:34:16 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/base_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
2016-10-27 19:23:56 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8interceptor_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
|
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateUndefined() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_undefined();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateNull() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_null();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_bool(
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateInt(int32 value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_int(
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateUInt(uint32 value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_uint(
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_double(
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_date(
|
|
|
|
&date);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: value
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_string(
|
|
|
|
value.GetStruct());
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateObject(
|
2016-10-27 19:23:56 +02:00
|
|
|
CefRefPtr<CefV8Accessor> accessor,
|
|
|
|
CefRefPtr<CefV8Interceptor> interceptor) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2016-10-27 19:23:56 +02:00
|
|
|
// Unverified params: accessor, interceptor
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_object(
|
2016-10-27 19:23:56 +02:00
|
|
|
CefV8AccessorCppToC::Wrap(accessor),
|
|
|
|
CefV8InterceptorCppToC::Wrap(interceptor));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateArray(int length) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_array(
|
|
|
|
length);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
|
|
|
CefRefPtr<CefV8Handler> handler) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: name; type: string_byref_const
|
|
|
|
DCHECK(!name.empty());
|
|
|
|
if (name.empty())
|
|
|
|
return NULL;
|
|
|
|
// Verify param: handler; type: refptr_diff
|
|
|
|
DCHECK(handler.get());
|
|
|
|
if (!handler.get())
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = cef_v8value_create_function(
|
|
|
|
name.GetStruct(),
|
|
|
|
CefV8HandlerCppToC::Wrap(handler));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-10-29 22:46:02 +01:00
|
|
|
bool CefV8ValueCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2012-10-29 22:46:02 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_valid(_struct);
|
2012-10-29 22:46:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
bool CefV8ValueCToCpp::IsUndefined() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_undefined))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_undefined(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsNull() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_null))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_null(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsBool() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_bool))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_bool(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsInt() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_int))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_int(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsUInt() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_uint))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_uint(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsDouble() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_double))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_double(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsDate() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_date))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_date(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsString() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_string))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_string(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsObject() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_object))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_object(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsArray() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_array))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_array(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsFunction() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_function))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_function(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_same))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that.get());
|
|
|
|
if (!that.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_same(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefV8ValueCToCpp::Unwrap(that));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::GetBoolValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_bool_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_bool_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32 CefV8ValueCToCpp::GetIntValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_int_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int32 _retval = _struct->get_int_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32 CefV8ValueCToCpp::GetUIntValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_uint_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
uint32 _retval = _struct->get_uint_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
double CefV8ValueCToCpp::GetDoubleValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_double_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
double _retval = _struct->get_double_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefTime CefV8ValueCToCpp::GetDateValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_date_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefTime();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_time_t _retval = _struct->get_date_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefV8ValueCToCpp::GetStringValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string_value))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_string_value(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::IsUserCreated() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_user_created))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_user_created(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::HasException() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_exception))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_exception(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Exception> CefV8ValueCToCpp::GetException() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_exception))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8exception_t* _retval = _struct->get_exception(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ExceptionCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::ClearException() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, clear_exception))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->clear_exception(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::WillRethrowExceptions() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, will_rethrow_exceptions))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->will_rethrow_exceptions(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetRethrowExceptions(bool rethrow) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_rethrow_exceptions))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_rethrow_exceptions(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
rethrow);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::HasValue(const CefString& key) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_value_bykey))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_value_bykey(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
key.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::HasValue(int index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_value_byindex))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_value_byindex(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::DeleteValue(const CefString& key) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, delete_value_bykey))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->delete_value_bykey(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
key.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::DeleteValue(int index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, delete_value_byindex))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->delete_value_byindex(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_value_bykey))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _retval = _struct->get_value_bykey(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
key.GetStruct());
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_value_byindex))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _retval = _struct->get_value_byindex(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
|
|
|
CefRefPtr<CefV8Value> value, PropertyAttribute attribute) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_value_bykey))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_value_bykey(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
key.GetStruct(),
|
|
|
|
CefV8ValueCToCpp::Unwrap(value),
|
|
|
|
attribute);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_value_byindex))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_value_byindex(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
CefV8ValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
|
|
|
PropertyAttribute attribute) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_value_byaccessor))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_value_byaccessor(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
key.GetStruct(),
|
|
|
|
settings,
|
|
|
|
attribute);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_keys))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: keys; type: string_vec_byref
|
|
|
|
cef_string_list_t keysList = cef_string_list_alloc();
|
|
|
|
DCHECK(keysList);
|
|
|
|
if (keysList)
|
|
|
|
transfer_string_list_contents(keys, keysList);
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_keys(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
keysList);
|
|
|
|
|
|
|
|
// Restore param:keys; type: string_vec_byref
|
|
|
|
if (keysList) {
|
|
|
|
keys.clear();
|
|
|
|
transfer_string_list_contents(keysList, keys);
|
|
|
|
cef_string_list_free(keysList);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBase> user_data) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_user_data))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: user_data
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_user_data(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefBaseCppToC::Wrap(user_data));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_user_data))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_base_t* _retval = _struct->get_user_data(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefBaseCppToC::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefV8ValueCToCpp::GetExternallyAllocatedMemory() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_externally_allocated_memory))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_externally_allocated_memory(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefV8ValueCToCpp::AdjustExternallyAllocatedMemory(int change_in_bytes) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, adjust_externally_allocated_memory))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->adjust_externally_allocated_memory(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
change_in_bytes);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefV8ValueCToCpp::GetArrayLength() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_array_length))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_array_length(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefV8ValueCToCpp::GetFunctionName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_function_name))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_function_name(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_function_handler))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8handler_t* _retval = _struct->get_function_handler(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefV8HandlerCppToC::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunction(
|
|
|
|
CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, execute_function))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: object
|
|
|
|
|
|
|
|
// Translate param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
const size_t argumentsCount = arguments.size();
|
|
|
|
cef_v8value_t** argumentsList = NULL;
|
|
|
|
if (argumentsCount > 0) {
|
|
|
|
argumentsList = new cef_v8value_t*[argumentsCount];
|
|
|
|
DCHECK(argumentsList);
|
|
|
|
if (argumentsList) {
|
|
|
|
for (size_t i = 0; i < argumentsCount; ++i) {
|
|
|
|
argumentsList[i] = CefV8ValueCToCpp::Unwrap(arguments[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _retval = _struct->execute_function(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefV8ValueCToCpp::Unwrap(object),
|
|
|
|
argumentsCount,
|
|
|
|
argumentsList);
|
|
|
|
|
|
|
|
// Restore param:arguments; type: refptr_vec_same_byref_const
|
|
|
|
if (argumentsList)
|
|
|
|
delete [] argumentsList;
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
|
|
|
CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> object,
|
|
|
|
const CefV8ValueList& arguments) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, execute_function_with_context))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: context; type: refptr_same
|
|
|
|
DCHECK(context.get());
|
|
|
|
if (!context.get())
|
|
|
|
return NULL;
|
|
|
|
// Unverified params: object
|
|
|
|
|
|
|
|
// Translate param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
const size_t argumentsCount = arguments.size();
|
|
|
|
cef_v8value_t** argumentsList = NULL;
|
|
|
|
if (argumentsCount > 0) {
|
|
|
|
argumentsList = new cef_v8value_t*[argumentsCount];
|
|
|
|
DCHECK(argumentsList);
|
|
|
|
if (argumentsList) {
|
|
|
|
for (size_t i = 0; i < argumentsCount; ++i) {
|
|
|
|
argumentsList[i] = CefV8ValueCToCpp::Unwrap(arguments[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8value_t* _retval = _struct->execute_function_with_context(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefV8ContextCToCpp::Unwrap(context),
|
|
|
|
CefV8ValueCToCpp::Unwrap(object),
|
|
|
|
argumentsCount,
|
|
|
|
argumentsList);
|
|
|
|
|
|
|
|
// Restore param:arguments; type: refptr_vec_same_byref_const
|
|
|
|
if (argumentsList)
|
|
|
|
delete [] argumentsList;
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefV8ValueCToCpp::CefV8ValueCToCpp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_v8value_t* CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
|
|
|
cef_v8value_t>::UnwrapDerived(CefWrapperType type, CefV8Value* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2014-07-15 00:18:51 +02:00
|
|
|
template<> base::AtomicRefCount CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
2012-04-03 03:34:16 +02:00
|
|
|
cef_v8value_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
|
|
|
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|