Compare commits

..

41 Commits
2987 ... 2924

Author SHA1 Message Date
Marshall Greenblatt
97389a92ee Windows: Fix VS2010 compile error 2017-02-28 15:43:38 -05:00
Marshall Greenblatt
73d380a8ec cmake: Update target platform versions (issue #2109)
- macOS: Allow selection of 10.11 SDK and set target version to 10.9 SDK.
- Windows: Set target version to Windows 7.
2017-02-28 15:31:08 -05:00
Marshall Greenblatt
5b69bde650 Fix configuration of CefSettings.framework_dir_path (issue #2110) 2017-02-28 14:41:56 -05:00
Marshall Greenblatt
178f101bfb Windows: Fix AtExitManager assertion in SupervisedUserSettingsServiceFactory on shutdown when running with multi-threaded message loop (issue #1680) 2017-02-27 15:08:15 -05:00
Marshall Greenblatt
cdcdfa9991 Windows: Support crash upload URLs with query component (issue #1995) 2017-02-21 13:42:42 -05:00
Marshall Greenblatt
558741c384 Fix OSR popup transparency (issue #2099) 2017-02-15 16:04:57 -05:00
Marshall Greenblatt
067d91504f Fix error in browser_plugin_guest_1565.patch 2017-02-14 10:45:18 -05:00
Marshall Greenblatt
763ecb484f Fix SupervisedUserSettingsService initialization (issue #2093) 2017-02-13 17:23:50 -05:00
Marshall Greenblatt
4c4ae85089 Simplify OSR guest view implementation 2017-02-13 16:09:16 -05:00
Marshall Greenblatt
a6a3da2d53 Allow empty value param to CefSetCrashKeyValue (issue #1995) 2017-02-08 12:37:29 -05:00
Marshall Greenblatt
80258004b9 macOS: Fix issue with display of auto-hide scrollbars 2017-02-08 11:23:13 -05:00
Marshall Greenblatt
0ba0378d19 macOS: Generate correct framework and Info.plist version numbers (issue #1969) 2017-02-06 18:26:02 -05:00
Marshall Greenblatt
e5105d4e09 macOS: Fix incorrect OSR compositor resize in OnSwapCompositorFrame (issue #2065) 2017-02-06 16:36:22 -05:00
Marshall Greenblatt
d513424026 macOS: Add option for forwarding browser process crashes to the system crash reporter (issue #1995) 2017-02-06 14:23:59 -05:00
Marshall Greenblatt
06fde9995d macOS: Fix issue with display of auto-hide scrollbars 2017-02-03 15:00:54 -05:00
Marshall Greenblatt
271bb8bc31 macOS: Update xib files to 10.9 deployment target 2017-02-02 18:19:05 -05:00
Marshall Greenblatt
e7450f2fbc macOS: cefclient: Create Tests menu with Interface Builder 2017-02-02 15:58:42 -05:00
Marshall Greenblatt
872fbc07b5 Fix localization of default context menu labels (issue #2081) 2017-02-01 15:38:59 -05:00
Marshall Greenblatt
ebb70f94e8 Fix KeyedServiceFactory assertion during shutdown (issue #2083) 2017-01-31 17:43:15 -05:00
Marshall Greenblatt
1758b744b2 Fix crash using WebRTC with TLS certs (issue #2080) 2017-01-31 15:27:31 -05:00
Marshall Greenblatt
0ab2e20d44 Windows: Fix command line parsing for crash handler (issue #1995) 2017-01-30 16:17:03 -05:00
Marshall Greenblatt
d6b6d11ec4 Update to Chromium version 56.0.2924.76 2017-01-30 16:02:53 -05:00
Marshall Greenblatt
3561b8dfdb macOS: Support crash reporting from unbundled apps (issue #1532) 2017-01-27 17:05:41 -05:00
Marshall Greenblatt
da2209a6d8 macOS: Allow configuration of framework path (issue #1532) 2017-01-27 17:05:30 -05:00
Marshall Greenblatt
df1d25f0a9 Standardize product/version/platform crash keys (issue #1995) 2017-01-25 14:14:58 -05:00
Marshall Greenblatt
6d7f90ec51 Fix potential OSR crash on renderer process recreation (issue #2082) 2017-01-25 12:36:32 -05:00
Marshall Greenblatt
4bafa3e155 Add is_main_frame argument to CefRequestContextHandler::OnBeforePluginLoad (issue #2015) 2017-01-24 18:16:15 -05:00
Marshall Greenblatt
8dfe9574c4 Add CefContextMenuParams::GetTitleText method (issue #2030) 2017-01-17 13:21:51 -05:00
Marshall Greenblatt
d22b7ed179 Fix CefRequestHandler::OnCertificateError callback trigger (issue #2019) 2017-01-17 13:09:22 -05:00
Marshall Greenblatt
bb4812691e cefclient: Fix typo in TempWindow comments 2017-01-17 13:09:22 -05:00
Marshall Greenblatt
ff7f70442f Windows: Fix white flash during browser creation (issue #1984) 2017-01-13 16:44:25 -05:00
Marshall Greenblatt
288d2eb2e6 Windows: Fix AppName and ExternalHandler usage in crash_reporter.cfg (issue #1995) 2017-01-13 15:30:26 -05:00
Marshall Greenblatt
650a49b0a7 Add product name and version to crash_reporter.cfg (issue #1995) 2017-01-12 14:05:44 -05:00
Marshall Greenblatt
f7cc01059b Improve crashpad integration (issue #1995)
- Crash reporting is enabled and configured using a "crash_reporter.cfg"
  file. See comments in include/cef_crash_util.h and tools/crash_server.py
  for usage.
2017-01-12 14:05:31 -05:00
Marshall Greenblatt
0da94acdf2 Windows: Add missing crashpad initialization (issue #1995) 2017-01-12 14:05:15 -05:00
Marshall Greenblatt
5c07d06435 Update to Chromium version 56.0.2924.51 2017-01-11 18:22:19 -05:00
Marshall Greenblatt
e63e109489 Update copyright year on generated files 2017-01-10 19:26:34 -05:00
Marshall Greenblatt
bfdeccda52 Windows: Fix behavior of frameless windows with Views.
- Don't set InitParams::TRANSLUCENT_WINDOW. Setting this resulted in
  the WS_EX_COMPOSITED style being added and the WS_THICKFRAME style
  being removed, which disabled Aero Snap.
- Remove the non-client border to get a completely frameless window.
  Having a border is problematic because the top is drawn by Windows
  while the rest is drawn black. Having Windows draw part of the
  border is required to enable the window drop shadow (see
  HWNDMessageHandler::SetDwmFrameExtension).
- Delete the remove_caption patches which are no longer required.
2016-12-14 16:19:50 +01:00
Marshall Greenblatt
cf91961ff2 Windows: Fix missing InsertAllocatorDispatch symbol in cef_sandbox.lib (issue #2044) 2016-11-30 19:52:29 -05:00
Marshall Greenblatt
de18fc4292 Windows: Fix x64 build conversion from 'size_t' to 'int' error (issue #2054) 2016-11-30 15:24:10 -05:00
Marshall Greenblatt
b4216db56c Update to Chromium version 56.0.2924.10 2016-11-29 20:43:33 -05:00
919 changed files with 6061 additions and 15821 deletions

View File

@@ -672,14 +672,12 @@ static_library("libcef_static") {
"//media/blink",
"//net",
"//net:net_browser_services",
"//net:net_utility_services",
"//net:net_with_v8",
"//pdf",
"//ppapi/features",
"//printing/features",
"//skia",
"//storage/browser",
"//third_party/brotli:dec",
"//third_party/cld",
"//third_party/hunspell",
"//third_party/leveldatabase",

View File

@@ -7,5 +7,5 @@
# https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding
{
'chromium_checkout': 'refs/tags/57.0.2987.133',
'chromium_checkout': 'refs/tags/56.0.2924.76',
}

View File

@@ -390,26 +390,16 @@
'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_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/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/cpptoc/urlrequest_cpptoc.cc',
'libcef_dll/cpptoc/urlrequest_cpptoc.h',
'libcef_dll/ctocpp/urlrequest_client_ctocpp.cc',
@@ -662,26 +652,16 @@
'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_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/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/ctocpp/urlrequest_ctocpp.cc',
'libcef_dll/ctocpp/urlrequest_ctocpp.h',
'libcef_dll/cpptoc/urlrequest_client_cpptoc.cc',

View File

@@ -88,17 +88,12 @@
'include/internal/cef_types_linux.h',
],
'libcef_sources_common': [
'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/cpptoc/cpptoc.h',
'libcef_dll/ctocpp/base_ctocpp.cc',
'libcef_dll/ctocpp/base_ctocpp.h',
'libcef_dll/ctocpp/ctocpp.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',
@@ -119,15 +114,10 @@
'libcef_dll/base/cef_weak_ptr.cc',
],
'libcef_dll_wrapper_sources_common': [
'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/cpptoc/base_cpptoc.cc',
'libcef_dll/cpptoc/base_cpptoc.h',
'libcef_dll/cpptoc/cpptoc.h',
'libcef_dll/ctocpp/ctocpp.h',
'libcef_dll/transfer_util.cc',
'libcef_dll/transfer_util.h',
'libcef_dll/wrapper_types.h',
@@ -299,10 +289,6 @@
'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',
@@ -354,10 +340,6 @@
'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',

View File

@@ -215,7 +215,7 @@ endif()
if(OS_MACOSX)
# Platform-specific compiler/linker flags.
# See also Xcode target properties in cef_macros.cmake.
# See also Xcode target properties in 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,15 +259,6 @@ 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

View File

@@ -189,13 +189,4 @@
#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_

View File

@@ -59,7 +59,7 @@ typedef struct _cef_app_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Provides an opportunity to view and/or modify command-line arguments before

View File

@@ -53,7 +53,7 @@ typedef struct _cef_auth_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Continue the authentication request.

View File

@@ -45,9 +45,10 @@ extern "C" {
#endif
///
// All ref-counted framework structures must include this structure first.
// Structure defining the reference count implementation functions. All
// framework structures must include the cef_base_t structure first.
///
typedef struct _cef_base_ref_counted_t {
typedef struct _cef_base_t {
///
// Size of the data structure.
///
@@ -57,44 +58,27 @@ typedef struct _cef_base_ref_counted_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_ref_counted_t* self);
void (CEF_CALLBACK *add_ref)(struct _cef_base_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_ref_counted_t* self);
int (CEF_CALLBACK *release)(struct _cef_base_t* self);
///
// Returns true (1) if the current reference count is 1.
///
int (CEF_CALLBACK *has_one_ref)(struct _cef_base_ref_counted_t* self);
} cef_base_ref_counted_t;
int (CEF_CALLBACK *has_one_ref)(struct _cef_base_t* self);
} cef_base_t;
///
// 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|.
// 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|.
#define CEF_MEMBER_EXISTS(s, f) \
((intptr_t)&((s)->f) - (intptr_t)(s) + sizeof((s)->f) <= \
*reinterpret_cast<size_t*>(s))
reinterpret_cast<cef_base_t*>(s)->size)
#define CEF_MEMBER_MISSING(s, f) (!CEF_MEMBER_EXISTS(s, f) || !((s)->f))

View File

@@ -63,7 +63,7 @@ typedef struct _cef_browser_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns the hosted browser object.

View File

@@ -57,7 +57,7 @@ typedef struct _cef_browser_process_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called on the browser process UI thread immediately after the CEF context

View File

@@ -52,7 +52,7 @@ typedef struct _cef_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Continue processing.
@@ -73,7 +73,7 @@ typedef struct _cef_completion_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Method that will be called once the task is complete.

View File

@@ -67,7 +67,7 @@ typedef struct _cef_client_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Return the handler for context menus. If no handler is provided the default

View File

@@ -59,7 +59,7 @@ typedef struct _cef_command_line_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. Do not call any other functions

View File

@@ -56,7 +56,7 @@ typedef struct _cef_run_context_menu_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns the X coordinate of the mouse where the context menu was invoked.

View File

@@ -57,7 +57,7 @@ typedef struct _cef_cookie_manager_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Method that will be called upon completion. |num_deleted| will be the

View File

@@ -53,7 +53,7 @@ typedef struct _cef_file_dialog_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Called to run a file chooser dialog. |mode| represents the type of dialog

View File

@@ -55,7 +55,7 @@ typedef struct _cef_display_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when a frame's address has changed.

View File

@@ -55,7 +55,7 @@ typedef struct _cef_domvisitor_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns the document type.
@@ -177,7 +177,7 @@ typedef struct _cef_domnode_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns the type for this node.

View File

@@ -54,7 +54,7 @@ typedef struct _cef_before_download_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Call to cancel the download.
@@ -101,7 +101,7 @@ typedef struct _cef_download_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called before a download begins. |suggested_name| is the suggested name for

View File

@@ -52,7 +52,7 @@ typedef struct _cef_download_item_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. Do not call any other functions

View File

@@ -54,7 +54,7 @@ typedef struct _cef_drag_data_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns a copy of the current object.

View File

@@ -55,7 +55,7 @@ typedef struct _cef_drag_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when an external drag event enters the browser window. |dragData|

View File

@@ -54,7 +54,7 @@ typedef struct _cef_find_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called to report find results returned by cef_browser_host_t::find().

View File

@@ -56,7 +56,7 @@ typedef struct _cef_focus_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when the browser component is about to loose focus. For instance, if

View File

@@ -61,7 +61,7 @@ typedef struct _cef_frame_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// True if this object is currently attached to a valid frame.

View File

@@ -53,7 +53,7 @@ typedef struct _cef_get_geolocation_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called with the 'best available' location information or, if the location

View File

@@ -54,7 +54,7 @@ typedef struct _cef_geolocation_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Call to allow or deny geolocation access.
@@ -73,7 +73,7 @@ typedef struct _cef_geolocation_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when a page requests permission to access geolocation information.

View File

@@ -58,7 +58,7 @@ typedef struct _cef_image_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this Image is NULL.

View File

@@ -54,7 +54,7 @@ typedef struct _cef_jsdialog_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Called to run a JavaScript dialog. If |origin_url| is non-NULL it can be

View File

@@ -54,7 +54,7 @@ typedef struct _cef_keyboard_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called before a keyboard event is sent to the renderer. |event| contains

View File

@@ -56,7 +56,7 @@ typedef struct _cef_life_span_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called on the IO thread before a new popup browser is created. The

View File

@@ -56,7 +56,7 @@ typedef struct _cef_load_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when the loading state has changed. This callback will be executed

View File

@@ -56,12 +56,7 @@ typedef struct _cef_menu_model_t {
///
// Base structure.
///
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);
cef_base_t base;
///
// Clears the menu. Returns true (1) on success.
@@ -384,73 +379,6 @@ 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;

View File

@@ -55,7 +55,7 @@ typedef struct _cef_menu_model_delegate_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Perform the action associated with the specified |command_id| and optional
@@ -65,30 +65,6 @@ 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.
///

View File

@@ -53,7 +53,7 @@ typedef struct _cef_navigation_entry_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. Do not call any other functions

View File

@@ -54,7 +54,7 @@ typedef struct _cef_print_dialog_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Continue printing with the specified |settings|.
@@ -76,7 +76,7 @@ typedef struct _cef_print_job_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Indicate completion of the print job.
@@ -93,7 +93,7 @@ typedef struct _cef_print_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called when printing has started for the specified |browser|. This function

View File

@@ -52,7 +52,7 @@ typedef struct _cef_print_settings_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. Do not call any other functions

View File

@@ -53,7 +53,7 @@ typedef struct _cef_process_message_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. Do not call any other functions

View File

@@ -55,7 +55,7 @@ typedef struct _cef_render_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called to retrieve the root window rectangle in screen coordinates. Return

View File

@@ -61,7 +61,7 @@ typedef struct _cef_render_process_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called after the render process main thread has been created. |extra_info|

View File

@@ -55,7 +55,7 @@ typedef struct _cef_request_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is read-only.

View File

@@ -56,7 +56,7 @@ typedef struct _cef_resolve_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is pointing to the same context as |that|

View File

@@ -56,7 +56,7 @@ typedef struct _cef_request_context_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called on the browser process IO thread to retrieve the cookie manager. If

View File

@@ -61,7 +61,7 @@ typedef struct _cef_request_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Chooses the specified certificate for client certificate authentication.
@@ -103,7 +103,7 @@ typedef struct _cef_request_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called on the UI thread before browser navigation. Return true (1) to

View File

@@ -56,7 +56,7 @@ typedef struct _cef_resource_bundle_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns the localized string for the specified |string_id| or an NULL

View File

@@ -54,7 +54,7 @@ typedef struct _cef_resource_bundle_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called to retrieve a localized translation for the specified |string_id|.

View File

@@ -58,7 +58,7 @@ typedef struct _cef_resource_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Begin processing the request. To handle the request return true (1) and

View File

@@ -53,7 +53,7 @@ typedef struct _cef_response_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is read-only.

View File

@@ -53,7 +53,7 @@ typedef struct _cef_response_filter_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Initialize the response filter. Will only be called a single time. The

View File

@@ -58,7 +58,7 @@ typedef struct _cef_scheme_registrar_t {
///
// Base structure.
///
cef_base_scoped_t base;
cef_base_t base;
///
// Register a custom scheme. This function should not be called for the built-
@@ -87,30 +87,20 @@ typedef struct _cef_scheme_registrar_t {
// is. For example, "scheme:///some%20text" will remain the same. Non-standard
// scheme URLs cannot be used as a target for form submission.
//
// If |is_local| is true (1) the scheme will be treated with the same security
// rules as those applied to "file" URLs. Normal pages cannot link to or
// access local URLs. Also, by default, local URLs can only perform
// XMLHttpRequest calls to the same URL (origin + path) that originated the
// request. To allow XMLHttpRequest calls from a local URL to other URLs with
// the same origin set the CefSettings.file_access_from_file_urls_allowed
// value to true (1). To allow XMLHttpRequest calls from a local URL to all
// origins set the CefSettings.universal_access_from_file_urls_allowed value
// to true (1).
// If |is_local| is true (1) the scheme will be treated as local (i.e., with
// the same security rules as those applied to "file" URLs). Normal pages
// cannot link to or access local URLs. Also, by default, local URLs can only
// perform XMLHttpRequest calls to the same URL (origin + path) that
// originated the request. To allow XMLHttpRequest calls from a local URL to
// other URLs with the same origin set the
// CefSettings.file_access_from_file_urls_allowed value to true (1). To allow
// XMLHttpRequest calls from a local URL to all origins set the
// CefSettings.universal_access_from_file_urls_allowed value to true (1).
//
// If |is_display_isolated| is true (1) the scheme can only be displayed from
// other content hosted with the same scheme. For example, pages in other
// origins cannot create iframes or hyperlinks to URLs with the scheme. For
// schemes that must be accessible from other schemes set this value to false
// (0), set |is_cors_enabled| to true (1), and use CORS "Access-Control-Allow-
// Origin" headers to further restrict access.
//
// If |is_secure| is true (1) the scheme will be treated with the same
// security rules as those applied to "https" URLs. For example, loading this
// scheme from other secure schemes will not trigger mixed content warnings.
//
// If |is_cors_enabled| is true (1) the scheme that can be sent CORS requests.
// This value should be true (1) in most cases where |is_standard| is true
// (1).
// If |is_display_isolated| is true (1) the scheme will be treated as display-
// isolated. This means that pages cannot display these URLs unless they are
// from the same scheme. For example, pages in another origin cannot create
// iframes or hyperlinks to URLs with this scheme.
//
// This function may be called on any thread. It should only be called once
// per unique |scheme_name| value. If |scheme_name| is already registered or
@@ -118,7 +108,7 @@ typedef struct _cef_scheme_registrar_t {
///
int (CEF_CALLBACK *add_custom_scheme)(struct _cef_scheme_registrar_t* self,
const cef_string_t* scheme_name, int is_standard, int is_local,
int is_display_isolated, int is_secure, int is_cors_enabled);
int is_display_isolated);
} cef_scheme_registrar_t;
@@ -131,7 +121,7 @@ typedef struct _cef_scheme_handler_factory_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Return a new resource handler instance to handle the request or an NULL

View File

@@ -54,7 +54,7 @@ typedef struct _cef_sslinfo_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns a bitmask containing any and all problems verifying the server

View File

@@ -54,7 +54,7 @@ typedef struct _cef_sslstatus_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if the status is related to a secure SSL/TLS connection.

View File

@@ -53,7 +53,7 @@ typedef struct _cef_read_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Read raw binary data.
@@ -95,7 +95,7 @@ typedef struct _cef_stream_reader_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Read raw binary data.
@@ -156,7 +156,7 @@ typedef struct _cef_write_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Write raw binary data.
@@ -198,7 +198,7 @@ typedef struct _cef_stream_writer_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Write raw binary data.

View File

@@ -52,7 +52,7 @@ typedef struct _cef_string_visitor_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Method that will be executed.

View File

@@ -57,7 +57,7 @@ typedef struct _cef_task_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is pointing to the same task runner as

View File

@@ -61,7 +61,7 @@ typedef struct _cef_thread_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns the cef_task_tRunner that will execute code on this thread's

View File

@@ -55,7 +55,7 @@ typedef struct _cef_end_tracing_callback_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Called after all processes have sent their trace data. |tracing_file| is

View File

@@ -61,7 +61,7 @@ typedef struct _cef_urlrequest_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Notifies the client that the request has completed. Use the

View File

@@ -63,7 +63,7 @@ typedef struct _cef_v8context_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns the exception message.
@@ -352,7 +352,7 @@ typedef struct _cef_v8value_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t* user_data);
struct _cef_base_t* user_data);
///
// Returns the user data, if any, assigned to this object.
///
struct _cef_base_ref_counted_t* (CEF_CALLBACK *get_user_data)(
struct _cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if the underlying handle is valid and it can be accessed

View File

@@ -57,7 +57,7 @@ typedef struct _cef_value_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns true (1) if this object is valid. This object may become invalid if

View File

@@ -60,7 +60,7 @@ typedef struct _cef_waitable_event_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Put the event in the un-signaled state.

View File

@@ -53,7 +53,7 @@ typedef struct _cef_web_plugin_info_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Method that will be called when CDM registration is complete. |result| will

View File

@@ -53,7 +53,7 @@ typedef struct _cef_x509cert_principal_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_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_ref_counted_t base;
cef_base_t base;
///
// Returns the subject of the X.509 certificate. For HTTPS server certificates

View File

@@ -55,7 +55,7 @@ typedef struct _cef_xml_reader_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Moves the cursor to the next node in the document. This function must be

View File

@@ -55,7 +55,7 @@ typedef struct _cef_zip_reader_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Moves the cursor to the first file in the archive. Returns true (1) if the

View File

@@ -49,14 +49,10 @@
extern "C" {
#endif
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;
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;
///
// Structure for testing all of the possible data transfer types.
@@ -65,7 +61,7 @@ typedef struct _cef_translator_test_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
// PRIMITIVE VALUES
@@ -246,271 +242,124 @@ typedef struct _cef_translator_test_t {
struct _cef_translator_test_t* self);
// LIBRARY-SIDE REFPTR VALUES
// LIBRARY-SIDE OBJECT VALUES
///
// Return an new library-side object.
///
struct _cef_translator_test_ref_ptr_library_t* (
CEF_CALLBACK *get_ref_ptr_library)(struct _cef_translator_test_t* self,
int val);
struct _cef_translator_test_object_t* (CEF_CALLBACK *get_object)(
struct _cef_translator_test_t* self, int val);
///
// Set an object. Returns the value from
// cef_translator_test_ref_ptr_library_t::get_value(). This tests input and
// execution of a library-side object type.
// cef_translator_test_object_t::get_value(). This tests input and execution
// of a library-side object type.
///
int (CEF_CALLBACK *set_ref_ptr_library)(struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_library_t* val);
int (CEF_CALLBACK *set_object)(struct _cef_translator_test_t* self,
struct _cef_translator_test_object_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_ref_ptr_library_t* (
CEF_CALLBACK *set_ref_ptr_library_and_return)(
struct _cef_translator_test_object_t* (CEF_CALLBACK *set_object_and_return)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_library_t* val);
struct _cef_translator_test_object_t* val);
///
// Set a child object. Returns the value from
// 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.
// cef_translator_test_object_t::get_value(). This tests input of a library-
// side child object type and execution as the parent type.
///
int (CEF_CALLBACK *set_child_ref_ptr_library)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_library_child_t* val);
int (CEF_CALLBACK *set_child_object)(struct _cef_translator_test_t* self,
struct _cef_translator_test_object_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_ref_ptr_library_t* (
CEF_CALLBACK *set_child_ref_ptr_library_and_return_parent)(
struct _cef_translator_test_object_t* (
CEF_CALLBACK *set_child_object_and_return_parent)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_library_child_t* val);
struct _cef_translator_test_object_child_t* val);
///
// Set an object list vlaue.
///
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);
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);
///
// Return an object list value by out-param.
///
int (CEF_CALLBACK *get_ref_ptr_library_list_by_ref)(
int (CEF_CALLBACK *get_object_list_by_ref)(
struct _cef_translator_test_t* self, size_t* valCount,
struct _cef_translator_test_ref_ptr_library_t** val, int val1,
int val2);
struct _cef_translator_test_object_t** val, int val1, int val2);
///
// Return the number of object that will be output above.
///
size_t (CEF_CALLBACK *get_ref_ptr_library_list_size)(
size_t (CEF_CALLBACK *get_object_list_size)(
struct _cef_translator_test_t* self);
// CLIENT-SIDE REFPTR VALUES
// CLIENT-SIDE OBJECT VALUES
///
// Set an object. Returns the value from
// cef_translator_test_ref_ptr_client_t::get_value(). This tests input and
// execution of a client-side object type.
// cef_translator_test_handler_t::get_value(). This tests input and execution
// of a client-side object type.
///
int (CEF_CALLBACK *set_ref_ptr_client)(struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_client_t* val);
int (CEF_CALLBACK *set_handler)(struct _cef_translator_test_t* self,
struct _cef_translator_test_handler_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_ref_ptr_client_t* (
CEF_CALLBACK *set_ref_ptr_client_and_return)(
struct _cef_translator_test_handler_t* (CEF_CALLBACK *set_handler_and_return)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_client_t* val);
struct _cef_translator_test_handler_t* val);
///
// Set a child object. Returns the value from
// 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.
// cef_translator_test_handler_t::get_value(). This tests input of a client-
// side child object type and execution as the parent type.
///
int (CEF_CALLBACK *set_child_ref_ptr_client)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_client_child_t* val);
int (CEF_CALLBACK *set_child_handler)(struct _cef_translator_test_t* self,
struct _cef_translator_test_handler_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_ref_ptr_client_t* (
CEF_CALLBACK *set_child_ref_ptr_client_and_return_parent)(
struct _cef_translator_test_handler_t* (
CEF_CALLBACK *set_child_handler_and_return_parent)(
struct _cef_translator_test_t* self,
struct _cef_translator_test_ref_ptr_client_child_t* val);
struct _cef_translator_test_handler_child_t* val);
///
// Set an object list vlaue.
///
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);
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);
///
// Return an object list value by out-param.
///
int (CEF_CALLBACK *get_ref_ptr_client_list_by_ref)(
int (CEF_CALLBACK *get_handler_list_by_ref)(
struct _cef_translator_test_t* self, size_t* valCount,
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);
struct _cef_translator_test_handler_t** val,
struct _cef_translator_test_handler_t* val1,
struct _cef_translator_test_handler_t* val2);
///
// Return the number of object that will be output above.
///
size_t (CEF_CALLBACK *get_ref_ptr_client_list_size)(
size_t (CEF_CALLBACK *get_handler_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;
@@ -521,253 +370,125 @@ CEF_EXPORT cef_translator_test_t* cef_translator_test_create();
///
// Library-side test object for RefPtr.
// Library-side test object.
///
typedef struct _cef_translator_test_ref_ptr_library_t {
typedef struct _cef_translator_test_object_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Return a value.
///
int (CEF_CALLBACK *get_value)(
struct _cef_translator_test_ref_ptr_library_t* self);
int (CEF_CALLBACK *get_value)(struct _cef_translator_test_object_t* self);
///
// Set a value.
///
void (CEF_CALLBACK *set_value)(
struct _cef_translator_test_ref_ptr_library_t* self, int value);
} cef_translator_test_ref_ptr_library_t;
void (CEF_CALLBACK *set_value)(struct _cef_translator_test_object_t* self,
int value);
} cef_translator_test_object_t;
///
// Create the test object.
///
CEF_EXPORT cef_translator_test_ref_ptr_library_t* cef_translator_test_ref_ptr_library_create(
CEF_EXPORT cef_translator_test_object_t* cef_translator_test_object_create(
int value);
///
// Library-side child test object for RefPtr.
// Library-side child test object.
///
typedef struct _cef_translator_test_ref_ptr_library_child_t {
typedef struct _cef_translator_test_object_child_t {
///
// Base structure.
///
cef_translator_test_ref_ptr_library_t base;
cef_translator_test_object_t base;
///
// Return a value.
///
int (CEF_CALLBACK *get_other_value)(
struct _cef_translator_test_ref_ptr_library_child_t* self);
struct _cef_translator_test_object_child_t* self);
///
// Set a value.
///
void (CEF_CALLBACK *set_other_value)(
struct _cef_translator_test_ref_ptr_library_child_t* self, int value);
} cef_translator_test_ref_ptr_library_child_t;
struct _cef_translator_test_object_child_t* self, int value);
} cef_translator_test_object_child_t;
///
// Create the test object.
///
CEF_EXPORT cef_translator_test_ref_ptr_library_child_t* cef_translator_test_ref_ptr_library_child_create(
CEF_EXPORT cef_translator_test_object_child_t* cef_translator_test_object_child_create(
int value, int other_value);
///
// Another library-side child test object for RefPtr.
// Another library-side child test object.
///
typedef struct _cef_translator_test_ref_ptr_library_child_child_t {
typedef struct _cef_translator_test_object_child_child_t {
///
// Base structure.
///
cef_translator_test_ref_ptr_library_child_t base;
cef_translator_test_object_child_t base;
///
// Return a value.
///
int (CEF_CALLBACK *get_other_other_value)(
struct _cef_translator_test_ref_ptr_library_child_child_t* self);
struct _cef_translator_test_object_child_child_t* self);
///
// Set a value.
///
void (CEF_CALLBACK *set_other_other_value)(
struct _cef_translator_test_ref_ptr_library_child_child_t* self,
int value);
} cef_translator_test_ref_ptr_library_child_child_t;
struct _cef_translator_test_object_child_child_t* self, int value);
} cef_translator_test_object_child_child_t;
///
// Create the test object.
///
CEF_EXPORT cef_translator_test_ref_ptr_library_child_child_t* cef_translator_test_ref_ptr_library_child_child_create(
CEF_EXPORT cef_translator_test_object_child_child_t* cef_translator_test_object_child_child_create(
int value, int other_value, int other_other_value);
///
// Client-side test object for RefPtr.
// Client-side test object.
///
typedef struct _cef_translator_test_ref_ptr_client_t {
typedef struct _cef_translator_test_handler_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Return a value.
///
int (CEF_CALLBACK *get_value)(
struct _cef_translator_test_ref_ptr_client_t* self);
} cef_translator_test_ref_ptr_client_t;
int (CEF_CALLBACK *get_value)(struct _cef_translator_test_handler_t* self);
} cef_translator_test_handler_t;
///
// Client-side child test object for RefPtr.
// Client-side child test object.
///
typedef struct _cef_translator_test_ref_ptr_client_child_t {
typedef struct _cef_translator_test_handler_child_t {
///
// Base structure.
///
cef_translator_test_ref_ptr_client_t base;
cef_translator_test_handler_t base;
///
// Return a value.
///
int (CEF_CALLBACK *get_other_value)(
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;
struct _cef_translator_test_handler_child_t* self);
} cef_translator_test_handler_child_t;
#ifdef __cplusplus

View File

@@ -63,18 +63,6 @@ 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;

View File

@@ -74,12 +74,6 @@ 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.

View File

@@ -62,12 +62,6 @@ 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;

View File

@@ -57,7 +57,7 @@ typedef struct _cef_display_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns the unique identifier for this Display.

View File

@@ -56,7 +56,7 @@ typedef struct _cef_layout_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.

View File

@@ -68,12 +68,6 @@ 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;

View File

@@ -61,7 +61,7 @@ typedef struct _cef_view_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Returns this View as a BrowserView or NULL if this is not a BrowserView.
@@ -148,18 +148,6 @@ 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.
///

View File

@@ -55,7 +55,7 @@ typedef struct _cef_view_delegate_t {
///
// Base structure.
///
cef_base_ref_counted_t base;
cef_base_t base;
///
// Return the preferred size for |view|. The Layout will use this information
@@ -105,18 +105,6 @@ 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;

View File

@@ -269,27 +269,6 @@ 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;

View File

@@ -103,22 +103,6 @@ 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;

View File

@@ -143,7 +143,7 @@ void CefEnableHighDPISupport();
// called by the process and/or thread indicated.
///
/*--cef(source=client,no_debugct_check)--*/
class CefApp : public virtual CefBaseRefCounted {
class CefApp : public virtual CefBase {
public:
///
// Provides an opportunity to view and/or modify command-line arguments before
@@ -170,7 +170,7 @@ class CefApp : public virtual CefBaseRefCounted {
///
/*--cef()--*/
virtual void OnRegisterCustomSchemes(
CefRawPtr<CefSchemeRegistrar> registrar) {
CefRefPtr<CefSchemeRegistrar> registrar) {
}
///

View File

@@ -45,7 +45,7 @@
// requests.
///
/*--cef(source=library)--*/
class CefAuthCallback : public virtual CefBaseRefCounted {
class CefAuthCallback : public virtual CefBase {
public:
///
// Continue the authentication request.

View File

@@ -48,9 +48,10 @@
#endif
///
// All ref-counted framework classes must extend this class.
// Interface defining the reference count implementation methods. All framework
// classes must extend the CefBase class.
///
class CefBaseRefCounted {
class CefBase {
public:
///
// Called to increment the reference count for the object. Should be called
@@ -70,15 +71,7 @@ class CefBaseRefCounted {
virtual bool HasOneRef() const =0;
protected:
virtual ~CefBaseRefCounted() {}
};
///
// All scoped framework classes must extend this class.
///
class CefBaseScoped {
public:
virtual ~CefBaseScoped() {}
virtual ~CefBase() {}
};
///
@@ -148,7 +141,7 @@ class CefRefCount {
// #include "include/base/cef_lock.h"
//
// // Class declaration.
// class MyClass : public CefBaseRefCounted {
// class MyClass : public CefBase {
// public:
// MyClass() : value_(0) {}
// // Method that may be called on multiple threads.

View File

@@ -58,7 +58,7 @@ class CefClient;
// this class may only be called on the main thread.
///
/*--cef(source=library)--*/
class CefBrowser : public virtual CefBaseRefCounted {
class CefBrowser : public virtual CefBase {
public:
///
// Returns the browser host object. This method can only be called in the
@@ -197,7 +197,7 @@ class CefBrowser : public virtual CefBaseRefCounted {
// class will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefRunFileDialogCallback : public virtual CefBaseRefCounted {
class CefRunFileDialogCallback : public virtual CefBase {
public:
///
// Called asynchronously after the file dialog is dismissed.
@@ -218,7 +218,7 @@ class CefRunFileDialogCallback : public virtual CefBaseRefCounted {
// this class will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefNavigationEntryVisitor : public virtual CefBaseRefCounted {
class CefNavigationEntryVisitor : public virtual CefBase {
public:
///
// Method that will be executed. Do not keep a reference to |entry| outside of
@@ -240,7 +240,7 @@ class CefNavigationEntryVisitor : public virtual CefBaseRefCounted {
// will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefPdfPrintCallback : public virtual CefBaseRefCounted {
class CefPdfPrintCallback : public virtual CefBase {
public:
///
// Method that will be executed when the PDF printing has completed. |path|
@@ -257,7 +257,7 @@ class CefPdfPrintCallback : public virtual CefBaseRefCounted {
// class will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefDownloadImageCallback : public virtual CefBaseRefCounted {
class CefDownloadImageCallback : public virtual CefBase {
public:
///
// Method that will be executed when the image download has completed.
@@ -280,7 +280,7 @@ class CefDownloadImageCallback : public virtual CefBaseRefCounted {
// comments.
///
/*--cef(source=library)--*/
class CefBrowserHost : public virtual CefBaseRefCounted {
class CefBrowserHost : public virtual CefBase {
public:
typedef cef_drag_operations_mask_t DragOperationsMask;
typedef cef_file_dialog_mode_t FileDialogMode;

View File

@@ -48,7 +48,7 @@
// will be called on the browser process main thread unless otherwise indicated.
///
/*--cef(source=client)--*/
class CefBrowserProcessHandler : public virtual CefBaseRefCounted {
class CefBrowserProcessHandler : public virtual CefBase {
public:
///
// Called on the browser process UI thread immediately after the CEF context

View File

@@ -44,7 +44,7 @@
// Generic callback interface used for asynchronous continuation.
///
/*--cef(source=library)--*/
class CefCallback : public virtual CefBaseRefCounted {
class CefCallback : public virtual CefBase {
public:
///
// Continue processing.
@@ -63,7 +63,7 @@ class CefCallback : public virtual CefBaseRefCounted {
// Generic callback interface used for asynchronous completion.
///
/*--cef(source=client)--*/
class CefCompletionCallback : public virtual CefBaseRefCounted {
class CefCompletionCallback : public virtual CefBase {
public:
///
// Method that will be called once the task is complete.

View File

@@ -59,7 +59,7 @@
// Implement this interface to provide handler implementations.
///
/*--cef(source=client,no_debugct_check)--*/
class CefClient : public virtual CefBaseRefCounted {
class CefClient : public virtual CefBase {
public:
///
// Return the handler for context menus. If no handler is provided the default

View File

@@ -53,7 +53,7 @@
// used before CefInitialize() is called.
///
/*--cef(source=library,no_debugct_check)--*/
class CefCommandLine : public virtual CefBaseRefCounted {
class CefCommandLine : public virtual CefBase {
public:
typedef std::vector<CefString> ArgumentList;
typedef std::map<CefString, CefString> SwitchMap;

View File

@@ -50,7 +50,7 @@ class CefContextMenuParams;
// Callback interface used for continuation of custom context menu display.
///
/*--cef(source=library)--*/
class CefRunContextMenuCallback : public virtual CefBaseRefCounted {
class CefRunContextMenuCallback : public virtual CefBase {
public:
typedef cef_event_flags_t EventFlags;
@@ -74,7 +74,7 @@ class CefRunContextMenuCallback : public virtual CefBaseRefCounted {
// class will be called on the UI thread.
///
/*--cef(source=client)--*/
class CefContextMenuHandler : public virtual CefBaseRefCounted {
class CefContextMenuHandler : public virtual CefBase {
public:
typedef cef_event_flags_t EventFlags;
@@ -139,7 +139,7 @@ class CefContextMenuHandler : public virtual CefBaseRefCounted {
// can only be accessed on browser process the UI thread.
///
/*--cef(source=library)--*/
class CefContextMenuParams : public virtual CefBaseRefCounted {
class CefContextMenuParams : public virtual CefBase {
public:
typedef cef_context_menu_type_flags_t TypeFlags;
typedef cef_context_menu_media_type_t MediaType;

View File

@@ -51,7 +51,7 @@ class CefDeleteCookiesCallback;
// any thread unless otherwise indicated.
///
/*--cef(source=library,no_debugct_check)--*/
class CefCookieManager : public virtual CefBaseRefCounted {
class CefCookieManager : public virtual CefBase {
public:
///
// Returns the global cookie manager. By default data will be stored at
@@ -171,7 +171,7 @@ class CefCookieManager : public virtual CefBaseRefCounted {
// will always be called on the IO thread.
///
/*--cef(source=client)--*/
class CefCookieVisitor : public virtual CefBaseRefCounted {
class CefCookieVisitor : public virtual CefBase {
public:
///
// Method that will be called once for each cookie. |count| is the 0-based
@@ -191,7 +191,7 @@ class CefCookieVisitor : public virtual CefBaseRefCounted {
// CefCookieManager::SetCookie().
///
/*--cef(source=client)--*/
class CefSetCookieCallback : public virtual CefBaseRefCounted {
class CefSetCookieCallback : public virtual CefBase {
public:
///
// Method that will be called upon completion. |success| will be true if the
@@ -207,7 +207,7 @@ class CefSetCookieCallback : public virtual CefBaseRefCounted {
// CefCookieManager::DeleteCookies().
///
/*--cef(source=client)--*/
class CefDeleteCookiesCallback : public virtual CefBaseRefCounted {
class CefDeleteCookiesCallback : public virtual CefBase {
public:
///
// Method that will be called upon completion. |num_deleted| will be the

View File

@@ -45,7 +45,7 @@
// Callback interface for asynchronous continuation of file dialog requests.
///
/*--cef(source=library)--*/
class CefFileDialogCallback : public virtual CefBaseRefCounted {
class CefFileDialogCallback : public virtual CefBase {
public:
///
// Continue the file selection. |selected_accept_filter| should be the 0-based
@@ -72,7 +72,7 @@ class CefFileDialogCallback : public virtual CefBaseRefCounted {
// will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefDialogHandler : public virtual CefBaseRefCounted {
class CefDialogHandler : public virtual CefBase {
public:
typedef cef_file_dialog_mode_t FileDialogMode;

View File

@@ -47,7 +47,7 @@
// The methods of this class will be called on the UI thread.
///
/*--cef(source=client)--*/
class CefDisplayHandler : public virtual CefBaseRefCounted {
class CefDisplayHandler : public virtual CefBase {
public:
///
// Called when a frame's address has changed.

View File

@@ -49,7 +49,7 @@ class CefDOMNode;
// be called on the render process main thread.
///
/*--cef(source=client)--*/
class CefDOMVisitor : public virtual CefBaseRefCounted {
class CefDOMVisitor : public virtual CefBase {
public:
///
// Method executed for visiting the DOM. The document object passed to this
@@ -68,7 +68,7 @@ class CefDOMVisitor : public virtual CefBaseRefCounted {
// be called on the render process main thread thread.
///
/*--cef(source=library)--*/
class CefDOMDocument : public virtual CefBaseRefCounted {
class CefDOMDocument : public virtual CefBase {
public:
typedef cef_dom_document_type_t Type;
@@ -164,7 +164,7 @@ class CefDOMDocument : public virtual CefBaseRefCounted {
// called on the render process main thread.
///
/*--cef(source=library)--*/
class CefDOMNode : public virtual CefBaseRefCounted {
class CefDOMNode : public virtual CefBase {
public:
typedef std::map<CefString, CefString> AttributeMap;
typedef cef_dom_node_type_t Type;

View File

@@ -47,7 +47,7 @@
// Callback interface used to asynchronously continue a download.
///
/*--cef(source=library)--*/
class CefBeforeDownloadCallback : public virtual CefBaseRefCounted {
class CefBeforeDownloadCallback : public virtual CefBase {
public:
///
// Call to continue the download. Set |download_path| to the full file path
@@ -64,7 +64,7 @@ class CefBeforeDownloadCallback : public virtual CefBaseRefCounted {
// Callback interface used to asynchronously cancel a download.
///
/*--cef(source=library)--*/
class CefDownloadItemCallback : public virtual CefBaseRefCounted {
class CefDownloadItemCallback : public virtual CefBase {
public:
///
// Call to cancel the download.
@@ -91,7 +91,7 @@ class CefDownloadItemCallback : public virtual CefBaseRefCounted {
// on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefDownloadHandler : public virtual CefBaseRefCounted {
class CefDownloadHandler : public virtual CefBase {
public:
///
// Called before a download begins. |suggested_name| is the suggested name for

View File

@@ -44,7 +44,7 @@
// Class used to represent a download item.
///
/*--cef(source=library)--*/
class CefDownloadItem : public virtual CefBaseRefCounted {
class CefDownloadItem : public virtual CefBase {
public:
///
// Returns true if this object is valid. Do not call any other methods if this

View File

@@ -47,7 +47,7 @@
// on any thread.
///
/*--cef(source=library)--*/
class CefDragData : public virtual CefBaseRefCounted {
class CefDragData : public virtual CefBase {
public:
///
// Create a new CefDragData object.

View File

@@ -47,7 +47,7 @@
// this class will be called on the UI thread.
///
/*--cef(source=client)--*/
class CefDragHandler : public virtual CefBaseRefCounted {
class CefDragHandler : public virtual CefBase {
public:
typedef cef_drag_operations_mask_t DragOperationsMask;

View File

@@ -46,7 +46,7 @@
// methods of this class will be called on the UI thread.
///
/*--cef(source=client)--*/
class CefFindHandler : public virtual CefBaseRefCounted {
class CefFindHandler : public virtual CefBase {
public:
///
// Called to report find results returned by CefBrowserHost::Find().

View File

@@ -48,7 +48,7 @@
// this class will be called on the UI thread.
///
/*--cef(source=client)--*/
class CefFocusHandler : public virtual CefBaseRefCounted {
class CefFocusHandler : public virtual CefBase {
public:
typedef cef_focus_source_t FocusSource;

View File

@@ -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 CefBaseRefCounted {
class CefFrame : public virtual CefBase {
public:
///
// True if this object is currently attached to a valid frame.

View File

@@ -45,7 +45,7 @@
// class will be called on the browser process UI thread.
///
/*--cef(source=client)--*/
class CefGetGeolocationCallback : public virtual CefBaseRefCounted {
class CefGetGeolocationCallback : public virtual CefBase {
public:
///
// Called with the 'best available' location information or, if the location

View File

@@ -46,7 +46,7 @@
// permission requests.
///
/*--cef(source=library)--*/
class CefGeolocationCallback : public virtual CefBaseRefCounted {
class CefGeolocationCallback : public virtual CefBase {
public:
///
// Call to allow or deny geolocation access.
@@ -62,7 +62,7 @@ class CefGeolocationCallback : public virtual CefBaseRefCounted {
// thread.
///
/*--cef(source=client)--*/
class CefGeolocationHandler : public virtual CefBaseRefCounted {
class CefGeolocationHandler : public virtual CefBase {
public:
///
// Called when a page requests permission to access geolocation information.

View File

@@ -50,7 +50,7 @@
// be called on the browser process UI thread.
///
/*--cef(source=library)--*/
class CefImage : public virtual CefBaseRefCounted {
class CefImage : public virtual CefBase {
public:
///
// Create a new CefImage. It will initially be empty. Use the Add*() methods

Some files were not shown because too many files have changed in this diff Show More