2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 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.
|
|
|
|
//
|
2017-07-27 01:19:27 +02:00
|
|
|
// $hash=ebe89d21fa4e2640e94ec370773720738a52b58a$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8value_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8context_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/v8exception_cpptoc.h"
|
2017-02-09 23:07:43 +01:00
|
|
|
#include "libcef_dll/ctocpp/base_ref_counted_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8accessor_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8handler_ctocpp.h"
|
2016-10-27 19:23:56 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8interceptor_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_undefined() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateUndefined();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_null() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateNull();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_bool(int value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateBool(value ? true : false);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_int(int32 value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateInt(value);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_uint(uint32 value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateUInt(value);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_double(double value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateDouble(value);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(const cef_time_t* date) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: date; type: simple_byref_const
|
|
|
|
DCHECK(date);
|
|
|
|
if (!date)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Translate param: date; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTime dateVal = date ? *date : CefTime();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateDate(dateVal);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_string(const cef_string_t* value) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: value
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateString(CefString(value));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_object(
|
|
|
|
cef_v8accessor_t* accessor,
|
2016-10-27 19:23:56 +02:00
|
|
|
cef_v8interceptor_t* 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
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval =
|
|
|
|
CefV8Value::CreateObject(CefV8AccessorCToCpp::Wrap(accessor),
|
|
|
|
CefV8InterceptorCToCpp::Wrap(interceptor));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_array(int length) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateArray(length);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_function(
|
|
|
|
const cef_string_t* name,
|
2012-04-03 03:34:16 +02:00
|
|
|
cef_v8handler_t* handler) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: name; type: string_byref_const
|
|
|
|
DCHECK(name);
|
|
|
|
if (!name)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: handler; type: refptr_diff
|
|
|
|
DCHECK(handler);
|
|
|
|
if (!handler)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateFunction(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(name), CefV8HandlerCToCpp::Wrap(handler));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2012-10-29 22:46:02 +01:00
|
|
|
int CEF_CALLBACK v8value_is_valid(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsValid();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
int CEF_CALLBACK v8value_is_undefined(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsUndefined();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_null(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsNull();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_bool(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsBool();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_int(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsInt();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_uint(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsUInt();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_double(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsDouble();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_date(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsDate();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_string(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsString();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_object(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsObject();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_array(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsArray();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_function(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsFunction();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_same(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8value_t* that) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that);
|
|
|
|
if (!that)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->IsSame(CefV8ValueCppToC::Unwrap(that));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_get_bool_value(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->GetBoolValue();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32 CEF_CALLBACK v8value_get_int_value(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int32 _retval = CefV8ValueCppToC::Get(self)->GetIntValue();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32 CEF_CALLBACK v8value_get_uint_value(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
uint32 _retval = CefV8ValueCppToC::Get(self)->GetUIntValue();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
double CEF_CALLBACK v8value_get_double_value(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = CefV8ValueCppToC::Get(self)->GetDoubleValue();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_time_t CEF_CALLBACK v8value_get_date_value(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return CefTime();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_time_t _retval = CefV8ValueCppToC::Get(self)->GetDateValue();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
v8value_get_string_value(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefV8ValueCppToC::Get(self)->GetStringValue();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_is_user_created(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsUserCreated();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_has_exception(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->HasException();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_v8exception_t* CEF_CALLBACK
|
|
|
|
v8value_get_exception(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Exception> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->GetException();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ExceptionCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_clear_exception(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->ClearException();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_will_rethrow_exceptions(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->WillRethrowExceptions();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_set_rethrow_exceptions(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int rethrow) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->SetRethrowExceptions(rethrow ? true : false);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_has_value_bykey(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* key) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->HasValue(CefString(key));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_has_value_byindex(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->HasValue(index);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_delete_value_bykey(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* key) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->DeleteValue(CefString(key));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_delete_value_byindex(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->DeleteValue(index);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8value_t* CEF_CALLBACK
|
|
|
|
v8value_get_value_bykey(struct _cef_v8value_t* self, const cef_string_t* key) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->GetValue(CefString(key));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8value_t* CEF_CALLBACK
|
|
|
|
v8value_get_value_byindex(struct _cef_v8value_t* self, int index) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8ValueCppToC::Get(self)->GetValue(index);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_set_value_bykey(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* key,
|
|
|
|
struct _cef_v8value_t* value,
|
|
|
|
cef_v8_propertyattribute_t attribute) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value);
|
|
|
|
if (!value)
|
|
|
|
return 0;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->SetValue(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(key), CefV8ValueCppToC::Unwrap(value), attribute);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_set_value_byindex(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
struct _cef_v8value_t* value) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return 0;
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value);
|
|
|
|
if (!value)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->SetValue(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, CefV8ValueCppToC::Unwrap(value));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
v8value_set_value_byaccessor(struct _cef_v8value_t* self,
|
|
|
|
const cef_string_t* key,
|
|
|
|
cef_v8_accesscontrol_t settings,
|
|
|
|
cef_v8_propertyattribute_t attribute) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
2012-09-26 23:26:32 +02:00
|
|
|
// Unverified params: key
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->SetValue(CefString(key), settings,
|
|
|
|
attribute);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_get_keys(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_list_t keys) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: keys; type: string_vec_byref
|
|
|
|
DCHECK(keys);
|
|
|
|
if (!keys)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Translate param: keys; type: string_vec_byref
|
|
|
|
std::vector<CefString> keysList;
|
|
|
|
transfer_string_list_contents(keys, keysList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->GetKeys(keysList);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Restore param: keys; type: string_vec_byref
|
|
|
|
cef_string_list_clear(keys);
|
|
|
|
transfer_string_list_contents(keysList, keys);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_set_user_data(struct _cef_v8value_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_base_ref_counted_t* user_data) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Unverified params: user_data
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->SetUserData(
|
2017-02-09 23:07:43 +01:00
|
|
|
CefBaseRefCountedCToCpp::Wrap(user_data));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_base_ref_counted_t* CEF_CALLBACK
|
|
|
|
v8value_get_user_data(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBaseRefCounted> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->GetUserData();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
2017-02-09 23:07:43 +01:00
|
|
|
return CefBaseRefCountedCToCpp::Unwrap(_retval);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
v8value_get_externally_allocated_memory(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefV8ValueCppToC::Get(self)->GetExternallyAllocatedMemory();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
v8value_adjust_externally_allocated_memory(struct _cef_v8value_t* self,
|
|
|
|
int change_in_bytes) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefV8ValueCppToC::Get(self)->AdjustExternallyAllocatedMemory(
|
|
|
|
change_in_bytes);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_get_array_length(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefV8ValueCppToC::Get(self)->GetArrayLength();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
v8value_get_function_name(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefV8ValueCppToC::Get(self)->GetFunctionName();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_v8handler_t* CEF_CALLBACK
|
|
|
|
v8value_get_function_handler(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Handler> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->GetFunctionHandler();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefV8HandlerCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8value_t* CEF_CALLBACK
|
|
|
|
v8value_execute_function(struct _cef_v8value_t* self,
|
|
|
|
struct _cef_v8value_t* object,
|
|
|
|
size_t argumentsCount,
|
|
|
|
struct _cef_v8value_t* const* arguments) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
DCHECK(argumentsCount == 0 || arguments);
|
|
|
|
if (argumentsCount > 0 && !arguments)
|
|
|
|
return NULL;
|
|
|
|
// Unverified params: object
|
|
|
|
|
|
|
|
// Translate param: arguments; type: refptr_vec_same_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefV8Value>> argumentsList;
|
2012-04-03 03:34:16 +02:00
|
|
|
if (argumentsCount > 0) {
|
|
|
|
for (size_t i = 0; i < argumentsCount; ++i) {
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> argumentsVal =
|
|
|
|
CefV8ValueCppToC::Unwrap(arguments[i]);
|
2015-06-06 00:06:48 +02:00
|
|
|
argumentsList.push_back(argumentsVal);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8ValueCppToC::Get(self)->ExecuteFunction(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefV8ValueCppToC::Unwrap(object), argumentsList);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8value_t* CEF_CALLBACK
|
|
|
|
v8value_execute_function_with_context(struct _cef_v8value_t* self,
|
|
|
|
cef_v8context_t* context,
|
|
|
|
struct _cef_v8value_t* object,
|
|
|
|
size_t argumentsCount,
|
|
|
|
struct _cef_v8value_t* const* arguments) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: context; type: refptr_same
|
|
|
|
DCHECK(context);
|
|
|
|
if (!context)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
DCHECK(argumentsCount == 0 || arguments);
|
|
|
|
if (argumentsCount > 0 && !arguments)
|
|
|
|
return NULL;
|
|
|
|
// Unverified params: object
|
|
|
|
|
|
|
|
// Translate param: arguments; type: refptr_vec_same_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefV8Value>> argumentsList;
|
2012-04-03 03:34:16 +02:00
|
|
|
if (argumentsCount > 0) {
|
|
|
|
for (size_t i = 0; i < argumentsCount; ++i) {
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> argumentsVal =
|
|
|
|
CefV8ValueCppToC::Unwrap(arguments[i]);
|
2015-06-06 00:06:48 +02:00
|
|
|
argumentsList.push_back(argumentsVal);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->ExecuteFunctionWithContext(
|
|
|
|
CefV8ContextCppToC::Unwrap(context), CefV8ValueCppToC::Unwrap(object),
|
|
|
|
argumentsList);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefV8ValueCppToC::CefV8ValueCppToC() {
|
|
|
|
GetStruct()->is_valid = v8value_is_valid;
|
|
|
|
GetStruct()->is_undefined = v8value_is_undefined;
|
|
|
|
GetStruct()->is_null = v8value_is_null;
|
|
|
|
GetStruct()->is_bool = v8value_is_bool;
|
|
|
|
GetStruct()->is_int = v8value_is_int;
|
|
|
|
GetStruct()->is_uint = v8value_is_uint;
|
|
|
|
GetStruct()->is_double = v8value_is_double;
|
|
|
|
GetStruct()->is_date = v8value_is_date;
|
|
|
|
GetStruct()->is_string = v8value_is_string;
|
|
|
|
GetStruct()->is_object = v8value_is_object;
|
|
|
|
GetStruct()->is_array = v8value_is_array;
|
|
|
|
GetStruct()->is_function = v8value_is_function;
|
|
|
|
GetStruct()->is_same = v8value_is_same;
|
|
|
|
GetStruct()->get_bool_value = v8value_get_bool_value;
|
|
|
|
GetStruct()->get_int_value = v8value_get_int_value;
|
|
|
|
GetStruct()->get_uint_value = v8value_get_uint_value;
|
|
|
|
GetStruct()->get_double_value = v8value_get_double_value;
|
|
|
|
GetStruct()->get_date_value = v8value_get_date_value;
|
|
|
|
GetStruct()->get_string_value = v8value_get_string_value;
|
|
|
|
GetStruct()->is_user_created = v8value_is_user_created;
|
|
|
|
GetStruct()->has_exception = v8value_has_exception;
|
|
|
|
GetStruct()->get_exception = v8value_get_exception;
|
|
|
|
GetStruct()->clear_exception = v8value_clear_exception;
|
|
|
|
GetStruct()->will_rethrow_exceptions = v8value_will_rethrow_exceptions;
|
|
|
|
GetStruct()->set_rethrow_exceptions = v8value_set_rethrow_exceptions;
|
|
|
|
GetStruct()->has_value_bykey = v8value_has_value_bykey;
|
|
|
|
GetStruct()->has_value_byindex = v8value_has_value_byindex;
|
|
|
|
GetStruct()->delete_value_bykey = v8value_delete_value_bykey;
|
|
|
|
GetStruct()->delete_value_byindex = v8value_delete_value_byindex;
|
|
|
|
GetStruct()->get_value_bykey = v8value_get_value_bykey;
|
|
|
|
GetStruct()->get_value_byindex = v8value_get_value_byindex;
|
|
|
|
GetStruct()->set_value_bykey = v8value_set_value_bykey;
|
|
|
|
GetStruct()->set_value_byindex = v8value_set_value_byindex;
|
|
|
|
GetStruct()->set_value_byaccessor = v8value_set_value_byaccessor;
|
|
|
|
GetStruct()->get_keys = v8value_get_keys;
|
|
|
|
GetStruct()->set_user_data = v8value_set_user_data;
|
|
|
|
GetStruct()->get_user_data = v8value_get_user_data;
|
|
|
|
GetStruct()->get_externally_allocated_memory =
|
2012-04-03 03:34:16 +02:00
|
|
|
v8value_get_externally_allocated_memory;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->adjust_externally_allocated_memory =
|
2012-04-03 03:34:16 +02:00
|
|
|
v8value_adjust_externally_allocated_memory;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_array_length = v8value_get_array_length;
|
|
|
|
GetStruct()->get_function_name = v8value_get_function_name;
|
|
|
|
GetStruct()->get_function_handler = v8value_get_function_handler;
|
|
|
|
GetStruct()->execute_function = v8value_execute_function;
|
|
|
|
GetStruct()->execute_function_with_context =
|
2012-04-03 03:34:16 +02:00
|
|
|
v8value_execute_function_with_context;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefV8Value>
|
|
|
|
CefCppToCRefCounted<CefV8ValueCppToC, CefV8Value, cef_v8value_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_v8value_t* s) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
2017-07-27 01:19:27 +02:00
|
|
|
base::AtomicRefCount
|
|
|
|
CefCppToCRefCounted<CefV8ValueCppToC, CefV8Value, cef_v8value_t>::DebugObjCt
|
|
|
|
ATOMIC_DECLARATION;
|
2012-04-03 03:34:16 +02:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefV8ValueCppToC,
|
|
|
|
CefV8Value,
|
|
|
|
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|