mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Compare commits
51 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f035232c08 | ||
|
9ea5b3bbca | ||
|
495fb8c0b7 | ||
|
0105133f03 | ||
|
ffc5773525 | ||
|
c2b4638063 | ||
|
3ed63a10e3 | ||
|
92fba9ccdf | ||
|
10efe6c2c1 | ||
|
fbafd4e4c0 | ||
|
d3e47f59e9 | ||
|
1f1b268f4a | ||
|
7b07b058a8 | ||
|
1952835be8 | ||
|
3d123fedca | ||
|
a6ba38d12e | ||
|
6ad738e8d0 | ||
|
c2a87c8b35 | ||
|
68b0352081 | ||
|
d6eff7d301 | ||
|
ea4646ed24 | ||
|
b0c8a34881 | ||
|
874e670b79 | ||
|
7c4fd877af | ||
|
2bc930ec7f | ||
|
368273cc40 | ||
|
e31a44a0a7 | ||
|
4232c4c8dc | ||
|
48b45f836a | ||
|
fb14c2b523 | ||
|
2dc86e97f2 | ||
|
a978ae001b | ||
|
7d172641ec | ||
|
1b7cd2c303 | ||
|
21680d7a3a | ||
|
17827d67ad | ||
|
371eca001c | ||
|
744e998350 | ||
|
91ea7450fb | ||
|
e6bc7f43c2 | ||
|
1ad8ea0d64 | ||
|
ae07baa5e1 | ||
|
968dfaab73 | ||
|
4853c4cd80 | ||
|
1256c22ec3 | ||
|
572eb02431 | ||
|
cd266e8826 | ||
|
d8a006f630 | ||
|
f8339d397c | ||
|
3d7a719b05 | ||
|
1f5cf72d3f |
56
BUILD.gn
56
BUILD.gn
@@ -120,6 +120,7 @@ if (is_mac) {
|
||||
import("//build/config/mac/rules.gni")
|
||||
import("//build_overrides/v8.gni")
|
||||
import("//build/mac/tweak_info_plist.gni")
|
||||
import("//build/util/version.gni")
|
||||
import("//media/cdm/ppapi/cdm_paths.gni")
|
||||
}
|
||||
if (is_win) {
|
||||
@@ -164,8 +165,45 @@ if (is_mac) {
|
||||
#
|
||||
|
||||
if (is_mac) {
|
||||
# TODO(cef): Generate this value using version.py.
|
||||
cef_version = "99.77.34.5"
|
||||
cef_commit_number = exec_script(
|
||||
"//cef/tools/commit_number.py",
|
||||
[ rebase_path("//cef", root_build_dir) ],
|
||||
"trim string", [])
|
||||
|
||||
cef_version_file = "//cef/VERSION"
|
||||
|
||||
# The tweak_info_plist.py script requires a version number with 4 parts. CEF
|
||||
# uses a version number with 3 parts so just set the last part to 0.
|
||||
cef_plist_version = exec_script(
|
||||
"//build/util/version.py",
|
||||
[
|
||||
"-f",
|
||||
rebase_path(cef_version_file, root_build_dir),
|
||||
"-f",
|
||||
rebase_path(chrome_version_file, root_build_dir),
|
||||
"-t",
|
||||
"@CEF_MAJOR@.@BUILD@.${cef_commit_number}.0",
|
||||
],
|
||||
"trim string",
|
||||
[ cef_version_file, chrome_version_file ])
|
||||
|
||||
# Need to be creative to match dylib version formatting requirements.
|
||||
cef_dylib_version = exec_script(
|
||||
"//build/util/version.py",
|
||||
[
|
||||
"-f",
|
||||
rebase_path(cef_version_file, root_build_dir),
|
||||
"-f",
|
||||
rebase_path(chrome_version_file, root_build_dir),
|
||||
"-t",
|
||||
"@CEF_MAJOR@${cef_commit_number}.@BUILD_HI@.@BUILD_LO@",
|
||||
"-e",
|
||||
"BUILD_HI=int(BUILD)/256",
|
||||
"-e",
|
||||
"BUILD_LO=int(BUILD)%256",
|
||||
],
|
||||
"trim string",
|
||||
[ cef_version_file, chrome_version_file ])
|
||||
}
|
||||
|
||||
# Read file lists from gypi files. The gypi_to_gn.py script does not support
|
||||
@@ -1178,7 +1216,7 @@ if (is_mac) {
|
||||
"--keystone=0",
|
||||
"--scm=1",
|
||||
"--version",
|
||||
cef_version,
|
||||
cef_plist_version,
|
||||
"--branding",
|
||||
cef_framework_name,
|
||||
]
|
||||
@@ -1265,7 +1303,13 @@ if (is_mac) {
|
||||
# on one of the executables. However install_name_tool only operates
|
||||
# in-place, which is problematic to express in GN. Instead, use rpath-based
|
||||
# loading.
|
||||
ldflags = [ "-Wl,-install_name,@rpath/Frameworks/$output_name.framework/$output_name" ]
|
||||
ldflags = [
|
||||
"-Wl,-install_name,@rpath/Frameworks/$output_name.framework/$output_name",
|
||||
"-compatibility_version",
|
||||
cef_dylib_version,
|
||||
"-current_version",
|
||||
cef_dylib_version,
|
||||
]
|
||||
|
||||
if (is_component_build) {
|
||||
# Set up the rpath for the framework so that it can find dylibs in the
|
||||
@@ -1345,7 +1389,7 @@ if (is_mac) {
|
||||
"--keystone=0",
|
||||
"--scm=0",
|
||||
"--version",
|
||||
cef_version,
|
||||
cef_plist_version,
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1396,7 +1440,7 @@ if (is_mac) {
|
||||
args = [
|
||||
"--scm=1",
|
||||
"--version",
|
||||
cef_version,
|
||||
cef_plist_version,
|
||||
]
|
||||
}
|
||||
|
||||
|
@@ -7,5 +7,5 @@
|
||||
# https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding
|
||||
|
||||
{
|
||||
'chromium_checkout': 'ad51088c0e8776e8dcd963dbe752c4035ba6dab6',
|
||||
'chromium_checkout': 'refs/tags/57.0.2987.133',
|
||||
}
|
||||
|
@@ -390,16 +390,26 @@
|
||||
'libcef_dll/cpptoc/thread_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_handler_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_handler_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_handler_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_handler_child_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_child_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_child_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_object_child_child_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.h',
|
||||
'libcef_dll/cpptoc/urlrequest_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/urlrequest_cpptoc.h',
|
||||
'libcef_dll/ctocpp/urlrequest_client_ctocpp.cc',
|
||||
@@ -652,16 +662,26 @@
|
||||
'libcef_dll/ctocpp/thread_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_handler_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_handler_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_handler_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_handler_child_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_child_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_child_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_object_child_child_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h',
|
||||
'libcef_dll/ctocpp/urlrequest_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/urlrequest_ctocpp.h',
|
||||
'libcef_dll/cpptoc/urlrequest_client_cpptoc.cc',
|
||||
|
@@ -88,12 +88,17 @@
|
||||
'include/internal/cef_types_linux.h',
|
||||
],
|
||||
'libcef_sources_common': [
|
||||
'libcef_dll/cpptoc/cpptoc.h',
|
||||
'libcef_dll/ctocpp/base_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/base_ctocpp.h',
|
||||
'libcef_dll/ctocpp/ctocpp.h',
|
||||
'libcef_dll/cpptoc/cpptoc_ref_counted.h',
|
||||
'libcef_dll/cpptoc/cpptoc_scoped.h',
|
||||
'libcef_dll/ctocpp/base_ref_counted_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/base_ref_counted_ctocpp.h',
|
||||
'libcef_dll/ctocpp/base_scoped_ctocpp.cc',
|
||||
'libcef_dll/ctocpp/base_scoped_ctocpp.h',
|
||||
'libcef_dll/ctocpp/ctocpp_ref_counted.h',
|
||||
'libcef_dll/ctocpp/ctocpp_scoped.h',
|
||||
'libcef_dll/libcef_dll.cc',
|
||||
'libcef_dll/libcef_dll2.cc',
|
||||
'libcef_dll/ptr_util.h',
|
||||
'libcef_dll/resource.h',
|
||||
'libcef_dll/transfer_util.cc',
|
||||
'libcef_dll/transfer_util.h',
|
||||
@@ -114,10 +119,15 @@
|
||||
'libcef_dll/base/cef_weak_ptr.cc',
|
||||
],
|
||||
'libcef_dll_wrapper_sources_common': [
|
||||
'libcef_dll/cpptoc/base_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/base_cpptoc.h',
|
||||
'libcef_dll/cpptoc/cpptoc.h',
|
||||
'libcef_dll/ctocpp/ctocpp.h',
|
||||
'libcef_dll/cpptoc/base_ref_counted_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/base_ref_counted_cpptoc.h',
|
||||
'libcef_dll/cpptoc/base_scoped_cpptoc.cc',
|
||||
'libcef_dll/cpptoc/base_scoped_cpptoc.h',
|
||||
'libcef_dll/cpptoc/cpptoc_ref_counted.h',
|
||||
'libcef_dll/cpptoc/cpptoc_scoped.h',
|
||||
'libcef_dll/ctocpp/ctocpp_ref_counted.h',
|
||||
'libcef_dll/ctocpp/ctocpp_scoped.h',
|
||||
'libcef_dll/ptr_util.h',
|
||||
'libcef_dll/transfer_util.cc',
|
||||
'libcef_dll/transfer_util.h',
|
||||
'libcef_dll/wrapper_types.h',
|
||||
@@ -289,6 +299,10 @@
|
||||
'tests/cefclient/browser/root_window_win.h',
|
||||
'tests/cefclient/browser/temp_window_win.cc',
|
||||
'tests/cefclient/browser/temp_window_win.h',
|
||||
'tests/cefclient/browser/views_menu_bar.cc',
|
||||
'tests/cefclient/browser/views_menu_bar.h',
|
||||
'tests/cefclient/browser/views_style.cc',
|
||||
'tests/cefclient/browser/views_style.h',
|
||||
'tests/cefclient/browser/views_window.cc',
|
||||
'tests/cefclient/browser/views_window.h',
|
||||
'tests/cefclient/browser/window_test_runner_views.cc',
|
||||
@@ -340,6 +354,10 @@
|
||||
'tests/cefclient/browser/root_window_views.h',
|
||||
'tests/cefclient/browser/temp_window_x11.cc',
|
||||
'tests/cefclient/browser/temp_window_x11.h',
|
||||
'tests/cefclient/browser/views_menu_bar.cc',
|
||||
'tests/cefclient/browser/views_menu_bar.h',
|
||||
'tests/cefclient/browser/views_style.cc',
|
||||
'tests/cefclient/browser/views_style.h',
|
||||
'tests/cefclient/browser/views_window.cc',
|
||||
'tests/cefclient/browser/views_window.h',
|
||||
'tests/cefclient/browser/window_test_runner_gtk.cc',
|
||||
|
@@ -215,7 +215,7 @@ endif()
|
||||
|
||||
if(OS_MACOSX)
|
||||
# Platform-specific compiler/linker flags.
|
||||
# See also Xcode target properties in macros.cmake.
|
||||
# See also Xcode target properties in cef_macros.cmake.
|
||||
set(CEF_LIBTYPE SHARED)
|
||||
list(APPEND CEF_COMPILER_FLAGS
|
||||
-fno-strict-aliasing # Avoid assumptions regarding non-aliasing of objects of different types
|
||||
@@ -259,6 +259,15 @@ if(OS_MACOSX)
|
||||
-Wl,-dead_strip # Strip dead code
|
||||
)
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
CHECK_CXX_COMPILER_FLAG(-Wno-undefined-var-template COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE)
|
||||
if(COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE)
|
||||
list(APPEND CEF_CXX_COMPILER_FLAGS
|
||||
-Wno-undefined-var-template # Don't warn about potentially uninstantiated static members
|
||||
)
|
||||
endif()
|
||||
|
||||
# Standard libraries.
|
||||
set(CEF_STANDARD_LIBS
|
||||
-lpthread
|
||||
@@ -268,7 +277,7 @@ if(OS_MACOSX)
|
||||
|
||||
# Find the newest available base SDK.
|
||||
execute_process(COMMAND xcode-select --print-path OUTPUT_VARIABLE XCODE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
foreach(OS_VERSION 10.10 10.9 10.8 10.7)
|
||||
foreach(OS_VERSION 10.11 10.10 10.9)
|
||||
set(SDK "${XCODE_PATH}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${OS_VERSION}.sdk")
|
||||
if(NOT "${CMAKE_OSX_SYSROOT}" AND EXISTS "${SDK}" AND IS_DIRECTORY "${SDK}")
|
||||
set(CMAKE_OSX_SYSROOT ${SDK})
|
||||
@@ -276,7 +285,7 @@ if(OS_MACOSX)
|
||||
endforeach()
|
||||
|
||||
# Target SDK.
|
||||
set(CEF_TARGET_SDK "10.7")
|
||||
set(CEF_TARGET_SDK "10.9")
|
||||
list(APPEND CEF_COMPILER_FLAGS
|
||||
-mmacosx-version-min=${CEF_TARGET_SDK}
|
||||
)
|
||||
@@ -376,7 +385,7 @@ if(OS_WINDOWS)
|
||||
list(APPEND CEF_COMPILER_DEFINES
|
||||
WIN32 _WIN32 _WINDOWS # Windows platform
|
||||
UNICODE _UNICODE # Unicode build
|
||||
WINVER=0x0602 _WIN32_WINNT=0x602 # Targeting Windows 8
|
||||
WINVER=0x0601 _WIN32_WINNT=0x601 # Targeting Windows 7
|
||||
NOMINMAX # Use the standard's templated min/max
|
||||
WIN32_LEAN_AND_MEAN # Exclude less common API declarations
|
||||
_HAS_EXCEPTIONS=0 # Disable exceptions
|
||||
|
@@ -189,4 +189,13 @@
|
||||
#endif
|
||||
#endif // OVERRIDE
|
||||
|
||||
// Check for C++11 template alias support which was added in VS2013 and GCC4.7.
|
||||
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf
|
||||
#if __cplusplus > 199711L || \
|
||||
(defined(_MSC_VER) && _MSC_VER >= 1800) || \
|
||||
(defined(__GNUC__) && \
|
||||
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ >= 40700))
|
||||
#define HAS_CPP11_TEMPLATE_ALIAS_SUPPORT
|
||||
#endif
|
||||
|
||||
#endif // CEF_INCLUDE_BASE_CEF_BUILD_H_
|
||||
|
@@ -59,7 +59,7 @@ typedef struct _cef_app_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Provides an opportunity to view and/or modify command-line arguments before
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_auth_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue the authentication request.
|
||||
|
@@ -45,10 +45,9 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
///
|
||||
// Structure defining the reference count implementation functions. All
|
||||
// framework structures must include the cef_base_t structure first.
|
||||
// All ref-counted framework structures must include this structure first.
|
||||
///
|
||||
typedef struct _cef_base_t {
|
||||
typedef struct _cef_base_ref_counted_t {
|
||||
///
|
||||
// Size of the data structure.
|
||||
///
|
||||
@@ -58,27 +57,44 @@ typedef struct _cef_base_t {
|
||||
// Called to increment the reference count for the object. Should be called
|
||||
// for every new copy of a pointer to a given object.
|
||||
///
|
||||
void (CEF_CALLBACK *add_ref)(struct _cef_base_t* self);
|
||||
void (CEF_CALLBACK *add_ref)(struct _cef_base_ref_counted_t* self);
|
||||
|
||||
///
|
||||
// Called to decrement the reference count for the object. If the reference
|
||||
// count falls to 0 the object should self-delete. Returns true (1) if the
|
||||
// resulting reference count is 0.
|
||||
///
|
||||
int (CEF_CALLBACK *release)(struct _cef_base_t* self);
|
||||
int (CEF_CALLBACK *release)(struct _cef_base_ref_counted_t* self);
|
||||
|
||||
///
|
||||
// Returns true (1) if the current reference count is 1.
|
||||
///
|
||||
int (CEF_CALLBACK *has_one_ref)(struct _cef_base_t* self);
|
||||
} cef_base_t;
|
||||
int (CEF_CALLBACK *has_one_ref)(struct _cef_base_ref_counted_t* self);
|
||||
} cef_base_ref_counted_t;
|
||||
|
||||
|
||||
// Check that the structure |s|, which is defined with a cef_base_t member named
|
||||
// |base|, is large enough to contain the specified member |f|.
|
||||
///
|
||||
// All scoped framework structures must include this structure first.
|
||||
///
|
||||
typedef struct _cef_base_scoped_t {
|
||||
///
|
||||
// Size of the data structure.
|
||||
///
|
||||
size_t size;
|
||||
|
||||
///
|
||||
// Called to delete this object. May be NULL if the object is not owned.
|
||||
///
|
||||
void (CEF_CALLBACK *del)(struct _cef_base_scoped_t* self);
|
||||
|
||||
} cef_base_scoped_t;
|
||||
|
||||
|
||||
// Check that the structure |s|, which is defined with a size_t member at the
|
||||
// top, is large enough to contain the specified member |f|.
|
||||
#define CEF_MEMBER_EXISTS(s, f) \
|
||||
((intptr_t)&((s)->f) - (intptr_t)(s) + sizeof((s)->f) <= \
|
||||
reinterpret_cast<cef_base_t*>(s)->size)
|
||||
*reinterpret_cast<size_t*>(s))
|
||||
|
||||
#define CEF_MEMBER_MISSING(s, f) (!CEF_MEMBER_EXISTS(s, f) || !((s)->f))
|
||||
|
||||
|
@@ -63,7 +63,7 @@ typedef struct _cef_browser_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the browser host object. This function can only be called in the
|
||||
@@ -193,7 +193,7 @@ typedef struct _cef_run_file_dialog_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called asynchronously after the file dialog is dismissed.
|
||||
@@ -216,7 +216,7 @@ typedef struct _cef_navigation_entry_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be executed. Do not keep a reference to |entry| outside of
|
||||
@@ -239,7 +239,7 @@ typedef struct _cef_pdf_print_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be executed when the PDF printing has completed. |path| is
|
||||
@@ -260,7 +260,7 @@ typedef struct _cef_download_image_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be executed when the image download has completed.
|
||||
@@ -285,7 +285,7 @@ typedef struct _cef_browser_host_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the hosted browser object.
|
||||
|
@@ -57,7 +57,7 @@ typedef struct _cef_browser_process_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the browser process UI thread immediately after the CEF context
|
||||
|
@@ -52,7 +52,7 @@ typedef struct _cef_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue processing.
|
||||
@@ -73,7 +73,7 @@ typedef struct _cef_completion_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called once the task is complete.
|
||||
|
@@ -67,7 +67,7 @@ typedef struct _cef_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Return the handler for context menus. If no handler is provided the default
|
||||
|
@@ -59,7 +59,7 @@ typedef struct _cef_command_line_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. Do not call any other functions
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_run_context_menu_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Complete context menu display by selecting the specified |command_id| and
|
||||
@@ -80,7 +80,7 @@ typedef struct _cef_context_menu_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called before a context menu is displayed. |params| provides information
|
||||
@@ -140,7 +140,7 @@ typedef struct _cef_context_menu_params_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the X coordinate of the mouse where the context menu was invoked.
|
||||
|
@@ -57,7 +57,7 @@ typedef struct _cef_cookie_manager_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Set the schemes supported by this manager. The default schemes ("http",
|
||||
@@ -172,7 +172,7 @@ typedef struct _cef_cookie_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called once for each cookie. |count| is the 0-based
|
||||
@@ -195,7 +195,7 @@ typedef struct _cef_set_cookie_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called upon completion. |success| will be true (1) if
|
||||
@@ -214,7 +214,7 @@ typedef struct _cef_delete_cookies_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called upon completion. |num_deleted| will be the
|
||||
|
@@ -61,6 +61,9 @@ extern "C" {
|
||||
// information; default to "CEF">
|
||||
// ExternalHandler=<Windows only; Name of the external handler exe to use
|
||||
// instead of re-launching the main exe; default to empty>
|
||||
// BrowserCrashForwardingEnabled=<macOS only; True if browser process crashes
|
||||
// should be forwarded to the system crash
|
||||
// reporter; default to false>
|
||||
// ServerURL=<crash server URL; default to empty>
|
||||
// RateLimitEnabled=<True if uploads should be rate limited; default to true>
|
||||
// MaxUploadsPerDay=<Max uploads per 24 hours, used if rate limit is enabled;
|
||||
@@ -92,6 +95,12 @@ extern "C" {
|
||||
// directory. On Linux the CefSettings.browser_subprocess_path value will be
|
||||
// used. On macOS the existing subprocess app bundle will be used.
|
||||
//
|
||||
// If "BrowserCrashForwardingEnabled" is set to true (1) on macOS then browser
|
||||
// process crashes will be forwarded to the system crash reporter. This results
|
||||
// in the crash UI dialog being displayed to the user and crash reports being
|
||||
// logged under "~/Library/Logs/DiagnosticReports". Forwarding of crash reports
|
||||
// from non-browser processes and Debug builds is always disabled.
|
||||
//
|
||||
// If "ServerURL" is set then crashes will be uploaded as a multi-part POST
|
||||
// request to the specified URL. Otherwise, reports will only be stored locally
|
||||
// on disk.
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_file_dialog_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue the file selection. |selected_accept_filter| should be the 0-based
|
||||
@@ -80,7 +80,7 @@ typedef struct _cef_dialog_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called to run a file chooser dialog. |mode| represents the type of dialog
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_display_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when a frame's address has changed.
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_domvisitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method executed for visiting the DOM. The document object passed to this
|
||||
@@ -77,7 +77,7 @@ typedef struct _cef_domdocument_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the document type.
|
||||
@@ -177,7 +177,7 @@ typedef struct _cef_domnode_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the type for this node.
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_before_download_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Call to continue the download. Set |download_path| to the full file path
|
||||
@@ -74,7 +74,7 @@ typedef struct _cef_download_item_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Call to cancel the download.
|
||||
@@ -101,7 +101,7 @@ typedef struct _cef_download_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called before a download begins. |suggested_name| is the suggested name for
|
||||
|
@@ -52,7 +52,7 @@ typedef struct _cef_download_item_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. Do not call any other functions
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_drag_data_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns a copy of the current object.
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_drag_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when an external drag event enters the browser window. |dragData|
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_find_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called to report find results returned by cef_browser_host_t::find().
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_focus_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when the browser component is about to loose focus. For instance, if
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_frame_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// True if this object is currently attached to a valid frame.
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_get_geolocation_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called with the 'best available' location information or, if the location
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_geolocation_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Call to allow or deny geolocation access.
|
||||
@@ -73,7 +73,7 @@ typedef struct _cef_geolocation_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when a page requests permission to access geolocation information.
|
||||
|
@@ -58,7 +58,7 @@ typedef struct _cef_image_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this Image is NULL.
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_jsdialog_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue the JS dialog request. Set |success| to true (1) if the OK button
|
||||
@@ -73,7 +73,7 @@ typedef struct _cef_jsdialog_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called to run a JavaScript dialog. If |origin_url| is non-NULL it can be
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_keyboard_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called before a keyboard event is sent to the renderer. |event| contains
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_life_span_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the IO thread before a new popup browser is created. The
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_load_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when the loading state has changed. This callback will be executed
|
||||
|
@@ -56,7 +56,12 @@ typedef struct _cef_menu_model_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this menu is a submenu.
|
||||
///
|
||||
int (CEF_CALLBACK *is_sub_menu)(struct _cef_menu_model_t* self);
|
||||
|
||||
///
|
||||
// Clears the menu. Returns true (1) on success.
|
||||
@@ -379,6 +384,73 @@ typedef struct _cef_menu_model_t {
|
||||
int (CEF_CALLBACK *get_accelerator_at)(struct _cef_menu_model_t* self,
|
||||
int index, int* key_code, int* shift_pressed, int* ctrl_pressed,
|
||||
int* alt_pressed);
|
||||
|
||||
///
|
||||
// Set the explicit color for |command_id| and |color_type| to |color|.
|
||||
// Specify a |color| value of 0 to remove the explicit color. If no explicit
|
||||
// color or default color is set for |color_type| then the system color will
|
||||
// be used. Returns true (1) on success.
|
||||
///
|
||||
int (CEF_CALLBACK *set_color)(struct _cef_menu_model_t* self, int command_id,
|
||||
cef_menu_color_type_t color_type, cef_color_t color);
|
||||
|
||||
///
|
||||
// Set the explicit color for |command_id| and |index| to |color|. Specify a
|
||||
// |color| value of 0 to remove the explicit color. Specify an |index| value
|
||||
// of -1 to set the default color for items that do not have an explicit color
|
||||
// set. If no explicit color or default color is set for |color_type| then the
|
||||
// system color will be used. Returns true (1) on success.
|
||||
///
|
||||
int (CEF_CALLBACK *set_color_at)(struct _cef_menu_model_t* self, int index,
|
||||
cef_menu_color_type_t color_type, cef_color_t color);
|
||||
|
||||
///
|
||||
// Returns in |color| the color that was explicitly set for |command_id| and
|
||||
// |color_type|. If a color was not set then 0 will be returned in |color|.
|
||||
// Returns true (1) on success.
|
||||
///
|
||||
int (CEF_CALLBACK *get_color)(struct _cef_menu_model_t* self, int command_id,
|
||||
cef_menu_color_type_t color_type, cef_color_t* color);
|
||||
|
||||
///
|
||||
// Returns in |color| the color that was explicitly set for |command_id| and
|
||||
// |color_type|. Specify an |index| value of -1 to return the default color in
|
||||
// |color|. If a color was not set then 0 will be returned in |color|. Returns
|
||||
// true (1) on success.
|
||||
///
|
||||
int (CEF_CALLBACK *get_color_at)(struct _cef_menu_model_t* self, int index,
|
||||
cef_menu_color_type_t color_type, cef_color_t* color);
|
||||
|
||||
///
|
||||
// Sets the font list for the specified |command_id|. If |font_list| is NULL
|
||||
// the system font will be used. Returns true (1) on success. The format is
|
||||
// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a comma-
|
||||
// separated list of font family names, - STYLES is an optional space-
|
||||
// separated list of style names (case-sensitive
|
||||
// "Bold" and "Italic" are supported), and
|
||||
// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
//
|
||||
// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
// Bold Italic 14px" - "Arial, 14px"
|
||||
///
|
||||
int (CEF_CALLBACK *set_font_list)(struct _cef_menu_model_t* self,
|
||||
int command_id, const cef_string_t* font_list);
|
||||
|
||||
///
|
||||
// Sets the font list for the specified |index|. Specify an |index| value of
|
||||
// -1 to set the default font. If |font_list| is NULL the system font will be
|
||||
// used. Returns true (1) on success. The format is
|
||||
// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a comma-
|
||||
// separated list of font family names, - STYLES is an optional space-
|
||||
// separated list of style names (case-sensitive
|
||||
// "Bold" and "Italic" are supported), and
|
||||
// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
//
|
||||
// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
// Bold Italic 14px" - "Arial, 14px"
|
||||
///
|
||||
int (CEF_CALLBACK *set_font_list_at)(struct _cef_menu_model_t* self,
|
||||
int index, const cef_string_t* font_list);
|
||||
} cef_menu_model_t;
|
||||
|
||||
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_menu_model_delegate_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Perform the action associated with the specified |command_id| and optional
|
||||
@@ -65,6 +65,30 @@ typedef struct _cef_menu_model_delegate_t {
|
||||
struct _cef_menu_model_t* menu_model, int command_id,
|
||||
cef_event_flags_t event_flags);
|
||||
|
||||
///
|
||||
// Called when the user moves the mouse outside the menu and over the owning
|
||||
// window.
|
||||
///
|
||||
void (CEF_CALLBACK *mouse_outside_menu)(
|
||||
struct _cef_menu_model_delegate_t* self,
|
||||
struct _cef_menu_model_t* menu_model, const cef_point_t* screen_point);
|
||||
|
||||
///
|
||||
// Called on unhandled open submenu keyboard commands. |is_rtl| will be true
|
||||
// (1) if the menu is displaying a right-to-left language.
|
||||
///
|
||||
void (CEF_CALLBACK *unhandled_open_submenu)(
|
||||
struct _cef_menu_model_delegate_t* self,
|
||||
struct _cef_menu_model_t* menu_model, int is_rtl);
|
||||
|
||||
///
|
||||
// Called on unhandled close submenu keyboard commands. |is_rtl| will be true
|
||||
// (1) if the menu is displaying a right-to-left language.
|
||||
///
|
||||
void (CEF_CALLBACK *unhandled_close_submenu)(
|
||||
struct _cef_menu_model_delegate_t* self,
|
||||
struct _cef_menu_model_t* menu_model, int is_rtl);
|
||||
|
||||
///
|
||||
// The menu is about to show.
|
||||
///
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_navigation_entry_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. Do not call any other functions
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_print_dialog_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue printing with the specified |settings|.
|
||||
@@ -76,7 +76,7 @@ typedef struct _cef_print_job_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Indicate completion of the print job.
|
||||
@@ -93,7 +93,7 @@ typedef struct _cef_print_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called when printing has started for the specified |browser|. This function
|
||||
|
@@ -52,7 +52,7 @@ typedef struct _cef_print_settings_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. Do not call any other functions
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_process_message_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. Do not call any other functions
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_render_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called to retrieve the root window rectangle in screen coordinates. Return
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_render_process_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called after the render process main thread has been created. |extra_info|
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_request_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is read-only.
|
||||
@@ -205,7 +205,7 @@ typedef struct _cef_post_data_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is read-only.
|
||||
@@ -265,7 +265,7 @@ typedef struct _cef_post_data_element_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is read-only.
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_resolve_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called after the ResolveHost request has completed. |result| will be the
|
||||
@@ -89,7 +89,7 @@ typedef struct _cef_request_context_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is pointing to the same context as |that|
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_request_context_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the browser process IO thread to retrieve the cookie manager. If
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_request_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Continue the url request. If |allow| is true (1) the request will be
|
||||
@@ -83,7 +83,7 @@ typedef struct _cef_select_client_certificate_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Chooses the specified certificate for client certificate authentication.
|
||||
@@ -103,7 +103,7 @@ typedef struct _cef_request_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the UI thread before browser navigation. Return true (1) to
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_resource_bundle_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the localized string for the specified |string_id| or an NULL
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_resource_bundle_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called to retrieve a localized translation for the specified |string_id|.
|
||||
|
@@ -58,7 +58,7 @@ typedef struct _cef_resource_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Begin processing the request. To handle the request return true (1) and
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_response_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is read-only.
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_response_filter_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Initialize the response filter. Will only be called a single time. The
|
||||
|
@@ -58,7 +58,7 @@ typedef struct _cef_scheme_registrar_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_scoped_t base;
|
||||
|
||||
///
|
||||
// Register a custom scheme. This function should not be called for the built-
|
||||
@@ -131,7 +131,7 @@ typedef struct _cef_scheme_handler_factory_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Return a new resource handler instance to handle the request or an NULL
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_sslinfo_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns a bitmask containing any and all problems verifying the server
|
||||
|
@@ -54,7 +54,7 @@ typedef struct _cef_sslstatus_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if the status is related to a secure SSL/TLS connection.
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_read_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Read raw binary data.
|
||||
@@ -95,7 +95,7 @@ typedef struct _cef_stream_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Read raw binary data.
|
||||
@@ -156,7 +156,7 @@ typedef struct _cef_write_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Write raw binary data.
|
||||
@@ -198,7 +198,7 @@ typedef struct _cef_stream_writer_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Write raw binary data.
|
||||
|
@@ -52,7 +52,7 @@ typedef struct _cef_string_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be executed.
|
||||
|
@@ -57,7 +57,7 @@ typedef struct _cef_task_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be executed on the target thread.
|
||||
@@ -79,7 +79,7 @@ typedef struct _cef_task_runner_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is pointing to the same task runner as
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_thread_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the cef_task_tRunner that will execute code on this thread's
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_end_tracing_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called after all processes have sent their trace data. |tracing_file| is
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_urlrequest_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the request object used to create this URL request. The returned
|
||||
@@ -133,7 +133,7 @@ typedef struct _cef_urlrequest_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Notifies the client that the request has completed. Use the
|
||||
|
@@ -63,7 +63,7 @@ typedef struct _cef_v8context_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the task runner associated with this context. V8 handles can only
|
||||
@@ -161,7 +161,7 @@ typedef struct _cef_v8handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Handle execution of the function identified by |name|. |object| is the
|
||||
@@ -187,7 +187,7 @@ typedef struct _cef_v8accessor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Handle retrieval the accessor value identified by |name|. |object| is the
|
||||
@@ -225,7 +225,7 @@ typedef struct _cef_v8interceptor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Handle retrieval of the interceptor value identified by |name|. |object| is
|
||||
@@ -285,7 +285,7 @@ typedef struct _cef_v8exception_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the exception message.
|
||||
@@ -352,7 +352,7 @@ typedef struct _cef_v8value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if the underlying handle is valid and it can be accessed
|
||||
@@ -585,12 +585,12 @@ typedef struct _cef_v8value_t {
|
||||
// called on user created objects.
|
||||
///
|
||||
int (CEF_CALLBACK *set_user_data)(struct _cef_v8value_t* self,
|
||||
struct _cef_base_t* user_data);
|
||||
struct _cef_base_ref_counted_t* user_data);
|
||||
|
||||
///
|
||||
// Returns the user data, if any, assigned to this object.
|
||||
///
|
||||
struct _cef_base_t* (CEF_CALLBACK *get_user_data)(
|
||||
struct _cef_base_ref_counted_t* (CEF_CALLBACK *get_user_data)(
|
||||
struct _cef_v8value_t* self);
|
||||
|
||||
///
|
||||
@@ -752,7 +752,7 @@ typedef struct _cef_v8stack_trace_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if the underlying handle is valid and it can be accessed
|
||||
@@ -792,7 +792,7 @@ typedef struct _cef_v8stack_frame_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if the underlying handle is valid and it can be accessed
|
||||
|
@@ -57,7 +57,7 @@ typedef struct _cef_value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if the underlying data is valid. This will always be true
|
||||
@@ -228,7 +228,7 @@ typedef struct _cef_binary_value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. This object may become invalid if
|
||||
@@ -293,7 +293,7 @@ typedef struct _cef_dictionary_value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. This object may become invalid if
|
||||
@@ -520,7 +520,7 @@ typedef struct _cef_list_value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns true (1) if this object is valid. This object may become invalid if
|
||||
|
@@ -60,7 +60,7 @@ typedef struct _cef_waitable_event_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Put the event in the un-signaled state.
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_web_plugin_info_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the plugin name (i.e. Flash).
|
||||
@@ -93,7 +93,7 @@ typedef struct _cef_web_plugin_info_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called once for each plugin. |count| is the 0-based
|
||||
@@ -114,7 +114,7 @@ typedef struct _cef_web_plugin_unstable_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called for the requested plugin. |unstable| will be
|
||||
@@ -136,7 +136,7 @@ typedef struct _cef_register_cdm_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Method that will be called when CDM registration is complete. |result| will
|
||||
|
@@ -53,7 +53,7 @@ typedef struct _cef_x509cert_principal_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns a name that can be used to represent the issuer. It tries in this
|
||||
@@ -125,7 +125,7 @@ typedef struct _cef_x509certificate_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the subject of the X.509 certificate. For HTTPS server certificates
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_xml_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Moves the cursor to the next node in the document. This function must be
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_zip_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Moves the cursor to the first file in the archive. Returns true (1) if the
|
||||
|
@@ -49,10 +49,14 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct _cef_translator_test_handler_child_t;
|
||||
struct _cef_translator_test_handler_t;
|
||||
struct _cef_translator_test_object_child_t;
|
||||
struct _cef_translator_test_object_t;
|
||||
struct _cef_translator_test_ref_ptr_client_child_t;
|
||||
struct _cef_translator_test_ref_ptr_client_t;
|
||||
struct _cef_translator_test_ref_ptr_library_child_t;
|
||||
struct _cef_translator_test_ref_ptr_library_t;
|
||||
struct _cef_translator_test_scoped_client_child_t;
|
||||
struct _cef_translator_test_scoped_client_t;
|
||||
struct _cef_translator_test_scoped_library_child_t;
|
||||
struct _cef_translator_test_scoped_library_t;
|
||||
|
||||
///
|
||||
// Structure for testing all of the possible data transfer types.
|
||||
@@ -61,7 +65,7 @@ typedef struct _cef_translator_test_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
|
||||
// PRIMITIVE VALUES
|
||||
@@ -242,124 +246,271 @@ typedef struct _cef_translator_test_t {
|
||||
struct _cef_translator_test_t* self);
|
||||
|
||||
|
||||
// LIBRARY-SIDE OBJECT VALUES
|
||||
// LIBRARY-SIDE REFPTR VALUES
|
||||
|
||||
///
|
||||
// Return an new library-side object.
|
||||
///
|
||||
struct _cef_translator_test_object_t* (CEF_CALLBACK *get_object)(
|
||||
struct _cef_translator_test_t* self, int val);
|
||||
struct _cef_translator_test_ref_ptr_library_t* (
|
||||
CEF_CALLBACK *get_ref_ptr_library)(struct _cef_translator_test_t* self,
|
||||
int val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_object_t::get_value(). This tests input and execution
|
||||
// of a library-side object type.
|
||||
// cef_translator_test_ref_ptr_library_t::get_value(). This tests input and
|
||||
// execution of a library-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_object)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_object_t* val);
|
||||
int (CEF_CALLBACK *set_ref_ptr_library)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_ref_ptr_library_t* val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the object passed in. This tests input and output of
|
||||
// a library-side object type.
|
||||
///
|
||||
struct _cef_translator_test_object_t* (CEF_CALLBACK *set_object_and_return)(
|
||||
struct _cef_translator_test_ref_ptr_library_t* (
|
||||
CEF_CALLBACK *set_ref_ptr_library_and_return)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_object_t* val);
|
||||
struct _cef_translator_test_ref_ptr_library_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_object_t::get_value(). This tests input of a library-
|
||||
// side child object type and execution as the parent type.
|
||||
// cef_translator_test_ref_ptr_library_t::get_value(). This tests input of a
|
||||
// library- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_object)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_object_child_t* val);
|
||||
int (CEF_CALLBACK *set_child_ref_ptr_library)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_ref_ptr_library_child_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the object as the parent type. This tests input
|
||||
// of a library-side child object type and return as the parent type.
|
||||
///
|
||||
struct _cef_translator_test_object_t* (
|
||||
CEF_CALLBACK *set_child_object_and_return_parent)(
|
||||
struct _cef_translator_test_ref_ptr_library_t* (
|
||||
CEF_CALLBACK *set_child_ref_ptr_library_and_return_parent)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_object_child_t* val);
|
||||
struct _cef_translator_test_ref_ptr_library_child_t* val);
|
||||
|
||||
///
|
||||
// Set an object list vlaue.
|
||||
///
|
||||
int (CEF_CALLBACK *set_object_list)(struct _cef_translator_test_t* self,
|
||||
size_t valCount, struct _cef_translator_test_object_t* const* val,
|
||||
int val1, int val2);
|
||||
int (CEF_CALLBACK *set_ref_ptr_library_list)(
|
||||
struct _cef_translator_test_t* self, size_t valCount,
|
||||
struct _cef_translator_test_ref_ptr_library_t* const* val, int val1,
|
||||
int val2);
|
||||
|
||||
///
|
||||
// Return an object list value by out-param.
|
||||
///
|
||||
int (CEF_CALLBACK *get_object_list_by_ref)(
|
||||
int (CEF_CALLBACK *get_ref_ptr_library_list_by_ref)(
|
||||
struct _cef_translator_test_t* self, size_t* valCount,
|
||||
struct _cef_translator_test_object_t** val, int val1, int val2);
|
||||
struct _cef_translator_test_ref_ptr_library_t** val, int val1,
|
||||
int val2);
|
||||
|
||||
///
|
||||
// Return the number of object that will be output above.
|
||||
///
|
||||
size_t (CEF_CALLBACK *get_object_list_size)(
|
||||
size_t (CEF_CALLBACK *get_ref_ptr_library_list_size)(
|
||||
struct _cef_translator_test_t* self);
|
||||
|
||||
|
||||
// CLIENT-SIDE OBJECT VALUES
|
||||
// CLIENT-SIDE REFPTR VALUES
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_handler_t::get_value(). This tests input and execution
|
||||
// of a client-side object type.
|
||||
// cef_translator_test_ref_ptr_client_t::get_value(). This tests input and
|
||||
// execution of a client-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_handler)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_handler_t* val);
|
||||
int (CEF_CALLBACK *set_ref_ptr_client)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_ref_ptr_client_t* val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the handler passed in. This tests input and output
|
||||
// of a client-side object type.
|
||||
///
|
||||
struct _cef_translator_test_handler_t* (CEF_CALLBACK *set_handler_and_return)(
|
||||
struct _cef_translator_test_ref_ptr_client_t* (
|
||||
CEF_CALLBACK *set_ref_ptr_client_and_return)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_handler_t* val);
|
||||
struct _cef_translator_test_ref_ptr_client_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_handler_t::get_value(). This tests input of a client-
|
||||
// side child object type and execution as the parent type.
|
||||
// cef_translator_test_ref_ptr_client_t::get_value(). This tests input of a
|
||||
// client- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_handler)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_handler_child_t* val);
|
||||
int (CEF_CALLBACK *set_child_ref_ptr_client)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_ref_ptr_client_child_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the object as the parent type. This tests input
|
||||
// of a client-side child object type and return as the parent type.
|
||||
///
|
||||
struct _cef_translator_test_handler_t* (
|
||||
CEF_CALLBACK *set_child_handler_and_return_parent)(
|
||||
struct _cef_translator_test_ref_ptr_client_t* (
|
||||
CEF_CALLBACK *set_child_ref_ptr_client_and_return_parent)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_handler_child_t* val);
|
||||
struct _cef_translator_test_ref_ptr_client_child_t* val);
|
||||
|
||||
///
|
||||
// Set an object list vlaue.
|
||||
///
|
||||
int (CEF_CALLBACK *set_handler_list)(struct _cef_translator_test_t* self,
|
||||
size_t valCount, struct _cef_translator_test_handler_t* const* val,
|
||||
int val1, int val2);
|
||||
int (CEF_CALLBACK *set_ref_ptr_client_list)(
|
||||
struct _cef_translator_test_t* self, size_t valCount,
|
||||
struct _cef_translator_test_ref_ptr_client_t* const* val, int val1,
|
||||
int val2);
|
||||
|
||||
///
|
||||
// Return an object list value by out-param.
|
||||
///
|
||||
int (CEF_CALLBACK *get_handler_list_by_ref)(
|
||||
int (CEF_CALLBACK *get_ref_ptr_client_list_by_ref)(
|
||||
struct _cef_translator_test_t* self, size_t* valCount,
|
||||
struct _cef_translator_test_handler_t** val,
|
||||
struct _cef_translator_test_handler_t* val1,
|
||||
struct _cef_translator_test_handler_t* val2);
|
||||
struct _cef_translator_test_ref_ptr_client_t** val,
|
||||
struct _cef_translator_test_ref_ptr_client_t* val1,
|
||||
struct _cef_translator_test_ref_ptr_client_t* val2);
|
||||
|
||||
///
|
||||
// Return the number of object that will be output above.
|
||||
///
|
||||
size_t (CEF_CALLBACK *get_handler_list_size)(
|
||||
size_t (CEF_CALLBACK *get_ref_ptr_client_list_size)(
|
||||
struct _cef_translator_test_t* self);
|
||||
|
||||
|
||||
// LIBRARY-SIDE OWNPTR VALUES
|
||||
|
||||
///
|
||||
// Return an new library-side object.
|
||||
///
|
||||
struct _cef_translator_test_scoped_library_t* (
|
||||
CEF_CALLBACK *get_own_ptr_library)(struct _cef_translator_test_t* self,
|
||||
int val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_scoped_library_t::get_value(). This tests input and
|
||||
// execution of a library-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_own_ptr_library)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_t* val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the object passed in. This tests input and output of
|
||||
// a library-side object type.
|
||||
///
|
||||
struct _cef_translator_test_scoped_library_t* (
|
||||
CEF_CALLBACK *set_own_ptr_library_and_return)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_scoped_library_t::get_value(). This tests input of a
|
||||
// library- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_own_ptr_library)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_child_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the object as the parent type. This tests input
|
||||
// of a library-side child object type and return as the parent type.
|
||||
///
|
||||
struct _cef_translator_test_scoped_library_t* (
|
||||
CEF_CALLBACK *set_child_own_ptr_library_and_return_parent)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_child_t* val);
|
||||
|
||||
|
||||
// CLIENT-SIDE OWNPTR VALUES
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_scoped_client_t::get_value(). This tests input and
|
||||
// execution of a client-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_own_ptr_client)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_t* val);
|
||||
|
||||
///
|
||||
// Set an object. Returns the handler passed in. This tests input and output
|
||||
// of a client-side object type.
|
||||
///
|
||||
struct _cef_translator_test_scoped_client_t* (
|
||||
CEF_CALLBACK *set_own_ptr_client_and_return)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_scoped_client_t::get_value(). This tests input of a
|
||||
// client- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_own_ptr_client)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_child_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the object as the parent type. This tests input
|
||||
// of a client-side child object type and return as the parent type.
|
||||
///
|
||||
struct _cef_translator_test_scoped_client_t* (
|
||||
CEF_CALLBACK *set_child_own_ptr_client_and_return_parent)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_child_t* val);
|
||||
|
||||
|
||||
// LIBRARY-SIDE RAWPTR VALUES
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_scoped_library_t::get_value(). This tests input and
|
||||
// execution of a library-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_raw_ptr_library)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_scoped_library_t::get_value(). This tests input of a
|
||||
// library- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_raw_ptr_library)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_library_child_t* val);
|
||||
|
||||
///
|
||||
// Set an object list vlaue.
|
||||
///
|
||||
int (CEF_CALLBACK *set_raw_ptr_library_list)(
|
||||
struct _cef_translator_test_t* self, size_t valCount,
|
||||
struct _cef_translator_test_scoped_library_t* const* val, int val1,
|
||||
int val2);
|
||||
|
||||
|
||||
// CLIENT-SIDE RAWPTR VALUES
|
||||
|
||||
///
|
||||
// Set an object. Returns the value from
|
||||
// cef_translator_test_scoped_client_t::get_value(). This tests input and
|
||||
// execution of a client-side object type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_raw_ptr_client)(struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_t* val);
|
||||
|
||||
///
|
||||
// Set a child object. Returns the value from
|
||||
// cef_translator_test_scoped_client_t::get_value(). This tests input of a
|
||||
// client- side child object type and execution as the parent type.
|
||||
///
|
||||
int (CEF_CALLBACK *set_child_raw_ptr_client)(
|
||||
struct _cef_translator_test_t* self,
|
||||
struct _cef_translator_test_scoped_client_child_t* val);
|
||||
|
||||
///
|
||||
// Set an object list vlaue.
|
||||
///
|
||||
int (CEF_CALLBACK *set_raw_ptr_client_list)(
|
||||
struct _cef_translator_test_t* self, size_t valCount,
|
||||
struct _cef_translator_test_scoped_client_t* const* val, int val1,
|
||||
int val2);
|
||||
} cef_translator_test_t;
|
||||
|
||||
|
||||
@@ -370,125 +521,253 @@ CEF_EXPORT cef_translator_test_t* cef_translator_test_create();
|
||||
|
||||
|
||||
///
|
||||
// Library-side test object.
|
||||
// Library-side test object for RefPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_object_t {
|
||||
typedef struct _cef_translator_test_ref_ptr_library_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_value)(struct _cef_translator_test_object_t* self);
|
||||
int (CEF_CALLBACK *get_value)(
|
||||
struct _cef_translator_test_ref_ptr_library_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_value)(struct _cef_translator_test_object_t* self,
|
||||
int value);
|
||||
} cef_translator_test_object_t;
|
||||
void (CEF_CALLBACK *set_value)(
|
||||
struct _cef_translator_test_ref_ptr_library_t* self, int value);
|
||||
} cef_translator_test_ref_ptr_library_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_object_t* cef_translator_test_object_create(
|
||||
CEF_EXPORT cef_translator_test_ref_ptr_library_t* cef_translator_test_ref_ptr_library_create(
|
||||
int value);
|
||||
|
||||
|
||||
///
|
||||
// Library-side child test object.
|
||||
// Library-side child test object for RefPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_object_child_t {
|
||||
typedef struct _cef_translator_test_ref_ptr_library_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_object_t base;
|
||||
cef_translator_test_ref_ptr_library_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_value)(
|
||||
struct _cef_translator_test_object_child_t* self);
|
||||
struct _cef_translator_test_ref_ptr_library_child_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_other_value)(
|
||||
struct _cef_translator_test_object_child_t* self, int value);
|
||||
} cef_translator_test_object_child_t;
|
||||
struct _cef_translator_test_ref_ptr_library_child_t* self, int value);
|
||||
} cef_translator_test_ref_ptr_library_child_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_object_child_t* cef_translator_test_object_child_create(
|
||||
CEF_EXPORT cef_translator_test_ref_ptr_library_child_t* cef_translator_test_ref_ptr_library_child_create(
|
||||
int value, int other_value);
|
||||
|
||||
|
||||
///
|
||||
// Another library-side child test object.
|
||||
// Another library-side child test object for RefPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_object_child_child_t {
|
||||
typedef struct _cef_translator_test_ref_ptr_library_child_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_object_child_t base;
|
||||
cef_translator_test_ref_ptr_library_child_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_other_value)(
|
||||
struct _cef_translator_test_object_child_child_t* self);
|
||||
struct _cef_translator_test_ref_ptr_library_child_child_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_other_other_value)(
|
||||
struct _cef_translator_test_object_child_child_t* self, int value);
|
||||
} cef_translator_test_object_child_child_t;
|
||||
struct _cef_translator_test_ref_ptr_library_child_child_t* self,
|
||||
int value);
|
||||
} cef_translator_test_ref_ptr_library_child_child_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_object_child_child_t* cef_translator_test_object_child_child_create(
|
||||
CEF_EXPORT cef_translator_test_ref_ptr_library_child_child_t* cef_translator_test_ref_ptr_library_child_child_create(
|
||||
int value, int other_value, int other_other_value);
|
||||
|
||||
|
||||
///
|
||||
// Client-side test object.
|
||||
// Client-side test object for RefPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_handler_t {
|
||||
typedef struct _cef_translator_test_ref_ptr_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_value)(struct _cef_translator_test_handler_t* self);
|
||||
} cef_translator_test_handler_t;
|
||||
int (CEF_CALLBACK *get_value)(
|
||||
struct _cef_translator_test_ref_ptr_client_t* self);
|
||||
} cef_translator_test_ref_ptr_client_t;
|
||||
|
||||
|
||||
///
|
||||
// Client-side child test object.
|
||||
// Client-side child test object for RefPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_handler_child_t {
|
||||
typedef struct _cef_translator_test_ref_ptr_client_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_handler_t base;
|
||||
cef_translator_test_ref_ptr_client_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_value)(
|
||||
struct _cef_translator_test_handler_child_t* self);
|
||||
} cef_translator_test_handler_child_t;
|
||||
struct _cef_translator_test_ref_ptr_client_child_t* self);
|
||||
} cef_translator_test_ref_ptr_client_child_t;
|
||||
|
||||
|
||||
///
|
||||
// Library-side test object for OwnPtr/RawPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_scoped_library_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_scoped_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_value)(
|
||||
struct _cef_translator_test_scoped_library_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_value)(
|
||||
struct _cef_translator_test_scoped_library_t* self, int value);
|
||||
} cef_translator_test_scoped_library_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_scoped_library_t* cef_translator_test_scoped_library_create(
|
||||
int value);
|
||||
|
||||
|
||||
///
|
||||
// Library-side child test object for OwnPtr/RawPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_scoped_library_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_scoped_library_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_value)(
|
||||
struct _cef_translator_test_scoped_library_child_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_other_value)(
|
||||
struct _cef_translator_test_scoped_library_child_t* self, int value);
|
||||
} cef_translator_test_scoped_library_child_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_scoped_library_child_t* cef_translator_test_scoped_library_child_create(
|
||||
int value, int other_value);
|
||||
|
||||
|
||||
///
|
||||
// Another library-side child test object for OwnPtr/RawPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_scoped_library_child_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_scoped_library_child_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_other_value)(
|
||||
struct _cef_translator_test_scoped_library_child_child_t* self);
|
||||
|
||||
///
|
||||
// Set a value.
|
||||
///
|
||||
void (CEF_CALLBACK *set_other_other_value)(
|
||||
struct _cef_translator_test_scoped_library_child_child_t* self,
|
||||
int value);
|
||||
} cef_translator_test_scoped_library_child_child_t;
|
||||
|
||||
|
||||
///
|
||||
// Create the test object.
|
||||
///
|
||||
CEF_EXPORT cef_translator_test_scoped_library_child_child_t* cef_translator_test_scoped_library_child_child_create(
|
||||
int value, int other_value, int other_other_value);
|
||||
|
||||
|
||||
///
|
||||
// Client-side test object for OwnPtr/RawPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_scoped_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_scoped_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_value)(
|
||||
struct _cef_translator_test_scoped_client_t* self);
|
||||
} cef_translator_test_scoped_client_t;
|
||||
|
||||
|
||||
///
|
||||
// Client-side child test object for OwnPtr/RawPtr.
|
||||
///
|
||||
typedef struct _cef_translator_test_scoped_client_child_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_translator_test_scoped_client_t base;
|
||||
|
||||
///
|
||||
// Return a value.
|
||||
///
|
||||
int (CEF_CALLBACK *get_other_value)(
|
||||
struct _cef_translator_test_scoped_client_child_t* self);
|
||||
} cef_translator_test_scoped_client_child_t;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@@ -63,6 +63,18 @@ typedef struct _cef_browser_view_t {
|
||||
///
|
||||
struct _cef_browser_t* (CEF_CALLBACK *get_browser)(
|
||||
struct _cef_browser_view_t* self);
|
||||
|
||||
///
|
||||
// Sets whether accelerators registered with cef_window_t::SetAccelerator are
|
||||
// triggered before or after the event is sent to the cef_browser_t. If
|
||||
// |prefer_accelerators| is true (1) then the matching accelerator will be
|
||||
// triggered immediately and the event will not be sent to the cef_browser_t.
|
||||
// If |prefer_accelerators| is false (0) then the matching accelerator will
|
||||
// only be triggered if the event is not handled by web content or by
|
||||
// cef_keyboard_handler_t. The default value is false (0).
|
||||
///
|
||||
void (CEF_CALLBACK *set_prefer_accelerators)(struct _cef_browser_view_t* self,
|
||||
int prefer_accelerators);
|
||||
} cef_browser_view_t;
|
||||
|
||||
|
||||
|
@@ -74,6 +74,12 @@ typedef struct _cef_button_t {
|
||||
///
|
||||
cef_button_state_t (CEF_CALLBACK *get_state)(struct _cef_button_t* self);
|
||||
|
||||
///
|
||||
// Sets the Button will use an ink drop effect for displaying state changes.
|
||||
///
|
||||
void (CEF_CALLBACK *set_ink_drop_enabled)(struct _cef_button_t* self,
|
||||
int enabled);
|
||||
|
||||
///
|
||||
// Sets the tooltip text that will be displayed when the user hovers the mouse
|
||||
// cursor over the Button.
|
||||
|
@@ -62,6 +62,12 @@ typedef struct _cef_button_delegate_t {
|
||||
///
|
||||
void (CEF_CALLBACK *on_button_pressed)(struct _cef_button_delegate_t* self,
|
||||
struct _cef_button_t* button);
|
||||
|
||||
///
|
||||
// Called when the state of |button| changes.
|
||||
///
|
||||
void (CEF_CALLBACK *on_button_state_changed)(
|
||||
struct _cef_button_delegate_t* self, struct _cef_button_t* button);
|
||||
} cef_button_delegate_t;
|
||||
|
||||
|
||||
|
@@ -57,7 +57,7 @@ typedef struct _cef_display_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns the unique identifier for this Display.
|
||||
|
@@ -56,7 +56,7 @@ typedef struct _cef_layout_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.
|
||||
|
@@ -68,6 +68,12 @@ typedef struct _cef_menu_button_t {
|
||||
void (CEF_CALLBACK *show_menu)(struct _cef_menu_button_t* self,
|
||||
struct _cef_menu_model_t* menu_model, const cef_point_t* screen_point,
|
||||
cef_menu_anchor_position_t anchor_position);
|
||||
|
||||
///
|
||||
// Show the menu for this button. Results in a call to
|
||||
// cef_menu_button_delegate_t::on_menu_button_pressed().
|
||||
///
|
||||
void (CEF_CALLBACK *trigger_menu)(struct _cef_menu_button_t* self);
|
||||
} cef_menu_button_t;
|
||||
|
||||
|
||||
|
@@ -61,7 +61,7 @@ typedef struct _cef_view_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Returns this View as a BrowserView or NULL if this is not a BrowserView.
|
||||
@@ -148,6 +148,18 @@ typedef struct _cef_view_t {
|
||||
///
|
||||
void (CEF_CALLBACK *set_id)(struct _cef_view_t* self, int id);
|
||||
|
||||
///
|
||||
// Returns the group id of this View, or -1 if not set.
|
||||
///
|
||||
int (CEF_CALLBACK *get_group_id)(struct _cef_view_t* self);
|
||||
|
||||
///
|
||||
// A group id is used to tag Views which are part of the same logical group.
|
||||
// Focus can be moved between views with the same group using the arrow keys.
|
||||
// The group id is immutable once it's set.
|
||||
///
|
||||
void (CEF_CALLBACK *set_group_id)(struct _cef_view_t* self, int group_id);
|
||||
|
||||
///
|
||||
// Returns the View that contains this View, if any.
|
||||
///
|
||||
|
@@ -55,7 +55,7 @@ typedef struct _cef_view_delegate_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
cef_base_t base;
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Return the preferred size for |view|. The Layout will use this information
|
||||
@@ -105,6 +105,18 @@ typedef struct _cef_view_delegate_t {
|
||||
///
|
||||
void (CEF_CALLBACK *on_child_view_changed)(struct _cef_view_delegate_t* self,
|
||||
struct _cef_view_t* view, int added, struct _cef_view_t* child);
|
||||
|
||||
///
|
||||
// Called when |view| gains focus.
|
||||
///
|
||||
void (CEF_CALLBACK *on_focus)(struct _cef_view_delegate_t* self,
|
||||
struct _cef_view_t* view);
|
||||
|
||||
///
|
||||
// Called when |view| loses focus.
|
||||
///
|
||||
void (CEF_CALLBACK *on_blur)(struct _cef_view_delegate_t* self,
|
||||
struct _cef_view_t* view);
|
||||
} cef_view_delegate_t;
|
||||
|
||||
|
||||
|
@@ -269,6 +269,27 @@ typedef struct _cef_window_t {
|
||||
///
|
||||
void (CEF_CALLBACK *send_mouse_events)(struct _cef_window_t* self,
|
||||
cef_mouse_button_type_t button, int mouse_down, int mouse_up);
|
||||
|
||||
///
|
||||
// Set the keyboard accelerator for the specified |command_id|. |key_code| can
|
||||
// be any virtual key or character value. cef_window_delegate_t::OnAccelerator
|
||||
// will be called if the keyboard combination is triggered while this window
|
||||
// has focus.
|
||||
///
|
||||
void (CEF_CALLBACK *set_accelerator)(struct _cef_window_t* self,
|
||||
int command_id, int key_code, int shift_pressed, int ctrl_pressed,
|
||||
int alt_pressed);
|
||||
|
||||
///
|
||||
// Remove the keyboard accelerator for the specified |command_id|.
|
||||
///
|
||||
void (CEF_CALLBACK *remove_accelerator)(struct _cef_window_t* self,
|
||||
int command_id);
|
||||
|
||||
///
|
||||
// Remove all keyboard accelerators.
|
||||
///
|
||||
void (CEF_CALLBACK *remove_all_accelerators)(struct _cef_window_t* self);
|
||||
} cef_window_t;
|
||||
|
||||
|
||||
|
@@ -103,6 +103,22 @@ typedef struct _cef_window_delegate_t {
|
||||
///
|
||||
int (CEF_CALLBACK *can_close)(struct _cef_window_delegate_t* self,
|
||||
struct _cef_window_t* window);
|
||||
|
||||
///
|
||||
// Called when a keyboard accelerator registered with
|
||||
// cef_window_t::SetAccelerator is triggered. Return true (1) if the
|
||||
// accelerator was handled or false (0) otherwise.
|
||||
///
|
||||
int (CEF_CALLBACK *on_accelerator)(struct _cef_window_delegate_t* self,
|
||||
struct _cef_window_t* window, int command_id);
|
||||
|
||||
///
|
||||
// Called after all other controls in the window have had a chance to handle
|
||||
// the event. |event| contains information about the keyboard event. Return
|
||||
// true (1) if the keyboard event was handled or false (0) otherwise.
|
||||
///
|
||||
int (CEF_CALLBACK *on_key_event)(struct _cef_window_delegate_t* self,
|
||||
struct _cef_window_t* window, const struct _cef_key_event_t* event);
|
||||
} cef_window_delegate_t;
|
||||
|
||||
|
||||
|
@@ -143,7 +143,7 @@ void CefEnableHighDPISupport();
|
||||
// called by the process and/or thread indicated.
|
||||
///
|
||||
/*--cef(source=client,no_debugct_check)--*/
|
||||
class CefApp : public virtual CefBase {
|
||||
class CefApp : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Provides an opportunity to view and/or modify command-line arguments before
|
||||
@@ -170,7 +170,7 @@ class CefApp : public virtual CefBase {
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void OnRegisterCustomSchemes(
|
||||
CefRefPtr<CefSchemeRegistrar> registrar) {
|
||||
CefRawPtr<CefSchemeRegistrar> registrar) {
|
||||
}
|
||||
|
||||
///
|
||||
|
@@ -45,7 +45,7 @@
|
||||
// requests.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefAuthCallback : public virtual CefBase {
|
||||
class CefAuthCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Continue the authentication request.
|
||||
|
@@ -48,10 +48,9 @@
|
||||
#endif
|
||||
|
||||
///
|
||||
// Interface defining the reference count implementation methods. All framework
|
||||
// classes must extend the CefBase class.
|
||||
// All ref-counted framework classes must extend this class.
|
||||
///
|
||||
class CefBase {
|
||||
class CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called to increment the reference count for the object. Should be called
|
||||
@@ -71,7 +70,15 @@ class CefBase {
|
||||
virtual bool HasOneRef() const =0;
|
||||
|
||||
protected:
|
||||
virtual ~CefBase() {}
|
||||
virtual ~CefBaseRefCounted() {}
|
||||
};
|
||||
|
||||
///
|
||||
// All scoped framework classes must extend this class.
|
||||
///
|
||||
class CefBaseScoped {
|
||||
public:
|
||||
virtual ~CefBaseScoped() {}
|
||||
};
|
||||
|
||||
///
|
||||
@@ -141,7 +148,7 @@ class CefRefCount {
|
||||
// #include "include/base/cef_lock.h"
|
||||
//
|
||||
// // Class declaration.
|
||||
// class MyClass : public CefBase {
|
||||
// class MyClass : public CefBaseRefCounted {
|
||||
// public:
|
||||
// MyClass() : value_(0) {}
|
||||
// // Method that may be called on multiple threads.
|
||||
|
@@ -58,7 +58,7 @@ class CefClient;
|
||||
// this class may only be called on the main thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefBrowser : public virtual CefBase {
|
||||
class CefBrowser : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Returns the browser host object. This method can only be called in the
|
||||
@@ -197,7 +197,7 @@ class CefBrowser : public virtual CefBase {
|
||||
// class will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefRunFileDialogCallback : public virtual CefBase {
|
||||
class CefRunFileDialogCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called asynchronously after the file dialog is dismissed.
|
||||
@@ -218,7 +218,7 @@ class CefRunFileDialogCallback : public virtual CefBase {
|
||||
// this class will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefNavigationEntryVisitor : public virtual CefBase {
|
||||
class CefNavigationEntryVisitor : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be executed. Do not keep a reference to |entry| outside of
|
||||
@@ -240,7 +240,7 @@ class CefNavigationEntryVisitor : public virtual CefBase {
|
||||
// will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefPdfPrintCallback : public virtual CefBase {
|
||||
class CefPdfPrintCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be executed when the PDF printing has completed. |path|
|
||||
@@ -257,7 +257,7 @@ class CefPdfPrintCallback : public virtual CefBase {
|
||||
// class will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDownloadImageCallback : public virtual CefBase {
|
||||
class CefDownloadImageCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be executed when the image download has completed.
|
||||
@@ -280,7 +280,7 @@ class CefDownloadImageCallback : public virtual CefBase {
|
||||
// comments.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefBrowserHost : public virtual CefBase {
|
||||
class CefBrowserHost : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_drag_operations_mask_t DragOperationsMask;
|
||||
typedef cef_file_dialog_mode_t FileDialogMode;
|
||||
|
@@ -48,7 +48,7 @@
|
||||
// will be called on the browser process main thread unless otherwise indicated.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefBrowserProcessHandler : public virtual CefBase {
|
||||
class CefBrowserProcessHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called on the browser process UI thread immediately after the CEF context
|
||||
|
@@ -44,7 +44,7 @@
|
||||
// Generic callback interface used for asynchronous continuation.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefCallback : public virtual CefBase {
|
||||
class CefCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Continue processing.
|
||||
@@ -63,7 +63,7 @@ class CefCallback : public virtual CefBase {
|
||||
// Generic callback interface used for asynchronous completion.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefCompletionCallback : public virtual CefBase {
|
||||
class CefCompletionCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be called once the task is complete.
|
||||
|
@@ -59,7 +59,7 @@
|
||||
// Implement this interface to provide handler implementations.
|
||||
///
|
||||
/*--cef(source=client,no_debugct_check)--*/
|
||||
class CefClient : public virtual CefBase {
|
||||
class CefClient : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Return the handler for context menus. If no handler is provided the default
|
||||
|
@@ -53,7 +53,7 @@
|
||||
// used before CefInitialize() is called.
|
||||
///
|
||||
/*--cef(source=library,no_debugct_check)--*/
|
||||
class CefCommandLine : public virtual CefBase {
|
||||
class CefCommandLine : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef std::vector<CefString> ArgumentList;
|
||||
typedef std::map<CefString, CefString> SwitchMap;
|
||||
|
@@ -50,7 +50,7 @@ class CefContextMenuParams;
|
||||
// Callback interface used for continuation of custom context menu display.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefRunContextMenuCallback : public virtual CefBase {
|
||||
class CefRunContextMenuCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_event_flags_t EventFlags;
|
||||
|
||||
@@ -74,7 +74,7 @@ class CefRunContextMenuCallback : public virtual CefBase {
|
||||
// class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefContextMenuHandler : public virtual CefBase {
|
||||
class CefContextMenuHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_event_flags_t EventFlags;
|
||||
|
||||
@@ -139,7 +139,7 @@ class CefContextMenuHandler : public virtual CefBase {
|
||||
// can only be accessed on browser process the UI thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefContextMenuParams : public virtual CefBase {
|
||||
class CefContextMenuParams : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_context_menu_type_flags_t TypeFlags;
|
||||
typedef cef_context_menu_media_type_t MediaType;
|
||||
|
@@ -51,7 +51,7 @@ class CefDeleteCookiesCallback;
|
||||
// any thread unless otherwise indicated.
|
||||
///
|
||||
/*--cef(source=library,no_debugct_check)--*/
|
||||
class CefCookieManager : public virtual CefBase {
|
||||
class CefCookieManager : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Returns the global cookie manager. By default data will be stored at
|
||||
@@ -171,7 +171,7 @@ class CefCookieManager : public virtual CefBase {
|
||||
// will always be called on the IO thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefCookieVisitor : public virtual CefBase {
|
||||
class CefCookieVisitor : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be called once for each cookie. |count| is the 0-based
|
||||
@@ -191,7 +191,7 @@ class CefCookieVisitor : public virtual CefBase {
|
||||
// CefCookieManager::SetCookie().
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefSetCookieCallback : public virtual CefBase {
|
||||
class CefSetCookieCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be called upon completion. |success| will be true if the
|
||||
@@ -207,7 +207,7 @@ class CefSetCookieCallback : public virtual CefBase {
|
||||
// CefCookieManager::DeleteCookies().
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDeleteCookiesCallback : public virtual CefBase {
|
||||
class CefDeleteCookiesCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method that will be called upon completion. |num_deleted| will be the
|
||||
|
@@ -54,6 +54,9 @@
|
||||
// information; default to "CEF">
|
||||
// ExternalHandler=<Windows only; Name of the external handler exe to use
|
||||
// instead of re-launching the main exe; default to empty>
|
||||
// BrowserCrashForwardingEnabled=<macOS only; True if browser process crashes
|
||||
// should be forwarded to the system crash
|
||||
// reporter; default to false>
|
||||
// ServerURL=<crash server URL; default to empty>
|
||||
// RateLimitEnabled=<True if uploads should be rate limited; default to true>
|
||||
// MaxUploadsPerDay=<Max uploads per 24 hours, used if rate limit is enabled;
|
||||
@@ -85,6 +88,12 @@
|
||||
// directory. On Linux the CefSettings.browser_subprocess_path value will be
|
||||
// used. On macOS the existing subprocess app bundle will be used.
|
||||
//
|
||||
// If "BrowserCrashForwardingEnabled" is set to true on macOS then browser
|
||||
// process crashes will be forwarded to the system crash reporter. This results
|
||||
// in the crash UI dialog being displayed to the user and crash reports being
|
||||
// logged under "~/Library/Logs/DiagnosticReports". Forwarding of crash reports
|
||||
// from non-browser processes and Debug builds is always disabled.
|
||||
//
|
||||
// If "ServerURL" is set then crashes will be uploaded as a multi-part POST
|
||||
// request to the specified URL. Otherwise, reports will only be stored locally
|
||||
// on disk.
|
||||
@@ -129,7 +138,7 @@ bool CefCrashReportingEnabled();
|
||||
///
|
||||
// Sets or clears a specific key-value pair from the crash metadata.
|
||||
///
|
||||
/*--cef()--*/
|
||||
/*--cef(optional_param=value)--*/
|
||||
void CefSetCrashKeyValue(const CefString& key, const CefString& value);
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_CRASH_UTIL_H_
|
||||
|
@@ -45,7 +45,7 @@
|
||||
// Callback interface for asynchronous continuation of file dialog requests.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefFileDialogCallback : public virtual CefBase {
|
||||
class CefFileDialogCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Continue the file selection. |selected_accept_filter| should be the 0-based
|
||||
@@ -72,7 +72,7 @@ class CefFileDialogCallback : public virtual CefBase {
|
||||
// will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDialogHandler : public virtual CefBase {
|
||||
class CefDialogHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_file_dialog_mode_t FileDialogMode;
|
||||
|
||||
|
@@ -47,7 +47,7 @@
|
||||
// The methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDisplayHandler : public virtual CefBase {
|
||||
class CefDisplayHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called when a frame's address has changed.
|
||||
|
@@ -49,7 +49,7 @@ class CefDOMNode;
|
||||
// be called on the render process main thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDOMVisitor : public virtual CefBase {
|
||||
class CefDOMVisitor : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Method executed for visiting the DOM. The document object passed to this
|
||||
@@ -68,7 +68,7 @@ class CefDOMVisitor : public virtual CefBase {
|
||||
// be called on the render process main thread thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDOMDocument : public virtual CefBase {
|
||||
class CefDOMDocument : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_dom_document_type_t Type;
|
||||
|
||||
@@ -164,7 +164,7 @@ class CefDOMDocument : public virtual CefBase {
|
||||
// called on the render process main thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDOMNode : public virtual CefBase {
|
||||
class CefDOMNode : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef std::map<CefString, CefString> AttributeMap;
|
||||
typedef cef_dom_node_type_t Type;
|
||||
|
@@ -47,7 +47,7 @@
|
||||
// Callback interface used to asynchronously continue a download.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefBeforeDownloadCallback : public virtual CefBase {
|
||||
class CefBeforeDownloadCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Call to continue the download. Set |download_path| to the full file path
|
||||
@@ -64,7 +64,7 @@ class CefBeforeDownloadCallback : public virtual CefBase {
|
||||
// Callback interface used to asynchronously cancel a download.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDownloadItemCallback : public virtual CefBase {
|
||||
class CefDownloadItemCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Call to cancel the download.
|
||||
@@ -91,7 +91,7 @@ class CefDownloadItemCallback : public virtual CefBase {
|
||||
// on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDownloadHandler : public virtual CefBase {
|
||||
class CefDownloadHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called before a download begins. |suggested_name| is the suggested name for
|
||||
|
@@ -44,7 +44,7 @@
|
||||
// Class used to represent a download item.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDownloadItem : public virtual CefBase {
|
||||
class CefDownloadItem : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Returns true if this object is valid. Do not call any other methods if this
|
||||
|
@@ -47,7 +47,7 @@
|
||||
// on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDragData : public virtual CefBase {
|
||||
class CefDragData : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Create a new CefDragData object.
|
||||
|
@@ -47,7 +47,7 @@
|
||||
// this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDragHandler : public virtual CefBase {
|
||||
class CefDragHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_drag_operations_mask_t DragOperationsMask;
|
||||
|
||||
|
@@ -46,7 +46,7 @@
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefFindHandler : public virtual CefBase {
|
||||
class CefFindHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called to report find results returned by CefBrowserHost::Find().
|
||||
|
@@ -48,7 +48,7 @@
|
||||
// this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefFocusHandler : public virtual CefBase {
|
||||
class CefFocusHandler : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
typedef cef_focus_source_t FocusSource;
|
||||
|
||||
|
@@ -54,7 +54,7 @@ class CefV8Context;
|
||||
// methods of this class may only be called on the main thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefFrame : public virtual CefBase {
|
||||
class CefFrame : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// True if this object is currently attached to a valid frame.
|
||||
|
@@ -45,7 +45,7 @@
|
||||
// class will be called on the browser process UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefGetGeolocationCallback : public virtual CefBase {
|
||||
class CefGetGeolocationCallback : public virtual CefBaseRefCounted {
|
||||
public:
|
||||
///
|
||||
// Called with the 'best available' location information or, if the location
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user