2013-01-17 19:39:09 +01:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 23:04:50 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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.
|
2010-10-03 23:04:50 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/base_cpptoc.h"
|
2011-04-07 03:58:49 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
2011-02-21 23:44:06 +01:00
|
|
|
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
|
2011-11-10 23:57:23 +01:00
|
|
|
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
|
2010-11-22 18:49:46 +01:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateUndefined() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateNull() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateInt(int32 value) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2011-05-23 19:43:53 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateObject(
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Accessor> accessor) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-04-07 03:58:49 +02:00
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
// Unverified params: accessor
|
2011-04-07 03:58:49 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
2012-05-23 21:01:04 +02:00
|
|
|
cef_v8value_t* _retval = cef_v8value_create_object(
|
2011-12-08 02:38:30 +01:00
|
|
|
CefV8AccessorCppToC::Wrap(accessor));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2011-04-07 03:58:49 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateArray(int length) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2012-05-23 21:01:04 +02:00
|
|
|
cef_v8value_t* _retval = cef_v8value_create_array(
|
|
|
|
length);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Handler> handler) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-10-29 22:54:57 +01:00
|
|
|
bool CefV8ValueCToCpp::IsValid() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_valid))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_valid(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsUndefined() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_undefined))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_undefined(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsNull() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_null))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_null(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsBool() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_bool))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_bool(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsInt() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_int))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_int(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
bool CefV8ValueCToCpp::IsUInt() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_uint))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_uint(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsDouble() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_double))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_double(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsDate() {
|
2011-05-23 19:43:53 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_date))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_date(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-05-23 19:43:53 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsString() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_string))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_string(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsObject() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_object))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_object(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsArray() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_array))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_array(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsFunction() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_function))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_function(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_same))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that.get());
|
|
|
|
if (!that.get())
|
2011-04-07 03:58:49 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_same(struct_,
|
|
|
|
CefV8ValueCToCpp::Unwrap(that));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-04-07 03:58:49 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::GetBoolValue() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_bool_value))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_bool_value(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
int32 CefV8ValueCToCpp::GetIntValue() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_int_value))
|
2010-10-03 23:04:50 +02:00
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2012-05-23 21:01:04 +02:00
|
|
|
int32 _retval = struct_->get_int_value(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32 CefV8ValueCToCpp::GetUIntValue() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_uint_value))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
uint32 _retval = struct_->get_uint_value(struct_);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
double CefV8ValueCToCpp::GetDoubleValue() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_double_value))
|
|
|
|
return 0;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = struct_->get_double_value(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefTime CefV8ValueCToCpp::GetDateValue() {
|
2011-05-23 19:43:53 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_date_value))
|
|
|
|
return CefTime();
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_time_t _retval = struct_->get_date_value(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-05-23 19:43:53 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefV8ValueCToCpp::GetStringValue() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_string_value))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_string_value(struct_);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
bool CefV8ValueCToCpp::IsUserCreated() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_user_created))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_user_created(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::HasException() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, has_exception))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->has_exception(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Exception> CefV8ValueCToCpp::GetException() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_exception))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8exception_t* _retval = struct_->get_exception(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ExceptionCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::ClearException() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, clear_exception))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->clear_exception(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::WillRethrowExceptions() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, will_rethrow_exceptions))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->will_rethrow_exceptions(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefV8ValueCToCpp::SetRethrowExceptions(bool rethrow) {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_rethrow_exceptions))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->set_rethrow_exceptions(struct_,
|
|
|
|
rethrow);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::HasValue(const CefString& key) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, has_value_bykey))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:39:21 +02:00
|
|
|
// Unverified params: key
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->has_value_bykey(struct_,
|
|
|
|
key.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::HasValue(int index) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, has_value_byindex))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-08 11:22:15 +01:00
|
|
|
// Verify param: index; type: simple_byval
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_GE(index, 0);
|
2011-12-08 11:22:15 +01:00
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->has_value_byindex(struct_,
|
|
|
|
index);
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::DeleteValue(const CefString& key) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, delete_value_bykey))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:39:21 +02:00
|
|
|
// Unverified params: key
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->delete_value_bykey(struct_,
|
|
|
|
key.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::DeleteValue(int index) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, delete_value_byindex))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-08 11:22:15 +01:00
|
|
|
// Verify param: index; type: simple_byval
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_GE(index, 0);
|
2011-12-08 11:22:15 +01:00
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->delete_value_byindex(struct_,
|
|
|
|
index);
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_value_bykey))
|
2011-10-03 12:25:14 +02:00
|
|
|
return NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:39:21 +02:00
|
|
|
// Unverified params: key
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = struct_->get_value_bykey(struct_,
|
2010-11-22 18:49:46 +01:00
|
|
|
key.GetStruct());
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_value_byindex))
|
2011-10-03 12:25:14 +02:00
|
|
|
return NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 11:22:15 +01:00
|
|
|
// Verify param: index; type: simple_byval
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_GE(index, 0);
|
2011-12-08 11:22:15 +01:00
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = struct_->get_value_byindex(struct_,
|
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Value> value, PropertyAttribute attribute) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_value_bykey))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
2011-11-16 23:12:54 +01:00
|
|
|
DCHECK(value.get());
|
2011-12-08 02:38:30 +01:00
|
|
|
if (!value.get())
|
2011-11-16 23:12:54 +01:00
|
|
|
return false;
|
2012-09-26 23:39:21 +02:00
|
|
|
// Unverified params: key
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->set_value_bykey(struct_,
|
|
|
|
key.GetStruct(),
|
|
|
|
CefV8ValueCToCpp::Unwrap(value),
|
|
|
|
attribute);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_value_byindex))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-08 11:22:15 +01:00
|
|
|
// Verify param: index; type: simple_byval
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_GE(index, 0);
|
2011-12-08 11:22:15 +01:00
|
|
|
if (index < 0)
|
|
|
|
return false;
|
2011-12-08 02:38:30 +01:00
|
|
|
// Verify param: value; type: refptr_same
|
2011-11-16 23:12:54 +01:00
|
|
|
DCHECK(value.get());
|
2011-12-08 02:38:30 +01:00
|
|
|
if (!value.get())
|
2011-11-16 23:12:54 +01:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->set_value_byindex(struct_,
|
|
|
|
index,
|
|
|
|
CefV8ValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2011-04-07 03:58:49 +02:00
|
|
|
bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
2012-01-10 00:46:23 +01:00
|
|
|
PropertyAttribute attribute) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_value_byaccessor))
|
2011-04-07 03:58:49 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-09-26 23:39:21 +02:00
|
|
|
// Unverified params: key
|
2011-11-16 23:12:54 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->set_value_byaccessor(struct_,
|
|
|
|
key.GetStruct(),
|
|
|
|
settings,
|
|
|
|
attribute);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-04-07 03:58:49 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_keys))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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
|
|
|
|
int _retval = struct_->get_keys(struct_,
|
|
|
|
keysList);
|
2011-11-15 00:43:52 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Restore param:keys; type: string_vec_byref
|
|
|
|
if (keysList) {
|
|
|
|
keys.clear();
|
|
|
|
transfer_string_list_contents(keysList, keys);
|
|
|
|
cef_string_list_free(keysList);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBase> user_data) {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_user_data))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: user_data
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->set_user_data(struct_,
|
|
|
|
CefBaseCppToC::Wrap(user_data));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_user_data))
|
2011-10-03 12:25:14 +02:00
|
|
|
return NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_base_t* _retval = struct_->get_user_data(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefBaseCppToC::Unwrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-19 19:52:59 +01:00
|
|
|
int CefV8ValueCToCpp::GetExternallyAllocatedMemory() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_externally_allocated_memory))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_externally_allocated_memory(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefV8ValueCToCpp::AdjustExternallyAllocatedMemory(int change_in_bytes) {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, adjust_externally_allocated_memory))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->adjust_externally_allocated_memory(struct_,
|
|
|
|
change_in_bytes);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
int CefV8ValueCToCpp::GetArrayLength() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_array_length))
|
2010-10-03 23:04:50 +02:00
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_array_length(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefV8ValueCToCpp::GetFunctionName() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_function_name))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_function_name(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_function_handler))
|
2011-10-03 12:25:14 +02:00
|
|
|
return NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8handler_t* _retval = struct_->get_function_handler(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefV8HandlerCppToC::Unwrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunction(
|
|
|
|
CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, execute_function))
|
2012-05-23 21:01:04 +02:00
|
|
|
return NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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]);
|
|
|
|
}
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2012-05-23 21:01:04 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = struct_->execute_function(struct_,
|
2011-12-08 02:38:30 +01:00
|
|
|
CefV8ValueCToCpp::Unwrap(object),
|
|
|
|
argumentsCount,
|
2012-05-23 21:01:04 +02:00
|
|
|
argumentsList);
|
2011-11-10 23:57:23 +01:00
|
|
|
|
2012-02-14 18:41:35 +01:00
|
|
|
// Restore param:arguments; type: refptr_vec_same_byref_const
|
|
|
|
if (argumentsList)
|
|
|
|
delete [] argumentsList;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
2011-02-21 23:44:06 +01:00
|
|
|
CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> object,
|
2012-05-23 21:01:04 +02:00
|
|
|
const CefV8ValueList& arguments) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, execute_function_with_context))
|
2012-05-23 21:01:04 +02:00
|
|
|
return NULL;
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Verify param: context; type: refptr_same
|
|
|
|
DCHECK(context.get());
|
|
|
|
if (!context.get())
|
2012-05-23 21:01:04 +02:00
|
|
|
return NULL;
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-05-23 21:01:04 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_v8value_t* _retval = struct_->execute_function_with_context(struct_,
|
2011-12-08 02:38:30 +01:00
|
|
|
CefV8ContextCToCpp::Unwrap(context),
|
|
|
|
CefV8ValueCToCpp::Unwrap(object),
|
|
|
|
argumentsCount,
|
2012-05-23 21:01:04 +02:00
|
|
|
argumentsList);
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2012-02-14 18:41:35 +01:00
|
|
|
// Restore param:arguments; type: refptr_vec_same_byref_const
|
|
|
|
if (argumentsList)
|
|
|
|
delete [] argumentsList;
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2012-05-23 21:01:04 +02:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ValueCToCpp::Wrap(_retval);
|
2011-02-21 23:44:06 +01:00
|
|
|
}
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#ifndef NDEBUG
|
2010-12-07 02:30:26 +01:00
|
|
|
template<> long CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
|
|
|
cef_v8value_t>::DebugObjCt = 0;
|
2010-10-03 23:04:50 +02:00
|
|
|
#endif
|
|
|
|
|