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=215fc5a9025e8b0cd3d1bc7259ad6e6ac53b2125$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
#include "include/capi/cef_app_capi.h"
|
2016-12-12 11:05:29 +01:00
|
|
|
#include "include/capi/cef_crash_util_capi.h"
|
2016-11-15 18:56:02 +01:00
|
|
|
#include "include/capi/cef_file_util_capi.h"
|
2021-08-28 03:55:15 +02:00
|
|
|
#include "include/capi/cef_i18n_util_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_origin_whitelist_capi.h"
|
2015-04-09 16:59:34 +02:00
|
|
|
#include "include/capi/cef_parser_capi.h"
|
2012-06-26 18:47:05 +02:00
|
|
|
#include "include/capi/cef_path_util_capi.h"
|
|
|
|
#include "include/capi/cef_process_util_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_scheme_capi.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "include/capi/cef_ssl_info_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_task_capi.h"
|
2012-10-18 00:45:49 +02:00
|
|
|
#include "include/capi/cef_trace_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_v8_capi.h"
|
2017-05-31 17:33:30 +02:00
|
|
|
#include "include/capi/test/cef_test_helpers_capi.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_app.h"
|
|
|
|
#include "include/cef_crash_util.h"
|
|
|
|
#include "include/cef_file_util.h"
|
2021-08-28 03:55:15 +02:00
|
|
|
#include "include/cef_i18n_util.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_origin_whitelist.h"
|
|
|
|
#include "include/cef_parser.h"
|
|
|
|
#include "include/cef_path_util.h"
|
|
|
|
#include "include/cef_process_util.h"
|
|
|
|
#include "include/cef_scheme.h"
|
|
|
|
#include "include/cef_ssl_info.h"
|
|
|
|
#include "include/cef_task.h"
|
|
|
|
#include "include/cef_trace.h"
|
|
|
|
#include "include/cef_v8.h"
|
2017-05-31 17:33:30 +02:00
|
|
|
#include "include/test/cef_test_helpers.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
2012-06-26 18:47:05 +02:00
|
|
|
#include "libcef_dll/cpptoc/command_line_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/frame_cpptoc.h"
|
2015-04-15 15:45:30 +02:00
|
|
|
#include "libcef_dll/cpptoc/value_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/app_ctocpp.h"
|
2014-02-05 21:35:45 +01:00
|
|
|
#include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
|
2013-12-17 23:04:35 +01:00
|
|
|
#include "libcef_dll/ctocpp/end_tracing_callback_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/task_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8handler_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2022-01-27 18:10:29 +01:00
|
|
|
#include "libcef_dll/template_util.h"
|
2014-07-09 20:03:43 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
CEF_EXPORT int cef_execute_process(const cef_main_args_t* args,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_app_t* application,
|
|
|
|
void* windows_sandbox_info) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: args; type: simple_byref_const
|
2012-04-03 03:34:16 +02:00
|
|
|
DCHECK(args);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!args) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-11-15 19:47:02 +01:00
|
|
|
// Unverified params: application, windows_sandbox_info
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: args; type: simple_byref_const
|
|
|
|
CefMainArgs argsVal = args ? *args : CefMainArgs();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
int _retval = CefExecuteProcess(argsVal, CefAppCToCpp::Wrap(application),
|
2017-05-17 11:29:28 +02:00
|
|
|
windows_sandbox_info);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
CEF_EXPORT int cef_initialize(const cef_main_args_t* args,
|
2017-05-17 11:29:28 +02:00
|
|
|
const struct _cef_settings_t* settings,
|
|
|
|
struct _cef_app_t* application,
|
|
|
|
void* windows_sandbox_info) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: args; type: simple_byref_const
|
2012-04-03 03:34:16 +02:00
|
|
|
DCHECK(args);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!args) {
|
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: settings; type: struct_byref_const
|
|
|
|
DCHECK(settings);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(settings)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid settings->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2013-11-15 19:47:02 +01:00
|
|
|
// Unverified params: application, windows_sandbox_info
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: args; type: simple_byref_const
|
|
|
|
CefMainArgs argsVal = args ? *args : CefMainArgs();
|
2012-04-03 03:34:16 +02:00
|
|
|
// Translate param: settings; type: struct_byref_const
|
|
|
|
CefSettings settingsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
settingsObj.Set(*settings, false);
|
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 =
|
2022-07-14 10:13:29 +02:00
|
|
|
CefInitialize(argsVal, settingsObj, CefAppCToCpp::Wrap(application),
|
2017-05-17 11:29:28 +02:00
|
|
|
windows_sandbox_info);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT void cef_shutdown() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
#if DCHECK_IS_ON()
|
|
|
|
shutdown_checker::SetIsShutdown();
|
|
|
|
#endif
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// Execute
|
|
|
|
CefShutdown();
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT void cef_do_message_loop_work() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefDoMessageLoopWork();
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT void cef_run_message_loop() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRunMessageLoop();
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT void cef_quit_message_loop() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefQuitMessageLoop();
|
|
|
|
}
|
|
|
|
|
2016-12-12 11:05:29 +01:00
|
|
|
CEF_EXPORT int cef_crash_reporting_enabled() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefCrashReportingEnabled();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT void cef_set_crash_key_value(const cef_string_t* key,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* value) {
|
2016-12-12 11:05:29 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: key; type: string_byref_const
|
|
|
|
DCHECK(key);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!key) {
|
2016-12-12 11:05:29 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-08 18:35:21 +01:00
|
|
|
// Unverified params: value
|
2016-12-12 11:05:29 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefSetCrashKeyValue(CefString(key), CefString(value));
|
2016-12-12 11:05:29 +01:00
|
|
|
}
|
|
|
|
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_EXPORT int cef_create_directory(const cef_string_t* full_path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: full_path; type: string_byref_const
|
|
|
|
DCHECK(full_path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!full_path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefCreateDirectory(CefString(full_path));
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_get_temp_directory(cef_string_t* temp_dir) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: temp_dir; type: string_byref
|
|
|
|
DCHECK(temp_dir);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!temp_dir) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Translate param: temp_dir; type: string_byref
|
|
|
|
CefString temp_dirStr(temp_dir);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefGetTempDirectory(temp_dirStr);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_create_new_temp_directory(const cef_string_t* prefix,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_t* new_temp_path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: new_temp_path; type: string_byref
|
|
|
|
DCHECK(new_temp_path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!new_temp_path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Unverified params: prefix
|
|
|
|
|
|
|
|
// Translate param: new_temp_path; type: string_byref
|
|
|
|
CefString new_temp_pathStr(new_temp_path);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefCreateNewTempDirectory(CefString(prefix), new_temp_pathStr);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_create_temp_directory_in_directory(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* base_dir,
|
|
|
|
const cef_string_t* prefix,
|
2016-11-15 18:56:02 +01:00
|
|
|
cef_string_t* new_dir) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: base_dir; type: string_byref_const
|
|
|
|
DCHECK(base_dir);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!base_dir) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Verify param: new_dir; type: string_byref
|
|
|
|
DCHECK(new_dir);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!new_dir) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Unverified params: prefix
|
|
|
|
|
|
|
|
// Translate param: new_dir; type: string_byref
|
|
|
|
CefString new_dirStr(new_dir);
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefCreateTempDirectoryInDirectory(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(base_dir), CefString(prefix), new_dirStr);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_directory_exists(const cef_string_t* path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefDirectoryExists(CefString(path));
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_delete_file(const cef_string_t* path, int recursive) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefDeleteFile(CefString(path), recursive ? true : false);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_zip_directory(const cef_string_t* src_dir,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* dest_file,
|
|
|
|
int include_hidden_files) {
|
2016-11-15 18:56:02 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: src_dir; type: string_byref_const
|
|
|
|
DCHECK(src_dir);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!src_dir) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Verify param: dest_file; type: string_byref_const
|
|
|
|
DCHECK(dest_file);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!dest_file) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefZipDirectory(CefString(src_dir), CefString(dest_file),
|
|
|
|
include_hidden_files ? true : false);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-07-11 21:02:44 +02:00
|
|
|
CEF_EXPORT void cef_load_crlsets_file(const cef_string_t* path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
2017-07-11 21:02:44 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-07-11 21:02:44 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefLoadCRLSetsFile(CefString(path));
|
|
|
|
}
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
CEF_EXPORT int cef_is_rtl() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefIsRTL();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_EXPORT int cef_add_cross_origin_whitelist_entry(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* source_origin,
|
|
|
|
const cef_string_t* target_protocol,
|
|
|
|
const cef_string_t* target_domain,
|
|
|
|
int allow_target_subdomains) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(source_origin);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!source_origin) {
|
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: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(target_protocol);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!target_protocol) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-04 20:45:44 +02:00
|
|
|
// Unverified params: target_domain
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefAddCrossOriginWhitelistEntry(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(source_origin), CefString(target_protocol),
|
|
|
|
CefString(target_domain), allow_target_subdomains ? true : false);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_remove_cross_origin_whitelist_entry(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* source_origin,
|
|
|
|
const cef_string_t* target_protocol,
|
|
|
|
const cef_string_t* target_domain,
|
|
|
|
int allow_target_subdomains) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(source_origin);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!source_origin) {
|
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: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(target_protocol);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!target_protocol) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-04 20:45:44 +02:00
|
|
|
// Unverified params: target_domain
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefRemoveCrossOriginWhitelistEntry(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(source_origin), CefString(target_protocol),
|
|
|
|
CefString(target_domain), allow_target_subdomains ? true : false);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_clear_cross_origin_whitelist() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefClearCrossOriginWhitelist();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2022-10-03 19:46:50 +02:00
|
|
|
CEF_EXPORT int cef_resolve_url(const cef_string_t* base_url,
|
|
|
|
const cef_string_t* relative_url,
|
|
|
|
cef_string_t* resolved_url) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: base_url; type: string_byref_const
|
|
|
|
DCHECK(base_url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!base_url) {
|
2022-10-03 19:46:50 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-03 19:46:50 +02:00
|
|
|
// Verify param: relative_url; type: string_byref_const
|
|
|
|
DCHECK(relative_url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!relative_url) {
|
2022-10-03 19:46:50 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-03 19:46:50 +02:00
|
|
|
// Verify param: resolved_url; type: string_byref
|
|
|
|
DCHECK(resolved_url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!resolved_url) {
|
2022-10-03 19:46:50 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-03 19:46:50 +02:00
|
|
|
|
|
|
|
// Translate param: resolved_url; type: string_byref
|
|
|
|
CefString resolved_urlStr(resolved_url);
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefResolveURL(CefString(base_url), CefString(relative_url),
|
|
|
|
resolved_urlStr);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_EXPORT int cef_parse_url(const cef_string_t* url,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_urlparts_t* parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!url) {
|
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: parts; type: struct_byref
|
|
|
|
DCHECK(parts);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(parts)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid parts->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Translate param: parts; type: struct_byref
|
|
|
|
CefURLParts partsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
partsObj.AttachTo(*parts);
|
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 = CefParseURL(CefString(url), partsObj);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Restore param: parts; type: struct_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
partsObj.DetachTo(*parts);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_create_url(const struct _cef_urlparts_t* parts,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_t* url) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: parts; type: struct_byref_const
|
|
|
|
DCHECK(parts);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(parts)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid parts->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: url; type: string_byref
|
|
|
|
DCHECK(url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!url) {
|
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: parts; type: struct_byref_const
|
|
|
|
CefURLParts partsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (parts) {
|
2012-04-03 03:34:16 +02:00
|
|
|
partsObj.Set(*parts, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Translate param: url; type: string_byref
|
|
|
|
CefString urlStr(url);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefCreateURL(partsObj, urlStr);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_string_userfree_t
|
|
|
|
cef_format_url_for_security_display(const cef_string_t* origin_url) {
|
2015-10-09 17:23:12 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: origin_url; type: string_byref_const
|
|
|
|
DCHECK(origin_url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!origin_url) {
|
2015-10-09 17:23:12 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-10-09 17:23:12 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefFormatUrlForSecurityDisplay(CefString(origin_url));
|
2015-10-09 17:23:12 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_string_userfree_t
|
|
|
|
cef_get_mime_type(const cef_string_t* extension) {
|
2014-01-28 18:26:59 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: extension; type: string_byref_const
|
|
|
|
DCHECK(extension);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!extension) {
|
2014-01-28 18:26:59 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-28 18:26:59 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefGetMimeType(CefString(extension));
|
2014-01-28 18:26:59 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2014-07-09 20:03:43 +02:00
|
|
|
CEF_EXPORT void cef_get_extensions_for_mime_type(const cef_string_t* mime_type,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_list_t extensions) {
|
2014-07-09 20:03:43 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: mime_type; type: string_byref_const
|
|
|
|
DCHECK(mime_type);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!mime_type) {
|
2014-07-09 20:03:43 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-09 20:03:43 +02:00
|
|
|
// Verify param: extensions; type: string_vec_byref
|
|
|
|
DCHECK(extensions);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!extensions) {
|
2014-07-09 20:03:43 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-09 20:03:43 +02:00
|
|
|
|
|
|
|
// Translate param: extensions; type: string_vec_byref
|
|
|
|
std::vector<CefString> extensionsList;
|
|
|
|
transfer_string_list_contents(extensions, extensionsList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefGetExtensionsForMimeType(CefString(mime_type), extensionsList);
|
2014-07-09 20:03:43 +02:00
|
|
|
|
|
|
|
// Restore param: extensions; type: string_vec_byref
|
|
|
|
cef_string_list_clear(extensions);
|
|
|
|
transfer_string_list_contents(extensionsList, extensions);
|
|
|
|
}
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
CEF_EXPORT cef_string_userfree_t cef_base64encode(const void* data,
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t data_size) {
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: data; type: simple_byaddr
|
|
|
|
DCHECK(data);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!data) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefBase64Encode(data, data_size);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT struct _cef_binary_value_t* cef_base64decode(
|
|
|
|
const cef_string_t* data) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: data; type: string_byref_const
|
|
|
|
DCHECK(data);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!data) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBinaryValue> _retval = CefBase64Decode(CefString(data));
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBinaryValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_string_userfree_t cef_uriencode(const cef_string_t* text,
|
2017-05-17 11:29:28 +02:00
|
|
|
int use_plus) {
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: text; type: string_byref_const
|
|
|
|
DCHECK(text);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!text) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefURIEncode(CefString(text), use_plus ? true : false);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_string_userfree_t
|
|
|
|
cef_uridecode(const cef_string_t* text,
|
|
|
|
int convert_to_utf8,
|
|
|
|
cef_uri_unescape_rule_t unescape_rule) {
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: text; type: string_byref_const
|
|
|
|
DCHECK(text);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!text) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefURIDecode(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(text), convert_to_utf8 ? true : false, unescape_rule);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT struct _cef_value_t* cef_parse_json(
|
|
|
|
const cef_string_t* json_string,
|
2015-04-17 16:19:30 +02:00
|
|
|
cef_json_parser_options_t options) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json_string; type: string_byref_const
|
|
|
|
DCHECK(json_string);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!json_string) {
|
2015-04-17 16:19:30 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefValue> _retval = CefParseJSON(CefString(json_string), options);
|
2015-04-17 16:19:30 +02:00
|
|
|
|
2020-06-13 02:54:08 +02:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT struct _cef_value_t* cef_parse_json_buffer(
|
|
|
|
const void* json,
|
|
|
|
size_t json_size,
|
|
|
|
cef_json_parser_options_t options) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json; type: simple_byaddr
|
|
|
|
DCHECK(json);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!json) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefValue> _retval = CefParseJSON(json, json_size, options);
|
|
|
|
|
2015-04-17 16:19:30 +02:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT struct _cef_value_t* cef_parse_jsonand_return_error(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* json_string,
|
|
|
|
cef_json_parser_options_t options,
|
|
|
|
cef_string_t* error_msg_out) {
|
2015-04-17 16:19:30 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json_string; type: string_byref_const
|
|
|
|
DCHECK(json_string);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!json_string) {
|
2015-04-17 16:19:30 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
// Verify param: error_msg_out; type: string_byref
|
|
|
|
DCHECK(error_msg_out);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!error_msg_out) {
|
2015-04-17 16:19:30 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Translate param: error_msg_out; type: string_byref
|
|
|
|
CefString error_msg_outStr(error_msg_out);
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefValue> _retval = CefParseJSONAndReturnError(
|
2020-10-08 21:54:42 +02:00
|
|
|
CefString(json_string), options, error_msg_outStr);
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_string_userfree_t
|
|
|
|
cef_write_json(struct _cef_value_t* node, cef_json_writer_options_t options) {
|
2015-04-17 16:19:30 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: node; type: refptr_same
|
|
|
|
DCHECK(node);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!node) {
|
2015-04-17 16:19:30 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefWriteJSON(CefValueCppToC::Unwrap(node), options);
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_EXPORT int cef_get_path(cef_path_key_t key, cef_string_t* path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Translate param: path; type: string_byref
|
|
|
|
CefString pathStr(path);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefGetPath(key, pathStr);
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_launch_process(struct _cef_command_line_t* command_line) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: command_line; type: refptr_same
|
|
|
|
DCHECK(command_line);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!command_line) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefLaunchProcess(CefCommandLineCppToC::Unwrap(command_line));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_register_scheme_handler_factory(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* scheme_name,
|
|
|
|
const cef_string_t* domain_name,
|
2015-04-09 16:59:34 +02:00
|
|
|
struct _cef_scheme_handler_factory_t* factory) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: scheme_name; type: string_byref_const
|
|
|
|
DCHECK(scheme_name);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!scheme_name) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
// Unverified params: domain_name, factory
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefRegisterSchemeHandlerFactory(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(scheme_name), CefString(domain_name),
|
2015-04-09 16:59:34 +02:00
|
|
|
CefSchemeHandlerFactoryCToCpp::Wrap(factory));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_clear_scheme_handler_factories() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefClearSchemeHandlerFactories();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
CEF_EXPORT int cef_is_cert_status_error(cef_cert_status_t status) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefIsCertStatusError(status);
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_EXPORT int cef_currently_on(cef_thread_id_t threadId) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefCurrentlyOn(threadId);
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_post_task(cef_thread_id_t threadId,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_task_t* task) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!task) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefPostTask(threadId, CefTaskCToCpp::Wrap(task));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_post_delayed_task(cef_thread_id_t threadId,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_task_t* task,
|
2023-06-01 16:07:20 +02:00
|
|
|
int64_t delay_ms) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!task) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefPostDelayedTask(threadId, CefTaskCToCpp::Wrap(task), delay_ms);
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_begin_tracing(const cef_string_t* categories,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_completion_callback_t* callback) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: categories, callback
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefBeginTracing(CefString(categories),
|
|
|
|
CefCompletionCallbackCToCpp::Wrap(callback));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_end_tracing(const cef_string_t* tracing_file,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_end_tracing_callback_t* callback) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: tracing_file, callback
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefEndTracing(CefString(tracing_file),
|
|
|
|
CefEndTracingCallbackCToCpp::Wrap(callback));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
CEF_EXPORT int64_t cef_now_from_system_trace_time() {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2023-06-01 16:07:20 +02:00
|
|
|
int64_t _retval = CefNowFromSystemTraceTime();
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_EXPORT int cef_register_extension(const cef_string_t* extension_name,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* javascript_code,
|
|
|
|
struct _cef_v8handler_t* handler) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: extension_name; type: string_byref_const
|
|
|
|
DCHECK(extension_name);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!extension_name) {
|
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: javascript_code; type: string_byref_const
|
|
|
|
DCHECK(javascript_code);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!javascript_code) {
|
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: handler
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefRegisterExtension(CefString(extension_name),
|
|
|
|
CefString(javascript_code),
|
|
|
|
CefV8HandlerCToCpp::Wrap(handler));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
CEF_EXPORT void cef_execute_java_script_with_user_gesture_for_tests(
|
|
|
|
struct _cef_frame_t* frame,
|
|
|
|
const cef_string_t* javascript) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: frame; type: refptr_same
|
|
|
|
DCHECK(frame);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!frame) {
|
2017-05-31 17:33:30 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-31 17:33:30 +02:00
|
|
|
// Unverified params: javascript
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefExecuteJavaScriptWithUserGestureForTests(CefFrameCppToC::Unwrap(frame),
|
|
|
|
CefString(javascript));
|
|
|
|
}
|
2022-08-03 02:51:02 +02:00
|
|
|
|
|
|
|
CEF_EXPORT void cef_set_data_directory_for_tests(const cef_string_t* dir) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: dir; type: string_byref_const
|
|
|
|
DCHECK(dir);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!dir) {
|
2022-08-03 02:51:02 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-08-03 02:51:02 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefSetDataDirectoryForTests(CefString(dir));
|
|
|
|
}
|