2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 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.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=b1970fff502586e8d6d473b36ec3d8008fbf7c2a$
|
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"
|
2018-04-10 21:37:33 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_int(int32_t value) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_uint(uint32_t value) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2022-05-31 22:28:43 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(cef_basetime_t date) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2022-05-31 22:28:43 +02:00
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateDate(date);
|
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);
|
|
|
|
}
|
|
|
|
|
2018-04-10 21:37:33 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_array_buffer(
|
|
|
|
void* buffer,
|
|
|
|
size_t length,
|
|
|
|
cef_v8array_buffer_release_callback_t* release_callback) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: release_callback; type: refptr_diff
|
|
|
|
DCHECK(release_callback);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!release_callback) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2023-10-25 20:20:55 +02:00
|
|
|
// Unverified params: buffer
|
2018-04-10 21:37:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateArrayBuffer(
|
|
|
|
buffer, length,
|
|
|
|
CefV8ArrayBufferReleaseCallbackCToCpp::Wrap(release_callback));
|
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!name) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: handler; type: refptr_diff
|
|
|
|
DCHECK(handler);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!handler) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2022-10-11 20:54:32 +02:00
|
|
|
CEF_EXPORT cef_v8value_t* cef_v8value_create_promise() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Value> _retval = CefV8Value::CreatePromise();
|
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-10-29 22:46:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-10-29 22:46:02 +01:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsArray();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-04-10 21:37:33 +02:00
|
|
|
int CEF_CALLBACK v8value_is_array_buffer(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-04-10 21:37:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsArrayBuffer();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
int CEF_CALLBACK v8value_is_function(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsFunction();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2022-10-11 20:54:32 +02:00
|
|
|
int CEF_CALLBACK v8value_is_promise(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2022-10-11 20:54:32 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-11 20:54:32 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->IsPromise();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!that) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->GetBoolValue();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
int32_t CEF_CALLBACK v8value_get_int_value(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2023-06-01 16:07:20 +02:00
|
|
|
int32_t _retval = CefV8ValueCppToC::Get(self)->GetIntValue();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
uint32_t CEF_CALLBACK v8value_get_uint_value(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2023-06-01 16:07:20 +02:00
|
|
|
uint32_t _retval = CefV8ValueCppToC::Get(self)->GetUIntValue();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = CefV8ValueCppToC::Get(self)->GetDoubleValue();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2022-05-31 22:28:43 +02:00
|
|
|
cef_basetime_t CEF_CALLBACK
|
|
|
|
v8value_get_date_value(struct _cef_v8value_t* self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2022-05-31 22:28:43 +02:00
|
|
|
return CefBaseTime();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2022-05-31 22:28:43 +02:00
|
|
|
cef_basetime_t _retval = CefV8ValueCppToC::Get(self)->GetDateValue();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!value) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!value) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: keys; type: string_vec_byref
|
|
|
|
DCHECK(keys);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!keys) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefV8ValueCppToC::Get(self)->GetArrayLength();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-04-10 21:37:33 +02:00
|
|
|
cef_v8array_buffer_release_callback_t* CEF_CALLBACK
|
|
|
|
v8value_get_array_buffer_release_callback(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-04-10 21:37:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8ArrayBufferReleaseCallback> _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->GetArrayBufferReleaseCallback();
|
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefV8ArrayBufferReleaseCallbackCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_neuter_array_buffer(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-04-10 21:37:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->NeuterArrayBuffer();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-10-25 20:20:55 +02:00
|
|
|
size_t CEF_CALLBACK
|
|
|
|
v8value_get_array_buffer_byte_length(struct _cef_v8value_t* self) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = CefV8ValueCppToC::Get(self)->GetArrayBufferByteLength();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void* CEF_CALLBACK v8value_get_array_buffer_data(struct _cef_v8value_t* self) {
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This manual implementation can be removed once support for 'void*'
|
|
|
|
// is integrated into the CEF translator tool (issue #3591).
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
void* _retval = CefV8ValueCppToC::Get(self)->GetArrayBufferData();
|
|
|
|
|
|
|
|
// Return type: simple_byaddr
|
|
|
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
DCHECK(argumentsCount == 0 || arguments);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (argumentsCount > 0 && !arguments) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: context; type: refptr_same
|
|
|
|
DCHECK(context);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!context) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: arguments; type: refptr_vec_same_byref_const
|
|
|
|
DCHECK(argumentsCount == 0 || arguments);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (argumentsCount > 0 && !arguments) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2022-10-11 20:54:32 +02:00
|
|
|
int CEF_CALLBACK v8value_resolve_promise(struct _cef_v8value_t* self,
|
|
|
|
struct _cef_v8value_t* arg) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2022-10-11 20:54:32 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-11 20:54:32 +02:00
|
|
|
// Unverified params: arg
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefV8ValueCppToC::Get(self)->ResolvePromise(
|
|
|
|
CefV8ValueCppToC::Unwrap(arg));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK v8value_reject_promise(struct _cef_v8value_t* self,
|
|
|
|
const cef_string_t* errorMsg) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2022-10-11 20:54:32 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-11 20:54:32 +02:00
|
|
|
// Verify param: errorMsg; type: string_byref_const
|
|
|
|
DCHECK(errorMsg);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!errorMsg) {
|
2022-10-11 20:54:32 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-11 20:54:32 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval =
|
|
|
|
CefV8ValueCppToC::Get(self)->RejectPromise(CefString(errorMsg));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _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;
|
2018-04-10 21:37:33 +02:00
|
|
|
GetStruct()->is_array_buffer = v8value_is_array_buffer;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->is_function = v8value_is_function;
|
2022-10-11 20:54:32 +02:00
|
|
|
GetStruct()->is_promise = v8value_is_promise;
|
2015-04-26 20:40:01 +02:00
|
|
|
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;
|
2018-04-10 21:37:33 +02:00
|
|
|
GetStruct()->get_array_buffer_release_callback =
|
|
|
|
v8value_get_array_buffer_release_callback;
|
|
|
|
GetStruct()->neuter_array_buffer = v8value_neuter_array_buffer;
|
2023-10-25 20:20:55 +02:00
|
|
|
GetStruct()->get_array_buffer_byte_length =
|
|
|
|
v8value_get_array_buffer_byte_length;
|
|
|
|
GetStruct()->get_array_buffer_data = v8value_get_array_buffer_data;
|
2015-04-26 20:40:01 +02:00
|
|
|
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;
|
2022-10-11 20:54:32 +02:00
|
|
|
GetStruct()->resolve_promise = v8value_resolve_promise;
|
|
|
|
GetStruct()->reject_promise = v8value_reject_promise;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefV8ValueCppToC::~CefV8ValueCppToC() {}
|
|
|
|
|
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) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefV8ValueCppToC,
|
|
|
|
CefV8Value,
|
|
|
|
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|