mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make CEF compliant with Google/Chromium style (issue #473).
- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories. - Update existing CEF source code to be compliant with the style requirements. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
202
cef.gyp
202
cef.gyp
@ -29,7 +29,7 @@
|
||||
'mac_bundle': 1,
|
||||
'msvs_guid': '6617FED9-C5D4-4907-BF55-A90062A6683F',
|
||||
'dependencies': [
|
||||
'../third_party/npapi/npapi.gyp:npapi',
|
||||
'<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
||||
'libcef',
|
||||
'libcef_dll_wrapper',
|
||||
],
|
||||
@ -38,7 +38,9 @@
|
||||
],
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'..',
|
||||
# cefclient includes are relative to the tests directory to make
|
||||
# creation of binary releases easier.
|
||||
'tests'
|
||||
],
|
||||
'sources': [
|
||||
'<@(includes_common)',
|
||||
@ -298,12 +300,12 @@
|
||||
'mac_bundle': 1,
|
||||
'msvs_guid': '8500027C-B11A-11DE-A16E-B80256D89593',
|
||||
'dependencies': [
|
||||
'../base/base.gyp:base',
|
||||
'../base/base.gyp:base_i18n',
|
||||
'../base/base.gyp:test_support_base',
|
||||
'../testing/gtest.gyp:gtest',
|
||||
'../third_party/icu/icu.gyp:icui18n',
|
||||
'../third_party/icu/icu.gyp:icuuc',
|
||||
'<(DEPTH)/base/base.gyp:base',
|
||||
'<(DEPTH)/base/base.gyp:base_i18n',
|
||||
'<(DEPTH)/base/base.gyp:test_support_base',
|
||||
'<(DEPTH)/testing/gtest.gyp:gtest',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
|
||||
'libcef',
|
||||
'libcef_dll_wrapper',
|
||||
],
|
||||
@ -348,7 +350,6 @@
|
||||
},
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'..',
|
||||
],
|
||||
'conditions': [
|
||||
[ 'OS=="mac"', {
|
||||
@ -431,42 +432,42 @@
|
||||
'type': 'shared_library',
|
||||
'msvs_guid': 'C13650D5-CF1A-4259-BE45-B1EBA6280E47',
|
||||
'dependencies': [
|
||||
'../base/base.gyp:base',
|
||||
'../base/base.gyp:base_i18n',
|
||||
'../build/temp_gyp/googleurl.gyp:googleurl',
|
||||
'../media/media.gyp:media',
|
||||
'../net/net.gyp:net',
|
||||
'../net/net.gyp:net_resources',
|
||||
'../printing/printing.gyp:printing',
|
||||
'../sdch/sdch.gyp:sdch',
|
||||
'../skia/skia.gyp:skia',
|
||||
'../third_party/bzip2/bzip2.gyp:bzip2',
|
||||
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
||||
'../third_party/icu/icu.gyp:icui18n',
|
||||
'../third_party/icu/icu.gyp:icuuc',
|
||||
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
||||
'../third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
|
||||
'../third_party/libpng/libpng.gyp:libpng',
|
||||
'../third_party/libxml/libxml.gyp:libxml',
|
||||
'../third_party/libxslt/libxslt.gyp:libxslt',
|
||||
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
|
||||
'../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
|
||||
'../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
|
||||
'../third_party/zlib/zlib.gyp:zlib',
|
||||
'../ui/ui.gyp:gfx_resources',
|
||||
'../ui/ui.gyp:ui',
|
||||
'../v8/tools/gyp/v8.gyp:v8',
|
||||
'../webkit/support/webkit_support.gyp:appcache',
|
||||
'../webkit/support/webkit_support.gyp:blob',
|
||||
'../webkit/support/webkit_support.gyp:database',
|
||||
'../webkit/support/webkit_support.gyp:fileapi',
|
||||
'../webkit/support/webkit_support.gyp:glue',
|
||||
'../webkit/support/webkit_support.gyp:quota',
|
||||
'../webkit/support/webkit_support.gyp:webkit_gpu',
|
||||
'../webkit/support/webkit_support.gyp:webkit_media',
|
||||
'../webkit/support/webkit_support.gyp:webkit_resources',
|
||||
'../webkit/support/webkit_support.gyp:webkit_strings',
|
||||
'../webkit/support/webkit_support.gyp:webkit_user_agent',
|
||||
'<(DEPTH)/base/base.gyp:base',
|
||||
'<(DEPTH)/base/base.gyp:base_i18n',
|
||||
'<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
||||
'<(DEPTH)/media/media.gyp:media',
|
||||
'<(DEPTH)/net/net.gyp:net',
|
||||
'<(DEPTH)/net/net.gyp:net_resources',
|
||||
'<(DEPTH)/printing/printing.gyp:printing',
|
||||
'<(DEPTH)/sdch/sdch.gyp:sdch',
|
||||
'<(DEPTH)/skia/skia.gyp:skia',
|
||||
'<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
|
||||
'<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
|
||||
'<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
||||
'<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
|
||||
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
|
||||
'<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
|
||||
'<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
|
||||
'<(DEPTH)/third_party/modp_b64/modp_b64.gyp:modp_b64',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
|
||||
'<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
|
||||
'<(DEPTH)/ui/ui.gyp:gfx_resources',
|
||||
'<(DEPTH)/ui/ui.gyp:ui',
|
||||
'<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:appcache',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:blob',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:database',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:fileapi',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:glue',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:quota',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_gpu',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_media',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_user_agent',
|
||||
'libcef_static',
|
||||
],
|
||||
'defines': [
|
||||
@ -474,7 +475,6 @@
|
||||
],
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'..',
|
||||
],
|
||||
# Avoid "RC1102: internal error : too many arguments to RCPP" error by
|
||||
# explicitly specifying a short list of resource include directories.
|
||||
@ -498,10 +498,10 @@
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
'dependencies': [
|
||||
'../breakpad/breakpad.gyp:breakpad_handler',
|
||||
'../third_party/angle/src/build_angle.gyp:libEGL',
|
||||
'../third_party/angle/src/build_angle.gyp:libGLESv2',
|
||||
'../ui/views/views.gyp:views',
|
||||
'<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
|
||||
'<(DEPTH)/third_party/angle/src/build_angle.gyp:libEGL',
|
||||
'<(DEPTH)/third_party/angle/src/build_angle.gyp:libGLESv2',
|
||||
'<(DEPTH)/ui/views/views.gyp:views',
|
||||
],
|
||||
'sources': [
|
||||
'<@(includes_win)',
|
||||
@ -523,7 +523,7 @@
|
||||
}],
|
||||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
||||
'dependencies':[
|
||||
'../base/allocator/allocator.gyp:allocator',
|
||||
'<(DEPTH)/base/allocator/allocator.gyp:allocator',
|
||||
],
|
||||
'direct_dependent_settings': {
|
||||
'cflags': [
|
||||
@ -546,7 +546,7 @@
|
||||
'type': 'static_library',
|
||||
'msvs_guid': 'A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9',
|
||||
'dependencies': [
|
||||
'../third_party/npapi/npapi.gyp:npapi',
|
||||
'<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
||||
'libcef',
|
||||
],
|
||||
'defines': [
|
||||
@ -554,7 +554,6 @@
|
||||
],
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'..',
|
||||
],
|
||||
'sources': [
|
||||
'<@(includes_common)',
|
||||
@ -567,7 +566,7 @@
|
||||
'target_name': 'cef_extra_resources',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtools_grd',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtools_grd',
|
||||
],
|
||||
# These resources end up in chrome.pak because they are resources
|
||||
# used by internal pages. Putting them in a spearate pak file makes
|
||||
@ -611,48 +610,47 @@
|
||||
],
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'..',
|
||||
'../third_party/WebKit/Source/WebKit/chromium/public',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/public',
|
||||
'<(grit_out_dir)',
|
||||
],
|
||||
'dependencies': [
|
||||
'cef_extra_resources',
|
||||
'../base/base.gyp:base',
|
||||
'../base/base.gyp:base_i18n',
|
||||
'../build/temp_gyp/googleurl.gyp:googleurl',
|
||||
'../media/media.gyp:media',
|
||||
'../net/net.gyp:net',
|
||||
'../net/net.gyp:net_resources',
|
||||
'../printing/printing.gyp:printing',
|
||||
'../sdch/sdch.gyp:sdch',
|
||||
'../skia/skia.gyp:skia',
|
||||
'../third_party/bzip2/bzip2.gyp:bzip2',
|
||||
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
||||
'../third_party/icu/icu.gyp:icui18n',
|
||||
'../third_party/icu/icu.gyp:icuuc',
|
||||
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
||||
'../third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
|
||||
'../third_party/libpng/libpng.gyp:libpng',
|
||||
'../third_party/libxml/libxml.gyp:libxml',
|
||||
'../third_party/libxslt/libxslt.gyp:libxslt',
|
||||
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
|
||||
'../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
|
||||
'../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
|
||||
'../third_party/zlib/zlib.gyp:zlib',
|
||||
'../ui/ui.gyp:gfx_resources',
|
||||
'../ui/ui.gyp:ui',
|
||||
'../v8/tools/gyp/v8.gyp:v8',
|
||||
'../webkit/support/webkit_support.gyp:appcache',
|
||||
'../webkit/support/webkit_support.gyp:blob',
|
||||
'../webkit/support/webkit_support.gyp:database',
|
||||
'../webkit/support/webkit_support.gyp:fileapi',
|
||||
'../webkit/support/webkit_support.gyp:glue',
|
||||
'../webkit/support/webkit_support.gyp:quota',
|
||||
'../webkit/support/webkit_support.gyp:webkit_gpu',
|
||||
'../webkit/support/webkit_support.gyp:webkit_media',
|
||||
'../webkit/support/webkit_support.gyp:webkit_resources',
|
||||
'../webkit/support/webkit_support.gyp:webkit_strings',
|
||||
'../webkit/support/webkit_support.gyp:webkit_user_agent',
|
||||
'<(DEPTH)/base/base.gyp:base',
|
||||
'<(DEPTH)/base/base.gyp:base_i18n',
|
||||
'<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
||||
'<(DEPTH)/media/media.gyp:media',
|
||||
'<(DEPTH)/net/net.gyp:net',
|
||||
'<(DEPTH)/net/net.gyp:net_resources',
|
||||
'<(DEPTH)/printing/printing.gyp:printing',
|
||||
'<(DEPTH)/sdch/sdch.gyp:sdch',
|
||||
'<(DEPTH)/skia/skia.gyp:skia',
|
||||
'<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
|
||||
'<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
|
||||
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
|
||||
'<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
||||
'<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
|
||||
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
|
||||
'<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
|
||||
'<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
|
||||
'<(DEPTH)/third_party/modp_b64/modp_b64.gyp:modp_b64',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
|
||||
'<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
|
||||
'<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
|
||||
'<(DEPTH)/ui/ui.gyp:gfx_resources',
|
||||
'<(DEPTH)/ui/ui.gyp:ui',
|
||||
'<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:appcache',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:blob',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:database',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:fileapi',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:glue',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:quota',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_gpu',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_media',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
|
||||
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_user_agent',
|
||||
],
|
||||
'sources': [
|
||||
'<@(includes_common)',
|
||||
@ -779,10 +777,10 @@
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
'dependencies': [
|
||||
'../breakpad/breakpad.gyp:breakpad_handler',
|
||||
'../third_party/angle/src/build_angle.gyp:libEGL',
|
||||
'../third_party/angle/src/build_angle.gyp:libGLESv2',
|
||||
'../ui/views/views.gyp:views',
|
||||
'<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
|
||||
'<(DEPTH)/third_party/angle/src/build_angle.gyp:libEGL',
|
||||
'<(DEPTH)/third_party/angle/src/build_angle.gyp:libGLESv2',
|
||||
'<(DEPTH)/ui/views/views.gyp:views',
|
||||
],
|
||||
'sources': [
|
||||
'<@(includes_win)',
|
||||
@ -828,12 +826,12 @@
|
||||
'libcef/web_drop_target_mac.h',
|
||||
'libcef/web_drop_target_mac.mm',
|
||||
# Build necessary Mozilla sources
|
||||
'../third_party/mozilla/NSPasteboard+Utils.h',
|
||||
'../third_party/mozilla/NSPasteboard+Utils.mm',
|
||||
'../third_party/mozilla/NSString+Utils.h',
|
||||
'../third_party/mozilla/NSString+Utils.mm',
|
||||
'../third_party/mozilla/NSURL+Utils.h',
|
||||
'../third_party/mozilla/NSURL+Utils.m',
|
||||
'<(DEPTH)/third_party/mozilla/NSPasteboard+Utils.h',
|
||||
'<(DEPTH)/third_party/mozilla/NSPasteboard+Utils.mm',
|
||||
'<(DEPTH)/third_party/mozilla/NSString+Utils.h',
|
||||
'<(DEPTH)/third_party/mozilla/NSString+Utils.mm',
|
||||
'<(DEPTH)/third_party/mozilla/NSURL+Utils.h',
|
||||
'<(DEPTH)/third_party/mozilla/NSURL+Utils.m',
|
||||
],
|
||||
}],
|
||||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_APP_CAPI_H
|
||||
#define _CEF_APP_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_APP_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_APP_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -89,8 +90,7 @@ CEF_EXPORT void cef_quit_message_loop();
|
||||
///
|
||||
// Implement this structure to provide handler implementations.
|
||||
///
|
||||
typedef struct _cef_app_t
|
||||
{
|
||||
typedef struct _cef_app_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -102,7 +102,6 @@ typedef struct _cef_app_t
|
||||
///
|
||||
struct _cef_proxy_handler_t* (CEF_CALLBACK *get_proxy_handler)(
|
||||
struct _cef_app_t* self);
|
||||
|
||||
} cef_app_t;
|
||||
|
||||
|
||||
@ -110,4 +109,4 @@ typedef struct _cef_app_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_APP_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_APP_CAPI_H_
|
||||
|
@ -28,26 +28,25 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_BASE_CAPI_H
|
||||
#define _CEF_BASE_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../internal/cef_export.h"
|
||||
#include "../internal/cef_string.h"
|
||||
#include "../internal/cef_string_list.h"
|
||||
#include "../internal/cef_string_map.h"
|
||||
#include "../internal/cef_string_multimap.h"
|
||||
#include "../internal/cef_types.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
#include "include/internal/cef_string_list.h"
|
||||
#include "include/internal/cef_string_map.h"
|
||||
#include "include/internal/cef_string_multimap.h"
|
||||
#include "include/internal/cef_types.h"
|
||||
|
||||
///
|
||||
// Structure defining the reference count implementation functions. All
|
||||
// framework structures must include the cef_base_t structure first.
|
||||
///
|
||||
typedef struct _cef_base_t
|
||||
{
|
||||
typedef struct _cef_base_t {
|
||||
///
|
||||
// Size of the data structure.
|
||||
///
|
||||
@ -68,7 +67,6 @@ typedef struct _cef_base_t
|
||||
// Returns the current number of references.
|
||||
///
|
||||
int (CEF_CALLBACK *get_refct)(struct _cef_base_t* self);
|
||||
|
||||
} cef_base_t;
|
||||
|
||||
|
||||
@ -84,4 +82,4 @@ typedef struct _cef_base_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_BASE_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_BROWSER_CAPI_H
|
||||
#define _CEF_BROWSER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure used to represent a browser window. The functions of this structure
|
||||
// may be called on any thread unless otherwise indicated in the comments.
|
||||
///
|
||||
typedef struct _cef_browser_t
|
||||
{
|
||||
typedef struct _cef_browser_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -294,7 +294,6 @@ typedef struct _cef_browser_t
|
||||
// Send a capture lost event to the browser.
|
||||
///
|
||||
void (CEF_CALLBACK *send_capture_lost_event)(struct _cef_browser_t* self);
|
||||
|
||||
} cef_browser_t;
|
||||
|
||||
|
||||
@ -320,4 +319,4 @@ CEF_EXPORT cef_browser_t* cef_browser_create_sync(cef_window_info_t* windowInfo,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_BROWSER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_
|
||||
|
@ -34,21 +34,21 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_CLIENT_CAPI_H
|
||||
#define _CEF_CLIENT_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to provide handler implementations.
|
||||
///
|
||||
typedef struct _cef_client_t
|
||||
{
|
||||
typedef struct _cef_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -137,7 +137,6 @@ typedef struct _cef_client_t
|
||||
///
|
||||
struct _cef_drag_handler_t* (CEF_CALLBACK *get_drag_handler)(
|
||||
struct _cef_client_t* self);
|
||||
|
||||
} cef_client_t;
|
||||
|
||||
|
||||
@ -145,4 +144,4 @@ typedef struct _cef_client_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_CLIENT_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_COMMAND_LINE_CAPI_H
|
||||
#define _CEF_COMMAND_LINE_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_COMMAND_LINE_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_COMMAND_LINE_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -54,8 +55,7 @@ extern "C" {
|
||||
// arguments. Switch names are considered case-insensitive. This structure can
|
||||
// be used before cef_initialize() is called.
|
||||
///
|
||||
typedef struct _cef_command_line_t
|
||||
{
|
||||
typedef struct _cef_command_line_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -153,7 +153,6 @@ typedef struct _cef_command_line_t
|
||||
///
|
||||
void (CEF_CALLBACK *append_argument)(struct _cef_command_line_t* self,
|
||||
const cef_string_t* argument);
|
||||
|
||||
} cef_command_line_t;
|
||||
|
||||
|
||||
@ -167,4 +166,4 @@ CEF_EXPORT cef_command_line_t* cef_command_line_create();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_COMMAND_LINE_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_COMMAND_LINE_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_CONTENT_FILTER_CAPI_H
|
||||
#define _CEF_CONTENT_FILTER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_CONTENT_FILTER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_CONTENT_FILTER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure to implement for filtering response content. The functions of this
|
||||
// structure will always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_content_filter_t
|
||||
{
|
||||
typedef struct _cef_content_filter_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -70,7 +70,6 @@ typedef struct _cef_content_filter_t
|
||||
///
|
||||
void (CEF_CALLBACK *drain)(struct _cef_content_filter_t* self,
|
||||
struct _cef_stream_reader_t** remainder);
|
||||
|
||||
} cef_content_filter_t;
|
||||
|
||||
|
||||
@ -78,4 +77,4 @@ typedef struct _cef_content_filter_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_CONTENT_FILTER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_CONTENT_FILTER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_COOKIE_CAPI_H
|
||||
#define _CEF_COOKIE_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_COOKIE_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_COOKIE_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -93,8 +94,7 @@ CEF_EXPORT int cef_set_cookie_path(const cef_string_t* path);
|
||||
// Structure to implement for visiting cookie values. The functions of this
|
||||
// structure will always be called on the IO thread.
|
||||
///
|
||||
typedef struct _cef_cookie_visitor_t
|
||||
{
|
||||
typedef struct _cef_cookie_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -110,7 +110,6 @@ typedef struct _cef_cookie_visitor_t
|
||||
int (CEF_CALLBACK *visit)(struct _cef_cookie_visitor_t* self,
|
||||
const struct _cef_cookie_t* cookie, int count, int total,
|
||||
int* deleteCookie);
|
||||
|
||||
} cef_cookie_visitor_t;
|
||||
|
||||
|
||||
@ -118,4 +117,4 @@ typedef struct _cef_cookie_visitor_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_COOKIE_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_COOKIE_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DISPLAY_HANDLER_CAPI_H
|
||||
#define _CEF_DISPLAY_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_DISPLAY_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_DISPLAY_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser display state.
|
||||
// The functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_display_handler_t
|
||||
{
|
||||
typedef struct _cef_display_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -107,7 +107,6 @@ typedef struct _cef_display_handler_t
|
||||
int (CEF_CALLBACK *on_console_message)(struct _cef_display_handler_t* self,
|
||||
struct _cef_browser_t* browser, const cef_string_t* message,
|
||||
const cef_string_t* source, int line);
|
||||
|
||||
} cef_display_handler_t;
|
||||
|
||||
|
||||
@ -115,4 +114,4 @@ typedef struct _cef_display_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_DISPLAY_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_DISPLAY_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DOM_CAPI_H
|
||||
#define _CEF_DOM_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure to implement for visiting the DOM. The functions of this structure
|
||||
// will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_domvisitor_t
|
||||
{
|
||||
typedef struct _cef_domvisitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -64,7 +64,6 @@ typedef struct _cef_domvisitor_t
|
||||
///
|
||||
void (CEF_CALLBACK *visit)(struct _cef_domvisitor_t* self,
|
||||
struct _cef_domdocument_t* document);
|
||||
|
||||
} cef_domvisitor_t;
|
||||
|
||||
|
||||
@ -72,8 +71,7 @@ typedef struct _cef_domvisitor_t
|
||||
// Structure used to represent a DOM document. The functions of this structure
|
||||
// should only be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_domdocument_t
|
||||
{
|
||||
typedef struct _cef_domdocument_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -178,7 +176,6 @@ typedef struct _cef_domdocument_t
|
||||
// The resulting string must be freed by calling cef_string_userfree_free().
|
||||
cef_string_userfree_t (CEF_CALLBACK *get_complete_url)(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* partialURL);
|
||||
|
||||
} cef_domdocument_t;
|
||||
|
||||
|
||||
@ -186,8 +183,7 @@ typedef struct _cef_domdocument_t
|
||||
// Structure used to represent a DOM node. The functions of this structure
|
||||
// should only be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_domnode_t
|
||||
{
|
||||
typedef struct _cef_domnode_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -355,7 +351,6 @@ typedef struct _cef_domnode_t
|
||||
// The resulting string must be freed by calling cef_string_userfree_free().
|
||||
cef_string_userfree_t (CEF_CALLBACK *get_element_inner_text)(
|
||||
struct _cef_domnode_t* self);
|
||||
|
||||
} cef_domnode_t;
|
||||
|
||||
|
||||
@ -363,8 +358,7 @@ typedef struct _cef_domnode_t
|
||||
// Structure used to represent a DOM event. The functions of this structure
|
||||
// should only be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_domevent_t
|
||||
{
|
||||
typedef struct _cef_domevent_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -415,7 +409,6 @@ typedef struct _cef_domevent_t
|
||||
///
|
||||
struct _cef_domnode_t* (CEF_CALLBACK *get_current_target)(
|
||||
struct _cef_domevent_t* self);
|
||||
|
||||
} cef_domevent_t;
|
||||
|
||||
|
||||
@ -423,8 +416,7 @@ typedef struct _cef_domevent_t
|
||||
// Structure to implement for handling DOM events. The functions of this
|
||||
// structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_domevent_listener_t
|
||||
{
|
||||
typedef struct _cef_domevent_listener_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -439,7 +431,6 @@ typedef struct _cef_domevent_listener_t
|
||||
///
|
||||
void (CEF_CALLBACK *handle_event)(struct _cef_domevent_listener_t* self,
|
||||
struct _cef_domevent_t* event);
|
||||
|
||||
} cef_domevent_listener_t;
|
||||
|
||||
|
||||
@ -447,4 +438,4 @@ typedef struct _cef_domevent_listener_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_DOM_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DOWNLOAD_HANDLER_CAPI_H
|
||||
#define _CEF_DOWNLOAD_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_DOWNLOAD_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_DOWNLOAD_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure used to handle file downloads. The functions of this structure will
|
||||
// always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_download_handler_t
|
||||
{
|
||||
typedef struct _cef_download_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -67,7 +67,6 @@ typedef struct _cef_download_handler_t
|
||||
// The download is complete.
|
||||
///
|
||||
void (CEF_CALLBACK *complete)(struct _cef_download_handler_t* self);
|
||||
|
||||
} cef_download_handler_t;
|
||||
|
||||
|
||||
@ -75,4 +74,4 @@ typedef struct _cef_download_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_DOWNLOAD_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_DOWNLOAD_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DRAG_DATA_CAPI_H
|
||||
#define _CEF_DRAG_DATA_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_DRAG_DATA_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_DRAG_DATA_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure used to represent drag data. The functions of this structure may be
|
||||
// called on any thread.
|
||||
///
|
||||
typedef struct _cef_drag_data_t
|
||||
{
|
||||
typedef struct _cef_drag_data_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -133,7 +133,6 @@ typedef struct _cef_drag_data_t
|
||||
///
|
||||
int (CEF_CALLBACK *get_file_names)(struct _cef_drag_data_t* self,
|
||||
cef_string_list_t names);
|
||||
|
||||
} cef_drag_data_t;
|
||||
|
||||
|
||||
@ -141,4 +140,4 @@ typedef struct _cef_drag_data_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_DRAG_DATA_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_DRAG_DATA_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DRAG_HANDLER_CAPI_H
|
||||
#define _CEF_DRAG_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to dragging. The functions
|
||||
// of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_drag_handler_t
|
||||
{
|
||||
typedef struct _cef_drag_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -74,7 +74,6 @@ typedef struct _cef_drag_handler_t
|
||||
int (CEF_CALLBACK *on_drag_enter)(struct _cef_drag_handler_t* self,
|
||||
struct _cef_browser_t* browser, struct _cef_drag_data_t* dragData,
|
||||
enum cef_drag_operations_mask_t mask);
|
||||
|
||||
} cef_drag_handler_t;
|
||||
|
||||
|
||||
@ -82,4 +81,4 @@ typedef struct _cef_drag_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_DRAG_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FIND_HANDLER_CAPI_H
|
||||
#define _CEF_FIND_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to find results. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_find_handler_t
|
||||
{
|
||||
typedef struct _cef_find_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -67,7 +67,6 @@ typedef struct _cef_find_handler_t
|
||||
struct _cef_browser_t* browser, int identifier, int count,
|
||||
const cef_rect_t* selectionRect, int activeMatchOrdinal,
|
||||
int finalUpdate);
|
||||
|
||||
} cef_find_handler_t;
|
||||
|
||||
|
||||
@ -75,4 +74,4 @@ typedef struct _cef_find_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_FIND_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FOCUS_HANDLER_CAPI_H
|
||||
#define _CEF_FOCUS_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to focus. The functions of
|
||||
// this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_focus_handler_t
|
||||
{
|
||||
typedef struct _cef_focus_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -83,7 +83,6 @@ typedef struct _cef_focus_handler_t
|
||||
void (CEF_CALLBACK *on_focused_node_changed)(
|
||||
struct _cef_focus_handler_t* self, struct _cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, struct _cef_domnode_t* node);
|
||||
|
||||
} cef_focus_handler_t;
|
||||
|
||||
|
||||
@ -91,4 +90,4 @@ typedef struct _cef_focus_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_FOCUS_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FRAME_CAPI_H
|
||||
#define _CEF_FRAME_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_FRAME_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_FRAME_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -49,8 +50,7 @@ extern "C" {
|
||||
// this structure may be called on any thread unless otherwise indicated in the
|
||||
// comments.
|
||||
///
|
||||
typedef struct _cef_frame_t
|
||||
{
|
||||
typedef struct _cef_frame_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -130,10 +130,10 @@ typedef struct _cef_frame_t
|
||||
const cef_string_t* url);
|
||||
|
||||
///
|
||||
// Load the contents of |string| with the optional dummy target |url|.
|
||||
// Load the contents of |string_val| with the optional dummy target |url|.
|
||||
///
|
||||
void (CEF_CALLBACK *load_string)(struct _cef_frame_t* self,
|
||||
const cef_string_t* string, const cef_string_t* url);
|
||||
const cef_string_t* string_val, const cef_string_t* url);
|
||||
|
||||
///
|
||||
// Load the contents of |stream| with the optional dummy target |url|.
|
||||
@ -177,7 +177,7 @@ typedef struct _cef_frame_t
|
||||
// Returns the globally unique identifier for this frame. This function should
|
||||
// only be called on the UI thread.
|
||||
///
|
||||
long long (CEF_CALLBACK *get_identifier)(struct _cef_frame_t* self);
|
||||
int64 (CEF_CALLBACK *get_identifier)(struct _cef_frame_t* self);
|
||||
|
||||
///
|
||||
// Returns the parent of this frame or NULL if this is the main (top-level)
|
||||
@ -209,7 +209,6 @@ typedef struct _cef_frame_t
|
||||
///
|
||||
struct _cef_v8context_t* (CEF_CALLBACK *get_v8context)(
|
||||
struct _cef_frame_t* self);
|
||||
|
||||
} cef_frame_t;
|
||||
|
||||
|
||||
@ -217,4 +216,4 @@ typedef struct _cef_frame_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_FRAME_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_FRAME_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_JSDIALOG_HANDLER_CAPI_H
|
||||
#define _CEF_JSDIALOG_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_JSDIALOG_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_JSDIALOG_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to JavaScript dialogs. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_jsdialog_handler_t
|
||||
{
|
||||
typedef struct _cef_jsdialog_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -82,7 +82,6 @@ typedef struct _cef_jsdialog_handler_t
|
||||
struct _cef_browser_t* browser, struct _cef_frame_t* frame,
|
||||
const cef_string_t* message, const cef_string_t* defaultValue,
|
||||
int* retval, cef_string_t* result);
|
||||
|
||||
} cef_jsdialog_handler_t;
|
||||
|
||||
|
||||
@ -90,4 +89,4 @@ typedef struct _cef_jsdialog_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_JSDIALOG_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_JSDIALOG_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_KEYBOARD_HANDLER_CAPI_H
|
||||
#define _CEF_KEYBOARD_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to keyboard input. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_keyboard_handler_t
|
||||
{
|
||||
typedef struct _cef_keyboard_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -72,7 +72,6 @@ typedef struct _cef_keyboard_handler_t
|
||||
int (CEF_CALLBACK *on_key_event)(struct _cef_keyboard_handler_t* self,
|
||||
struct _cef_browser_t* browser, enum cef_handler_keyevent_type_t type,
|
||||
int code, int modifiers, int isSystemKey, int isAfterJavaScript);
|
||||
|
||||
} cef_keyboard_handler_t;
|
||||
|
||||
|
||||
@ -80,4 +79,4 @@ typedef struct _cef_keyboard_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_KEYBOARD_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_LIFE_SPAN_HANDLER_CAPI_H
|
||||
#define _CEF_LIFE_SPAN_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_LIFE_SPAN_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_LIFE_SPAN_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser life span. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_life_span_handler_t
|
||||
{
|
||||
typedef struct _cef_life_span_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -104,7 +104,6 @@ typedef struct _cef_life_span_handler_t
|
||||
///
|
||||
void (CEF_CALLBACK *on_before_close)(struct _cef_life_span_handler_t* self,
|
||||
struct _cef_browser_t* browser);
|
||||
|
||||
} cef_life_span_handler_t;
|
||||
|
||||
|
||||
@ -112,4 +111,4 @@ typedef struct _cef_life_span_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_LIFE_SPAN_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_LIFE_SPAN_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_LOAD_HANDLER_CAPI_H
|
||||
#define _CEF_LOAD_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_LOAD_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_LOAD_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser load status. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_load_handler_t
|
||||
{
|
||||
typedef struct _cef_load_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -89,7 +89,6 @@ typedef struct _cef_load_handler_t
|
||||
struct _cef_browser_t* browser, struct _cef_frame_t* frame,
|
||||
enum cef_handler_errorcode_t errorCode, const cef_string_t* failedUrl,
|
||||
cef_string_t* errorText);
|
||||
|
||||
} cef_load_handler_t;
|
||||
|
||||
|
||||
@ -97,4 +96,4 @@ typedef struct _cef_load_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_LOAD_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_LOAD_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_MENU_HANDLER_CAPI_H
|
||||
#define _CEF_MENU_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_MENU_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_MENU_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser context menus.
|
||||
// The functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_menu_handler_t
|
||||
{
|
||||
typedef struct _cef_menu_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -78,7 +78,6 @@ typedef struct _cef_menu_handler_t
|
||||
///
|
||||
int (CEF_CALLBACK *on_menu_action)(struct _cef_menu_handler_t* self,
|
||||
struct _cef_browser_t* browser, enum cef_menu_id_t menuId);
|
||||
|
||||
} cef_menu_handler_t;
|
||||
|
||||
|
||||
@ -86,4 +85,4 @@ typedef struct _cef_menu_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_MENU_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_MENU_HANDLER_CAPI_H_
|
||||
|
@ -28,14 +28,14 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_NPLUGIN_CAPI_H
|
||||
#define _CEF_NPLUGIN_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_NPLUGIN_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_NPLUGIN_CAPI_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../internal/cef_nplugin_types.h"
|
||||
#include "include/internal/cef_nplugin_types.h"
|
||||
|
||||
///
|
||||
// Register a plugin with the system. Returns true (1) on success.
|
||||
@ -46,4 +46,4 @@ CEF_EXPORT int cef_register_plugin(const cef_plugin_info_t* plugin_info);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_NPLUGIN_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_NPLUGIN_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_ORIGIN_WHITELIST_CAPI_H
|
||||
#define _CEF_ORIGIN_WHITELIST_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_ORIGIN_WHITELIST_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_ORIGIN_WHITELIST_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -98,4 +99,4 @@ CEF_EXPORT int cef_clear_cross_origin_whitelist();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_ORIGIN_WHITELIST_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_ORIGIN_WHITELIST_CAPI_H_
|
||||
|
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PERMISSION_HANDLER_CAPI_H
|
||||
#define _CEF_PERMISSION_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_PERMISSION_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_PERMISSION_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser permissions. The
|
||||
// functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_permission_handler_t
|
||||
{
|
||||
typedef struct _cef_permission_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -57,12 +57,11 @@ typedef struct _cef_permission_handler_t
|
||||
|
||||
///
|
||||
// Called on the UI thread before a script extension is loaded. Return false
|
||||
// (0) to prevent the extension from loading.
|
||||
// (0) to let the extension load normally.
|
||||
///
|
||||
int (CEF_CALLBACK *on_before_script_extension_load)(
|
||||
struct _cef_permission_handler_t* self, struct _cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, const cef_string_t* extensionName);
|
||||
|
||||
} cef_permission_handler_t;
|
||||
|
||||
|
||||
@ -70,4 +69,4 @@ typedef struct _cef_permission_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_PERMISSION_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_PERMISSION_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PRINT_HANDLER_CAPI_H
|
||||
#define _CEF_PRINT_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_PRINT_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_PRINT_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to printing. The functions
|
||||
// of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_print_handler_t
|
||||
{
|
||||
typedef struct _cef_print_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -86,7 +86,6 @@ typedef struct _cef_print_handler_t
|
||||
cef_string_t* topLeft, cef_string_t* topCenter, cef_string_t* topRight,
|
||||
cef_string_t* bottomLeft, cef_string_t* bottomCenter,
|
||||
cef_string_t* bottomRight);
|
||||
|
||||
} cef_print_handler_t;
|
||||
|
||||
|
||||
@ -94,4 +93,4 @@ typedef struct _cef_print_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_PRINT_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_PRINT_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,21 +34,21 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PROXY_HANDLER_CAPI_H
|
||||
#define _CEF_PROXY_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_PROXY_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_PROXY_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle proxy resolution events.
|
||||
///
|
||||
typedef struct _cef_proxy_handler_t
|
||||
{
|
||||
typedef struct _cef_proxy_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -59,7 +59,6 @@ typedef struct _cef_proxy_handler_t
|
||||
///
|
||||
void (CEF_CALLBACK *get_proxy_for_url)(struct _cef_proxy_handler_t* self,
|
||||
const cef_string_t* url, struct _cef_proxy_info_t* proxy_info);
|
||||
|
||||
} cef_proxy_handler_t;
|
||||
|
||||
|
||||
@ -67,4 +66,4 @@ typedef struct _cef_proxy_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_PROXY_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_PROXY_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_RENDER_HANDLER_CAPI_H
|
||||
#define _CEF_RENDER_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_RENDER_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_RENDER_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events when window rendering is disabled.
|
||||
// The functions of this structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_render_handler_t
|
||||
{
|
||||
typedef struct _cef_render_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -108,7 +108,6 @@ typedef struct _cef_render_handler_t
|
||||
///
|
||||
void (CEF_CALLBACK *on_cursor_change)(struct _cef_render_handler_t* self,
|
||||
struct _cef_browser_t* browser, cef_cursor_handle_t cursor);
|
||||
|
||||
} cef_render_handler_t;
|
||||
|
||||
|
||||
@ -116,4 +115,4 @@ typedef struct _cef_render_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_RENDER_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_RENDER_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_REQUEST_CAPI_H
|
||||
#define _CEF_REQUEST_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_REQUEST_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure used to represent a web request. The functions of this structure
|
||||
// may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_request_t
|
||||
{
|
||||
typedef struct _cef_request_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -137,7 +137,6 @@ typedef struct _cef_request_t
|
||||
///
|
||||
void (CEF_CALLBACK *set_first_party_for_cookies)(struct _cef_request_t* self,
|
||||
const cef_string_t* url);
|
||||
|
||||
} cef_request_t;
|
||||
|
||||
|
||||
@ -151,8 +150,7 @@ CEF_EXPORT cef_request_t* cef_request_create();
|
||||
// Structure used to represent post data for a web request. The functions of
|
||||
// this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_post_data_t
|
||||
{
|
||||
typedef struct _cef_post_data_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -186,7 +184,6 @@ typedef struct _cef_post_data_t
|
||||
// Remove all existing post data elements.
|
||||
///
|
||||
void (CEF_CALLBACK *remove_elements)(struct _cef_post_data_t* self);
|
||||
|
||||
} cef_post_data_t;
|
||||
|
||||
|
||||
@ -200,8 +197,7 @@ CEF_EXPORT cef_post_data_t* cef_post_data_create();
|
||||
// Structure used to represent a single element in the request post data. The
|
||||
// functions of this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_post_data_element_t
|
||||
{
|
||||
typedef struct _cef_post_data_element_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -249,7 +245,6 @@ typedef struct _cef_post_data_element_t
|
||||
///
|
||||
size_t (CEF_CALLBACK *get_bytes)(struct _cef_post_data_element_t* self,
|
||||
size_t size, void* bytes);
|
||||
|
||||
} cef_post_data_element_t;
|
||||
|
||||
|
||||
@ -263,4 +258,4 @@ CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_REQUEST_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_REQUEST_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_REQUEST_HANDLER_CAPI_H
|
||||
#define _CEF_REQUEST_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_REQUEST_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser requests. The
|
||||
// functions of this structure will be called on the thread indicated.
|
||||
///
|
||||
typedef struct _cef_request_handler_t
|
||||
{
|
||||
typedef struct _cef_request_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -139,7 +139,6 @@ typedef struct _cef_request_handler_t
|
||||
struct _cef_browser_t* browser, int isProxy, const cef_string_t* host,
|
||||
int port, const cef_string_t* realm, const cef_string_t* scheme,
|
||||
cef_string_t* username, cef_string_t* password);
|
||||
|
||||
} cef_request_handler_t;
|
||||
|
||||
|
||||
@ -147,4 +146,4 @@ typedef struct _cef_request_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_REQUEST_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_REQUEST_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_RESPONSE_CAPI_H
|
||||
#define _CEF_RESPONSE_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_RESPONSE_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_RESPONSE_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure used to represent a web response. The functions of this structure
|
||||
// may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_response_t
|
||||
{
|
||||
typedef struct _cef_response_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -109,7 +109,6 @@ typedef struct _cef_response_t
|
||||
///
|
||||
void (CEF_CALLBACK *set_header_map)(struct _cef_response_t* self,
|
||||
cef_string_multimap_t headerMap);
|
||||
|
||||
} cef_response_t;
|
||||
|
||||
|
||||
@ -117,4 +116,4 @@ typedef struct _cef_response_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_RESPONSE_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_RESPONSE_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_SCHEME_CAPI_H
|
||||
#define _CEF_SCHEME_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_SCHEME_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_SCHEME_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -117,8 +118,7 @@ CEF_EXPORT int cef_clear_scheme_handler_factories();
|
||||
// Structure that creates cef_scheme_handler_t instances. The functions of this
|
||||
// structure will always be called on the IO thread.
|
||||
///
|
||||
typedef struct _cef_scheme_handler_factory_t
|
||||
{
|
||||
typedef struct _cef_scheme_handler_factory_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -133,7 +133,6 @@ typedef struct _cef_scheme_handler_factory_t
|
||||
struct _cef_scheme_handler_factory_t* self,
|
||||
struct _cef_browser_t* browser, const cef_string_t* scheme_name,
|
||||
struct _cef_request_t* request);
|
||||
|
||||
} cef_scheme_handler_factory_t;
|
||||
|
||||
|
||||
@ -141,8 +140,7 @@ typedef struct _cef_scheme_handler_factory_t
|
||||
// Structure used to facilitate asynchronous responses to custom scheme handler
|
||||
// requests. The functions of this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_scheme_handler_callback_t
|
||||
{
|
||||
typedef struct _cef_scheme_handler_callback_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -164,7 +162,6 @@ typedef struct _cef_scheme_handler_callback_t
|
||||
// Cancel processing of the request.
|
||||
///
|
||||
void (CEF_CALLBACK *cancel)(struct _cef_scheme_handler_callback_t* self);
|
||||
|
||||
} cef_scheme_handler_callback_t;
|
||||
|
||||
|
||||
@ -172,8 +169,7 @@ typedef struct _cef_scheme_handler_callback_t
|
||||
// Structure used to implement a custom scheme handler structure. The functions
|
||||
// of this structure will always be called on the IO thread.
|
||||
///
|
||||
typedef struct _cef_scheme_handler_t
|
||||
{
|
||||
typedef struct _cef_scheme_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -219,7 +215,6 @@ typedef struct _cef_scheme_handler_t
|
||||
// Request processing has been canceled.
|
||||
///
|
||||
void (CEF_CALLBACK *cancel)(struct _cef_scheme_handler_t* self);
|
||||
|
||||
} cef_scheme_handler_t;
|
||||
|
||||
|
||||
@ -227,4 +222,4 @@ typedef struct _cef_scheme_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_SCHEME_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_SCHEME_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_STORAGE_CAPI_H
|
||||
#define _CEF_STORAGE_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_STORAGE_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_STORAGE_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -88,8 +89,7 @@ CEF_EXPORT int cef_set_storage_path(enum cef_storage_type_t type,
|
||||
// Structure to implement for visiting storage. The functions of this structure
|
||||
// will always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_storage_visitor_t
|
||||
{
|
||||
typedef struct _cef_storage_visitor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -106,7 +106,6 @@ typedef struct _cef_storage_visitor_t
|
||||
enum cef_storage_type_t type, const cef_string_t* origin,
|
||||
const cef_string_t* key, const cef_string_t* value, int count, int total,
|
||||
int* deleteData);
|
||||
|
||||
} cef_storage_visitor_t;
|
||||
|
||||
|
||||
@ -114,4 +113,4 @@ typedef struct _cef_storage_visitor_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STORAGE_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_STORAGE_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_STREAM_CAPI_H
|
||||
#define _CEF_STREAM_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_STREAM_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_STREAM_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Structure the client can implement to provide a custom stream reader. The
|
||||
// functions of this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_read_handler_t
|
||||
{
|
||||
typedef struct _cef_read_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -63,21 +63,20 @@ typedef struct _cef_read_handler_t
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of SEEK_CUR,
|
||||
// SEEK_END or SEEK_SET.
|
||||
// SEEK_END or SEEK_SET. Return zero on success and non-zero on failure.
|
||||
///
|
||||
int (CEF_CALLBACK *seek)(struct _cef_read_handler_t* self, long offset,
|
||||
int (CEF_CALLBACK *seek)(struct _cef_read_handler_t* self, int64 offset,
|
||||
int whence);
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
long (CEF_CALLBACK *tell)(struct _cef_read_handler_t* self);
|
||||
int64 (CEF_CALLBACK *tell)(struct _cef_read_handler_t* self);
|
||||
|
||||
///
|
||||
// Return non-zero if at end of file.
|
||||
///
|
||||
int (CEF_CALLBACK *eof)(struct _cef_read_handler_t* self);
|
||||
|
||||
} cef_read_handler_t;
|
||||
|
||||
|
||||
@ -85,8 +84,7 @@ typedef struct _cef_read_handler_t
|
||||
// Structure used to read data from a stream. The functions of this structure
|
||||
// may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_stream_reader_t
|
||||
{
|
||||
typedef struct _cef_stream_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -102,19 +100,18 @@ typedef struct _cef_stream_reader_t
|
||||
// Seek to the specified offset position. |whence| may be any one of SEEK_CUR,
|
||||
// SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure.
|
||||
///
|
||||
int (CEF_CALLBACK *seek)(struct _cef_stream_reader_t* self, long offset,
|
||||
int (CEF_CALLBACK *seek)(struct _cef_stream_reader_t* self, int64 offset,
|
||||
int whence);
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
long (CEF_CALLBACK *tell)(struct _cef_stream_reader_t* self);
|
||||
int64 (CEF_CALLBACK *tell)(struct _cef_stream_reader_t* self);
|
||||
|
||||
///
|
||||
// Return non-zero if at end of file.
|
||||
///
|
||||
int (CEF_CALLBACK *eof)(struct _cef_stream_reader_t* self);
|
||||
|
||||
} cef_stream_reader_t;
|
||||
|
||||
|
||||
@ -141,8 +138,7 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_handler(
|
||||
// Structure the client can implement to provide a custom stream writer. The
|
||||
// functions of this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_write_handler_t
|
||||
{
|
||||
typedef struct _cef_write_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -156,21 +152,20 @@ typedef struct _cef_write_handler_t
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of SEEK_CUR,
|
||||
// SEEK_END or SEEK_SET.
|
||||
// SEEK_END or SEEK_SET. Return zero on success and non-zero on failure.
|
||||
///
|
||||
int (CEF_CALLBACK *seek)(struct _cef_write_handler_t* self, long offset,
|
||||
int (CEF_CALLBACK *seek)(struct _cef_write_handler_t* self, int64 offset,
|
||||
int whence);
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
long (CEF_CALLBACK *tell)(struct _cef_write_handler_t* self);
|
||||
int64 (CEF_CALLBACK *tell)(struct _cef_write_handler_t* self);
|
||||
|
||||
///
|
||||
// Flush the stream.
|
||||
///
|
||||
int (CEF_CALLBACK *flush)(struct _cef_write_handler_t* self);
|
||||
|
||||
} cef_write_handler_t;
|
||||
|
||||
|
||||
@ -178,8 +173,7 @@ typedef struct _cef_write_handler_t
|
||||
// Structure used to write data to a stream. The functions of this structure may
|
||||
// be called on any thread.
|
||||
///
|
||||
typedef struct _cef_stream_writer_t
|
||||
{
|
||||
typedef struct _cef_stream_writer_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -193,21 +187,20 @@ typedef struct _cef_stream_writer_t
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of SEEK_CUR,
|
||||
// SEEK_END or SEEK_SET.
|
||||
// SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure.
|
||||
///
|
||||
int (CEF_CALLBACK *seek)(struct _cef_stream_writer_t* self, long offset,
|
||||
int (CEF_CALLBACK *seek)(struct _cef_stream_writer_t* self, int64 offset,
|
||||
int whence);
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
long (CEF_CALLBACK *tell)(struct _cef_stream_writer_t* self);
|
||||
int64 (CEF_CALLBACK *tell)(struct _cef_stream_writer_t* self);
|
||||
|
||||
///
|
||||
// Flush the stream.
|
||||
///
|
||||
int (CEF_CALLBACK *flush)(struct _cef_stream_writer_t* self);
|
||||
|
||||
} cef_stream_writer_t;
|
||||
|
||||
|
||||
@ -228,4 +221,4 @@ CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_handler(
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STREAM_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_STREAM_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_TASK_CAPI_H
|
||||
#define _CEF_TASK_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_TASK_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_TASK_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -68,14 +69,13 @@ CEF_EXPORT int cef_post_task(cef_thread_id_t threadId,
|
||||
// be called on any thread.
|
||||
///
|
||||
CEF_EXPORT int cef_post_delayed_task(cef_thread_id_t threadId,
|
||||
struct _cef_task_t* task, long delay_ms);
|
||||
struct _cef_task_t* task, int64 delay_ms);
|
||||
|
||||
///
|
||||
// Implement this structure for task execution. The functions of this structure
|
||||
// may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_task_t
|
||||
{
|
||||
typedef struct _cef_task_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -86,7 +86,6 @@ typedef struct _cef_task_t
|
||||
///
|
||||
void (CEF_CALLBACK *execute)(struct _cef_task_t* self,
|
||||
cef_thread_id_t threadId);
|
||||
|
||||
} cef_task_t;
|
||||
|
||||
|
||||
@ -94,4 +93,4 @@ typedef struct _cef_task_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_TASK_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_TASK_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_URL_CAPI_H
|
||||
#define _CEF_URL_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -63,4 +64,4 @@ CEF_EXPORT int cef_create_url(const struct _cef_urlparts_t* parts,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_URL_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_V8_CAPI_H
|
||||
#define _CEF_V8_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_V8_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_V8_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -106,8 +107,7 @@ CEF_EXPORT int cef_register_extension(const cef_string_t* extension_name,
|
||||
///
|
||||
// Structure that encapsulates a V8 context handle.
|
||||
///
|
||||
typedef struct _cef_v8context_t
|
||||
{
|
||||
typedef struct _cef_v8context_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -151,7 +151,6 @@ typedef struct _cef_v8context_t
|
||||
///
|
||||
int (CEF_CALLBACK *is_same)(struct _cef_v8context_t* self,
|
||||
struct _cef_v8context_t* that);
|
||||
|
||||
} cef_v8context_t;
|
||||
|
||||
|
||||
@ -175,8 +174,7 @@ CEF_EXPORT int cef_v8context_in_context();
|
||||
// Structure that should be implemented to handle V8 function calls. The
|
||||
// functions of this structure will always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_v8handler_t
|
||||
{
|
||||
typedef struct _cef_v8handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -193,7 +191,6 @@ typedef struct _cef_v8handler_t
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
size_t argumentsCount, struct _cef_v8value_t* const* arguments,
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception);
|
||||
|
||||
} cef_v8handler_t;
|
||||
|
||||
|
||||
@ -202,8 +199,7 @@ typedef struct _cef_v8handler_t
|
||||
// identifiers are registered by calling cef_v8value_t::set_value_byaccessor().
|
||||
// The functions of this structure will always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_v8accessor_t
|
||||
{
|
||||
typedef struct _cef_v8accessor_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -230,15 +226,13 @@ typedef struct _cef_v8accessor_t
|
||||
int (CEF_CALLBACK *set)(struct _cef_v8accessor_t* self,
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
struct _cef_v8value_t* value, cef_string_t* exception);
|
||||
|
||||
} cef_v8accessor_t;
|
||||
|
||||
|
||||
///
|
||||
// Structure representing a V8 exception.
|
||||
///
|
||||
typedef struct _cef_v8exception_t
|
||||
{
|
||||
typedef struct _cef_v8exception_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -295,7 +289,6 @@ typedef struct _cef_v8exception_t
|
||||
// occurred.
|
||||
///
|
||||
int (CEF_CALLBACK *get_end_column)(struct _cef_v8exception_t* self);
|
||||
|
||||
} cef_v8exception_t;
|
||||
|
||||
|
||||
@ -303,8 +296,7 @@ typedef struct _cef_v8exception_t
|
||||
// Structure representing a V8 value. The functions of this structure should
|
||||
// only be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_v8value_t
|
||||
{
|
||||
typedef struct _cef_v8value_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -529,7 +521,6 @@ typedef struct _cef_v8value_t
|
||||
size_t argumentsCount, struct _cef_v8value_t* const* arguments,
|
||||
struct _cef_v8value_t** retval, struct _cef_v8exception_t** exception,
|
||||
int rethrow_exception);
|
||||
|
||||
} cef_v8value_t;
|
||||
|
||||
|
||||
@ -600,4 +591,4 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_function(const cef_string_t* name,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_V8_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_V8_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,22 +34,22 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_V8CONTEXT_HANDLER_CAPI_H
|
||||
#define _CEF_V8CONTEXT_HANDLER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_V8CONTEXT_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_V8CONTEXT_HANDLER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle V8 context events. The functions of this
|
||||
// structure will be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_v8context_handler_t
|
||||
{
|
||||
typedef struct _cef_v8context_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -71,7 +71,6 @@ typedef struct _cef_v8context_handler_t
|
||||
void (CEF_CALLBACK *on_context_released)(
|
||||
struct _cef_v8context_handler_t* self, struct _cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, struct _cef_v8context_t* context);
|
||||
|
||||
} cef_v8context_handler_t;
|
||||
|
||||
|
||||
@ -79,4 +78,4 @@ typedef struct _cef_v8context_handler_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_V8CONTEXT_HANDLER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_V8CONTEXT_HANDLER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_WEB_URLREQUEST_CAPI_H
|
||||
#define _CEF_WEB_URLREQUEST_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_WEB_URLREQUEST_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_WEB_URLREQUEST_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -49,8 +50,7 @@ extern "C" {
|
||||
// with a browser instance so no cef_client_t callbacks will be executed. The
|
||||
// functions of this structure may be called on any thread.
|
||||
///
|
||||
typedef struct _cef_web_urlrequest_t
|
||||
{
|
||||
typedef struct _cef_web_urlrequest_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -66,7 +66,6 @@ typedef struct _cef_web_urlrequest_t
|
||||
///
|
||||
enum cef_weburlrequest_state_t (CEF_CALLBACK *get_state)(
|
||||
struct _cef_web_urlrequest_t* self);
|
||||
|
||||
} cef_web_urlrequest_t;
|
||||
|
||||
|
||||
@ -82,8 +81,7 @@ CEF_EXPORT cef_web_urlrequest_t* cef_web_urlrequest_create(
|
||||
// Structure that should be implemented by the cef_web_urlrequest_t client. The
|
||||
// functions of this structure will always be called on the UI thread.
|
||||
///
|
||||
typedef struct _cef_web_urlrequest_client_t
|
||||
{
|
||||
typedef struct _cef_web_urlrequest_client_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -135,7 +133,6 @@ typedef struct _cef_web_urlrequest_client_t
|
||||
void (CEF_CALLBACK *on_error)(struct _cef_web_urlrequest_client_t* self,
|
||||
struct _cef_web_urlrequest_t* requester,
|
||||
enum cef_handler_errorcode_t errorCode);
|
||||
|
||||
} cef_web_urlrequest_client_t;
|
||||
|
||||
|
||||
@ -143,4 +140,4 @@ typedef struct _cef_web_urlrequest_client_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_WEB_URLREQUEST_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_WEB_URLREQUEST_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_XML_READER_CAPI_H
|
||||
#define _CEF_XML_READER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_XML_READER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_XML_READER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -49,8 +50,7 @@ extern "C" {
|
||||
// The functions of this structure should only be called on the thread that
|
||||
// creates the object.
|
||||
///
|
||||
typedef struct _cef_xml_reader_t
|
||||
{
|
||||
typedef struct _cef_xml_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -259,7 +259,6 @@ typedef struct _cef_xml_reader_t
|
||||
// cursor position was set successfully.
|
||||
///
|
||||
int (CEF_CALLBACK *move_to_carrying_element)(struct _cef_xml_reader_t* self);
|
||||
|
||||
} cef_xml_reader_t;
|
||||
|
||||
|
||||
@ -276,4 +275,4 @@ CEF_EXPORT cef_xml_reader_t* cef_xml_reader_create(
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_XML_READER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_XML_READER_CAPI_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved.
|
||||
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -34,14 +34,15 @@
|
||||
// more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_ZIP_READER_CAPI_H
|
||||
#define _CEF_ZIP_READER_CAPI_H
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_ZIP_READER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_ZIP_READER_CAPI_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_base_capi.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
|
||||
|
||||
///
|
||||
@ -49,8 +50,7 @@ extern "C" {
|
||||
// The functions of this structure should only be called on the thread that
|
||||
// creates the object.
|
||||
///
|
||||
typedef struct _cef_zip_reader_t
|
||||
{
|
||||
typedef struct _cef_zip_reader_t {
|
||||
///
|
||||
// Base structure.
|
||||
///
|
||||
@ -95,7 +95,7 @@ typedef struct _cef_zip_reader_t
|
||||
///
|
||||
// Returns the uncompressed size of the file.
|
||||
///
|
||||
long (CEF_CALLBACK *get_file_size)(struct _cef_zip_reader_t* self);
|
||||
int64 (CEF_CALLBACK *get_file_size)(struct _cef_zip_reader_t* self);
|
||||
|
||||
///
|
||||
// Returns the last modified timestamp for the file.
|
||||
@ -124,13 +124,12 @@ typedef struct _cef_zip_reader_t
|
||||
///
|
||||
// Returns the current offset in the uncompressed file contents.
|
||||
///
|
||||
long (CEF_CALLBACK *tell)(struct _cef_zip_reader_t* self);
|
||||
int64 (CEF_CALLBACK *tell)(struct _cef_zip_reader_t* self);
|
||||
|
||||
///
|
||||
// Returns true (1) if at end of the file contents.
|
||||
///
|
||||
int (CEF_CALLBACK *eof)(struct _cef_zip_reader_t* self);
|
||||
|
||||
} cef_zip_reader_t;
|
||||
|
||||
|
||||
@ -146,4 +145,4 @@ CEF_EXPORT cef_zip_reader_t* cef_zip_reader_create(
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_ZIP_READER_CAPI_H
|
||||
#endif // CEF_INCLUDE_CAPI_CEF_ZIP_READER_CAPI_H_
|
||||
|
@ -35,11 +35,12 @@
|
||||
//
|
||||
|
||||
|
||||
#ifndef _CEF_APP_H
|
||||
#define _CEF_APP_H
|
||||
#ifndef CEF_INCLUDE_CEF_APP_H_
|
||||
#define CEF_INCLUDE_CEF_APP_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_proxy_handler.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_proxy_handler.h"
|
||||
|
||||
class CefApp;
|
||||
|
||||
@ -94,9 +95,8 @@ void CefQuitMessageLoop();
|
||||
// Implement this interface to provide handler implementations.
|
||||
///
|
||||
/*--cef(source=client,no_debugct_check)--*/
|
||||
class CefApp : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefApp : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Return the handler for proxy events. If not handler is returned the default
|
||||
// system handler will be used.
|
||||
@ -105,4 +105,4 @@ public:
|
||||
virtual CefRefPtr<CefProxyHandler> GetProxyHandler() { return NULL; }
|
||||
};
|
||||
|
||||
#endif // _CEF_APP_H
|
||||
#endif // CEF_INCLUDE_CEF_APP_H_
|
||||
|
@ -27,11 +27,11 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_APPLICATION_MAC_H
|
||||
#define _CEF_APPLICATION_MAC_H
|
||||
#ifndef CEF_INCLUDE_CEF_APPLICATION_MAC_H_
|
||||
#define CEF_INCLUDE_CEF_APPLICATION_MAC_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
#if defined(OS_MACOSX) && defined(__OBJC__)
|
||||
|
||||
@ -99,7 +99,7 @@ DEFINE_EMPTY_PROTOCOL(NSWindowDelegate)
|
||||
// Controls the state of |isHandlingSendEvent| in the event loop so that it is
|
||||
// reset properly.
|
||||
class CefScopedSendingEvent {
|
||||
public:
|
||||
public:
|
||||
CefScopedSendingEvent()
|
||||
: app_(static_cast<NSApplication<CefAppProtocol>*>(
|
||||
[NSApplication sharedApplication])),
|
||||
@ -110,11 +110,11 @@ public:
|
||||
[app_ setHandlingSendEvent:handling_];
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
NSApplication<CefAppProtocol>* app_;
|
||||
BOOL handling_;
|
||||
};
|
||||
|
||||
#endif // defined(OS_MACOSX) && defined(__OBJC__)
|
||||
|
||||
#endif // _CEF_APPLICATION_MAC_H
|
||||
#endif // CEF_INCLUDE_CEF_APPLICATION_MAC_H_
|
||||
|
@ -35,29 +35,29 @@
|
||||
//
|
||||
|
||||
|
||||
#ifndef _CEF_BASE_H
|
||||
#define _CEF_BASE_H
|
||||
#ifndef CEF_INCLUDE_CEF_BASE_H_
|
||||
#define CEF_INCLUDE_CEF_BASE_H_
|
||||
#pragma once
|
||||
|
||||
#include "internal/cef_build.h"
|
||||
#include "internal/cef_ptr.h"
|
||||
#include "internal/cef_types_wrappers.h"
|
||||
#include "include/internal/cef_build.h"
|
||||
#include "include/internal/cef_ptr.h"
|
||||
#include "include/internal/cef_types_wrappers.h"
|
||||
|
||||
// Bring in platform-specific definitions.
|
||||
#if defined(OS_WIN)
|
||||
#include "internal/cef_win.h"
|
||||
#include "include/internal/cef_win.h"
|
||||
#elif defined(OS_MACOSX)
|
||||
#include "internal/cef_mac.h"
|
||||
#include "include/internal/cef_mac.h"
|
||||
#elif defined(OS_LINUX)
|
||||
#include "internal/cef_linux.h"
|
||||
#include "include/internal/cef_linux.h"
|
||||
#endif
|
||||
|
||||
///
|
||||
// Interface defining the reference count implementation methods. All framework
|
||||
// classes must extend the CefBase class.
|
||||
///
|
||||
class CefBase
|
||||
{
|
||||
public:
|
||||
class CefBase {
|
||||
public:
|
||||
///
|
||||
// The AddRef method increments the reference count for the object. It should
|
||||
// be called for every new copy of a pointer to a given object. The resulting
|
||||
@ -79,7 +79,7 @@ public:
|
||||
///
|
||||
virtual int GetRefCt() =0;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
virtual ~CefBase() {}
|
||||
};
|
||||
|
||||
@ -87,9 +87,8 @@ protected:
|
||||
///
|
||||
// Class that implements atomic reference counting.
|
||||
///
|
||||
class CefRefCount
|
||||
{
|
||||
public:
|
||||
class CefRefCount {
|
||||
public:
|
||||
CefRefCount() : refct_(0) {}
|
||||
|
||||
///
|
||||
@ -111,8 +110,8 @@ public:
|
||||
///
|
||||
int GetRefCt() { return refct_; }
|
||||
|
||||
private:
|
||||
long refct_;
|
||||
private:
|
||||
long refct_; // NOLINT(runtime/int)
|
||||
};
|
||||
|
||||
///
|
||||
@ -124,7 +123,7 @@ private:
|
||||
int AddRef() { return refct_.AddRef(); } \
|
||||
int Release() { \
|
||||
int retval = refct_.Release(); \
|
||||
if(retval == 0) \
|
||||
if (retval == 0) \
|
||||
delete this; \
|
||||
return retval; \
|
||||
} \
|
||||
@ -142,7 +141,7 @@ private:
|
||||
public: \
|
||||
class AutoLock { \
|
||||
public: \
|
||||
AutoLock(ClassName* base) : base_(base) { base_->Lock(); } \
|
||||
explicit AutoLock(ClassName* base) : base_(base) { base_->Lock(); } \
|
||||
~AutoLock() { base_->Unlock(); } \
|
||||
private: \
|
||||
ClassName* base_; \
|
||||
@ -152,4 +151,4 @@ private:
|
||||
private: \
|
||||
CefCriticalSection critsec_;
|
||||
|
||||
#endif // _CEF_BASE_H
|
||||
#endif // CEF_INCLUDE_CEF_BASE_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_BROWSER_H
|
||||
#define _CEF_BROWSER_H
|
||||
#ifndef CEF_INCLUDE_CEF_BROWSER_H_
|
||||
#define CEF_INCLUDE_CEF_BROWSER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <vector>
|
||||
|
||||
class CefClient;
|
||||
@ -48,9 +49,8 @@ class CefFrame;
|
||||
// called on any thread unless otherwise indicated in the comments.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefBrowser : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefBrowser : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_key_type_t KeyType;
|
||||
typedef cef_mouse_button_type_t MouseButtonType;
|
||||
typedef cef_paint_element_type_t PaintElementType;
|
||||
@ -332,4 +332,4 @@ public:
|
||||
virtual void SendCaptureLostEvent() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_BROWSER_H
|
||||
#endif // CEF_INCLUDE_CEF_BROWSER_H_
|
||||
|
@ -34,38 +34,37 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_CLIENT_H
|
||||
#define _CEF_CLIENT_H
|
||||
#ifndef CEF_INCLUDE_CEF_CLIENT_H_
|
||||
#define CEF_INCLUDE_CEF_CLIENT_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_display_handler.h"
|
||||
#include "cef_drag_handler.h"
|
||||
#include "cef_find_handler.h"
|
||||
#include "cef_focus_handler.h"
|
||||
#include "cef_jsdialog_handler.h"
|
||||
#include "cef_keyboard_handler.h"
|
||||
#include "cef_life_span_handler.h"
|
||||
#include "cef_load_handler.h"
|
||||
#include "cef_menu_handler.h"
|
||||
#include "cef_permission_handler.h"
|
||||
#include "cef_print_handler.h"
|
||||
#include "cef_render_handler.h"
|
||||
#include "cef_request_handler.h"
|
||||
#include "cef_v8context_handler.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_display_handler.h"
|
||||
#include "include/cef_drag_handler.h"
|
||||
#include "include/cef_find_handler.h"
|
||||
#include "include/cef_focus_handler.h"
|
||||
#include "include/cef_jsdialog_handler.h"
|
||||
#include "include/cef_keyboard_handler.h"
|
||||
#include "include/cef_life_span_handler.h"
|
||||
#include "include/cef_load_handler.h"
|
||||
#include "include/cef_menu_handler.h"
|
||||
#include "include/cef_permission_handler.h"
|
||||
#include "include/cef_print_handler.h"
|
||||
#include "include/cef_render_handler.h"
|
||||
#include "include/cef_request_handler.h"
|
||||
#include "include/cef_v8context_handler.h"
|
||||
|
||||
///
|
||||
// Implement this interface to provide handler implementations.
|
||||
///
|
||||
/*--cef(source=client,no_debugct_check)--*/
|
||||
class CefClient : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefClient : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Return the handler for browser life span events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefLifeSpanHandler> GetLifeSpanHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefLifeSpanHandler> GetLifeSpanHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -73,8 +72,7 @@ public:
|
||||
// Return the handler for browser load status events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefLoadHandler> GetLoadHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefLoadHandler> GetLoadHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -82,8 +80,7 @@ public:
|
||||
// Return the handler for browser request events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefRequestHandler> GetRequestHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefRequestHandler> GetRequestHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -91,8 +88,7 @@ public:
|
||||
// Return the handler for browser display state events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefDisplayHandler> GetDisplayHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefDisplayHandler> GetDisplayHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -100,8 +96,7 @@ public:
|
||||
// Return the handler for focus events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefFocusHandler> GetFocusHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefFocusHandler> GetFocusHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -109,8 +104,7 @@ public:
|
||||
// Return the handler for keyboard events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefKeyboardHandler> GetKeyboardHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefKeyboardHandler> GetKeyboardHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -118,8 +112,7 @@ public:
|
||||
// Return the handler for context menu events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefMenuHandler> GetMenuHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefMenuHandler> GetMenuHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -127,8 +120,7 @@ public:
|
||||
// Return the handler for browser permission events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefPermissionHandler> GetPermissionHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefPermissionHandler> GetPermissionHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -136,8 +128,7 @@ public:
|
||||
// Return the handler for printing events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefPrintHandler> GetPrintHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefPrintHandler> GetPrintHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -145,8 +136,7 @@ public:
|
||||
// Return the handler for find result events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefFindHandler> GetFindHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefFindHandler> GetFindHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -154,8 +144,7 @@ public:
|
||||
// Return the handler for JavaScript dialog events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefJSDialogHandler> GetJSDialogHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefJSDialogHandler> GetJSDialogHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -163,8 +152,7 @@ public:
|
||||
// Return the handler for V8 context events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefV8ContextHandler> GetV8ContextHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefV8ContextHandler> GetV8ContextHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -172,8 +160,7 @@ public:
|
||||
// Return the handler for off-screen rendering events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefRenderHandler> GetRenderHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefRenderHandler> GetRenderHandler() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -181,10 +168,9 @@ public:
|
||||
// Return the handler for drag events.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefDragHandler> GetDragHandler()
|
||||
{
|
||||
virtual CefRefPtr<CefDragHandler> GetDragHandler() {
|
||||
return NULL;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _CEF_CLIENT_H
|
||||
#endif // CEF_INCLUDE_CEF_CLIENT_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_COMMAND_LINE_H
|
||||
#define _CEF_COMMAND_LINE_H
|
||||
#ifndef CEF_INCLUDE_CEF_COMMAND_LINE_H_
|
||||
#define CEF_INCLUDE_CEF_COMMAND_LINE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@ -52,11 +53,10 @@
|
||||
// used before CefInitialize() is called.
|
||||
///
|
||||
/*--cef(source=library,no_debugct_check)--*/
|
||||
class CefCommandLine : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefCommandLine : public virtual CefBase {
|
||||
public:
|
||||
typedef std::vector<CefString> ArgumentList;
|
||||
typedef std::map<CefString,CefString> SwitchMap;
|
||||
typedef std::map<CefString, CefString> SwitchMap;
|
||||
|
||||
///
|
||||
// Create a new CefCommandLine instance.
|
||||
@ -157,4 +157,4 @@ public:
|
||||
virtual void AppendArgument(const CefString& argument) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_COMMAND_LINE_H
|
||||
#endif // CEF_INCLUDE_CEF_COMMAND_LINE_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_CONTENT_FILTER_H
|
||||
#define _CEF_CONTENT_FILTER_H
|
||||
#ifndef CEF_INCLUDE_CEF_CONTENT_FILTER_H_
|
||||
#define CEF_INCLUDE_CEF_CONTENT_FILTER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefStreamReader;
|
||||
|
||||
@ -46,9 +47,8 @@ class CefStreamReader;
|
||||
// class will always be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefContentFilter : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefContentFilter : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Set |substitute_data| to the replacement for the data in |data| if data
|
||||
// should be modified.
|
||||
@ -66,4 +66,4 @@ public:
|
||||
virtual void Drain(CefRefPtr<CefStreamReader>& remainder) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_CONTENT_FILTER_H
|
||||
#endif // CEF_INCLUDE_CEF_CONTENT_FILTER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_COOKIE_H
|
||||
#define _CEF_COOKIE_H
|
||||
#ifndef CEF_INCLUDE_CEF_COOKIE_H_
|
||||
#define CEF_INCLUDE_CEF_COOKIE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefCookieVisitor;
|
||||
|
||||
@ -95,9 +96,8 @@ bool CefSetCookiePath(const CefString& path);
|
||||
// will always be called on the IO thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefCookieVisitor : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefCookieVisitor : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Method that will be called once for each cookie. |count| is the 0-based
|
||||
// index for the current cookie. |total| is the total number of cookies.
|
||||
@ -110,4 +110,4 @@ public:
|
||||
bool& deleteCookie) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_COOKIE_H
|
||||
#endif // CEF_INCLUDE_CEF_COOKIE_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DISPLAY_HANDLER_H
|
||||
#define _CEF_DISPLAY_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_DISPLAY_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_DISPLAY_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -47,9 +48,8 @@ class CefFrame;
|
||||
// The methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDisplayHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDisplayHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_handler_statustype_t StatusType;
|
||||
|
||||
///
|
||||
@ -115,4 +115,4 @@ public:
|
||||
int line) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_DISPLAY_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_DISPLAY_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DOM_H
|
||||
#define _CEF_DOM_H
|
||||
#ifndef CEF_INCLUDE_CEF_DOM_H_
|
||||
#define CEF_INCLUDE_CEF_DOM_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <map>
|
||||
|
||||
class CefDOMDocument;
|
||||
@ -49,9 +50,8 @@ class CefDOMNode;
|
||||
// be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDOMVisitor : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDOMVisitor : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Method executed for visiting the DOM. The document object passed to this
|
||||
// method represents a snapshot of the DOM at the time this method is
|
||||
@ -69,9 +69,8 @@ public:
|
||||
// be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDOMDocument : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDOMDocument : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_dom_document_type_t Type;
|
||||
|
||||
///
|
||||
@ -178,10 +177,9 @@ public:
|
||||
// called on the UI thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDOMNode : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
typedef std::map<CefString,CefString> AttributeMap;
|
||||
class CefDOMNode : public virtual CefBase {
|
||||
public:
|
||||
typedef std::map<CefString, CefString> AttributeMap;
|
||||
typedef cef_dom_node_type_t Type;
|
||||
|
||||
///
|
||||
@ -356,9 +354,8 @@ public:
|
||||
// be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDOMEvent : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDOMEvent : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_dom_event_category_t Category;
|
||||
typedef cef_dom_event_phase_t Phase;
|
||||
|
||||
@ -417,9 +414,8 @@ public:
|
||||
// will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDOMEventListener : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDOMEventListener : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called when an event is received. The event object passed to this method
|
||||
// contains a snapshot of the DOM at the time this method is executed. DOM
|
||||
@ -430,4 +426,4 @@ public:
|
||||
virtual void HandleEvent(CefRefPtr<CefDOMEvent> event) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_DOM_H
|
||||
#endif // CEF_INCLUDE_CEF_DOM_H_
|
||||
|
@ -34,19 +34,19 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DOWNLOAD_HANDLER_H
|
||||
#define _CEF_DOWNLOAD_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_DOWNLOAD_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_DOWNLOAD_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
///
|
||||
// Class used to handle file downloads. The methods of this class will always be
|
||||
// called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDownloadHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDownloadHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// A portion of the file contents have been received. This method will be
|
||||
// called multiple times until the download is complete. Return |true| to
|
||||
@ -62,4 +62,4 @@ public:
|
||||
virtual void Complete() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_DOWNLOAD_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_DOWNLOAD_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DRAG_DATA_H
|
||||
#define _CEF_DRAG_DATA_H
|
||||
#ifndef CEF_INCLUDE_CEF_DRAG_DATA_H_
|
||||
#define CEF_INCLUDE_CEF_DRAG_DATA_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <vector>
|
||||
|
||||
///
|
||||
@ -45,9 +46,8 @@
|
||||
// on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefDragData : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDragData : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Returns true if the drag data is a link.
|
||||
///
|
||||
@ -123,4 +123,4 @@ public:
|
||||
virtual bool GetFileNames(std::vector<CefString>& names) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_DRAG_DATA_H
|
||||
#endif // CEF_INCLUDE_CEF_DRAG_DATA_H_
|
||||
|
@ -34,11 +34,12 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_DRAG_HANDLER_H
|
||||
#define _CEF_DRAG_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_DRAG_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_DRAG_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_drag_data.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_drag_data.h"
|
||||
|
||||
class CefBrowser;
|
||||
|
||||
@ -47,9 +48,8 @@ class CefBrowser;
|
||||
// this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefDragHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefDragHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_drag_operations_mask_t DragOperationsMask;
|
||||
|
||||
///
|
||||
@ -75,4 +75,4 @@ public:
|
||||
DragOperationsMask mask) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_DRAG_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_DRAG_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FIND_HANDLER_H
|
||||
#define _CEF_FIND_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_FIND_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_FIND_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
|
||||
@ -46,9 +47,8 @@ class CefBrowser;
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefFindHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefFindHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called to report find results returned by CefBrowser::Find(). |identifer|
|
||||
// is the identifier passed to CefBrowser::Find(), |count| is the number of
|
||||
@ -66,4 +66,4 @@ public:
|
||||
bool finalUpdate) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_FIND_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_FIND_HANDLER_H_
|
||||
|
@ -34,11 +34,12 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FOCUS_HANDLER_H
|
||||
#define _CEF_FOCUS_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_FOCUS_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_FOCUS_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_dom.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_dom.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -48,9 +49,8 @@ class CefFrame;
|
||||
// this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefFocusHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefFocusHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_handler_focus_source_t FocusSource;
|
||||
|
||||
///
|
||||
@ -86,4 +86,4 @@ public:
|
||||
CefRefPtr<CefDOMNode> node) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_FOCUS_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_FOCUS_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_FRAME_H
|
||||
#define _CEF_FRAME_H
|
||||
#ifndef CEF_INCLUDE_CEF_FRAME_H_
|
||||
#define CEF_INCLUDE_CEF_FRAME_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefDOMVisitor;
|
||||
@ -50,9 +51,8 @@ class CefV8Context;
|
||||
// class may be called on any thread unless otherwise indicated in the comments.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefFrame : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefFrame : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Execute undo in this frame.
|
||||
///
|
||||
@ -130,10 +130,10 @@ public:
|
||||
virtual void LoadURL(const CefString& url) =0;
|
||||
|
||||
///
|
||||
// Load the contents of |string| with the optional dummy target |url|.
|
||||
// Load the contents of |string_val| with the optional dummy target |url|.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void LoadString(const CefString& string,
|
||||
virtual void LoadString(const CefString& string_val,
|
||||
const CefString& url) =0;
|
||||
|
||||
///
|
||||
@ -183,7 +183,7 @@ public:
|
||||
// only be called on the UI thread.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long long GetIdentifier() =0;
|
||||
virtual int64 GetIdentifier() =0;
|
||||
|
||||
///
|
||||
// Returns the parent of this frame or NULL if this is the main (top-level)
|
||||
@ -219,4 +219,4 @@ public:
|
||||
virtual CefRefPtr<CefV8Context> GetV8Context() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_FRAME_H
|
||||
#endif // CEF_INCLUDE_CEF_FRAME_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_JSDIALOG_HANDLER_H
|
||||
#define _CEF_JSDIALOG_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_JSDIALOG_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_JSDIALOG_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -47,9 +48,8 @@ class CefFrame;
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefJSDialogHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefJSDialogHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called to run a JavaScript alert message. Return false to display the
|
||||
// default alert or true if you displayed a custom alert.
|
||||
@ -85,4 +85,4 @@ public:
|
||||
CefString& result) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_JSDIALOG_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_JSDIALOG_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_KEYBOARD_HANDLER_H
|
||||
#define _CEF_KEYBOARD_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
|
||||
@ -46,9 +47,8 @@ class CefBrowser;
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefKeyboardHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefKeyboardHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_handler_keyevent_type_t KeyEventType;
|
||||
|
||||
///
|
||||
@ -74,4 +74,4 @@ public:
|
||||
bool isAfterJavaScript) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_KEYBOARD_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_LIFE_SPAN_HANDLER_H
|
||||
#define _CEF_LIFE_SPAN_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_LIFE_SPAN_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_LIFE_SPAN_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefClient;
|
||||
@ -47,9 +48,8 @@ class CefClient;
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefLifeSpanHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefLifeSpanHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called before a new popup window is created. The |parentBrowser| parameter
|
||||
// will point to the parent browser window. The |popupFeatures| parameter will
|
||||
@ -102,4 +102,4 @@ public:
|
||||
virtual void OnBeforeClose(CefRefPtr<CefBrowser> browser) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_LIFE_SPAN_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_LIFE_SPAN_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_LOAD_HANDLER_H
|
||||
#define _CEF_LOAD_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_LOAD_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_LOAD_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -47,9 +48,8 @@ class CefFrame;
|
||||
// methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefLoadHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefLoadHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_handler_errorcode_t ErrorCode;
|
||||
|
||||
///
|
||||
@ -92,4 +92,4 @@ public:
|
||||
CefString& errorText) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_LOAD_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_LOAD_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_MENU_HANDLER_H
|
||||
#define _CEF_MENU_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_MENU_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_MENU_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
|
||||
@ -46,9 +47,8 @@ class CefBrowser;
|
||||
// The methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefMenuHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefMenuHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_menu_id_t MenuId;
|
||||
|
||||
///
|
||||
@ -78,4 +78,4 @@ public:
|
||||
MenuId menuId) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_MENU_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_MENU_HANDLER_H_
|
||||
|
@ -28,8 +28,9 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_NPLUGIN_H
|
||||
#define _CEF_NPLUGIN_H
|
||||
#ifndef CEF_INCLUDE_CEF_NPLUGIN_H_
|
||||
#define CEF_INCLUDE_CEF_NPLUGIN_H_
|
||||
#pragma once
|
||||
|
||||
#include "internal/cef_nplugin_types.h"
|
||||
|
||||
@ -44,31 +45,25 @@
|
||||
// This class provides attribute information and entry point functions for a
|
||||
// plugin.
|
||||
///
|
||||
class CefPluginInfo : public cef_plugin_info_t
|
||||
{
|
||||
public:
|
||||
CefPluginInfo()
|
||||
{
|
||||
class CefPluginInfo : public cef_plugin_info_t {
|
||||
public:
|
||||
CefPluginInfo() {
|
||||
Init();
|
||||
}
|
||||
virtual ~CefPluginInfo()
|
||||
{
|
||||
virtual ~CefPluginInfo() {
|
||||
Reset();
|
||||
}
|
||||
|
||||
CefPluginInfo(const CefPluginInfo& r)
|
||||
{
|
||||
CefPluginInfo(const CefPluginInfo& r) { // NOLINT(runtime/explicit)
|
||||
Init();
|
||||
*this = r;
|
||||
}
|
||||
CefPluginInfo(const cef_plugin_info_t& r)
|
||||
{
|
||||
CefPluginInfo(const cef_plugin_info_t& r) { // NOLINT(runtime/explicit)
|
||||
Init();
|
||||
*this = r;
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
void Reset() {
|
||||
cef_string_clear(&unique_name);
|
||||
cef_string_clear(&display_name);
|
||||
cef_string_clear(&version);
|
||||
@ -79,24 +74,20 @@ public:
|
||||
Init();
|
||||
}
|
||||
|
||||
void Attach(const cef_plugin_info_t& r)
|
||||
{
|
||||
void Attach(const cef_plugin_info_t& r) {
|
||||
Reset();
|
||||
*static_cast<cef_plugin_info_t*>(this) = r;
|
||||
}
|
||||
|
||||
void Detach()
|
||||
{
|
||||
void Detach() {
|
||||
Init();
|
||||
}
|
||||
|
||||
CefPluginInfo& operator=(const CefPluginInfo& r)
|
||||
{
|
||||
CefPluginInfo& operator=(const CefPluginInfo& r) {
|
||||
return operator=(static_cast<const cef_plugin_info_t&>(r));
|
||||
}
|
||||
|
||||
CefPluginInfo& operator=(const cef_plugin_info_t& r)
|
||||
{
|
||||
CefPluginInfo& operator=(const cef_plugin_info_t& r) {
|
||||
cef_string_copy(r.unique_name.str, r.unique_name.length, &unique_name);
|
||||
cef_string_copy(r.display_name.str, r.display_name.length, &display_name);
|
||||
cef_string_copy(r.version.str, r.version.length, &version);
|
||||
@ -114,9 +105,8 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
protected:
|
||||
void Init()
|
||||
{
|
||||
protected:
|
||||
void Init() {
|
||||
memset(static_cast<cef_plugin_info_t*>(this), 0, sizeof(cef_plugin_info_t));
|
||||
}
|
||||
};
|
||||
@ -126,4 +116,4 @@ protected:
|
||||
///
|
||||
bool CefRegisterPlugin(const CefPluginInfo& plugin_info);
|
||||
|
||||
#endif // _CEF_NPLUGIN_H
|
||||
#endif // CEF_INCLUDE_CEF_NPLUGIN_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_ORIGIN_WHITELIST_H
|
||||
#define _CEF_ORIGIN_WHITELIST_H
|
||||
#ifndef CEF_INCLUDE_CEF_ORIGIN_WHITELIST_H_
|
||||
#define CEF_INCLUDE_CEF_ORIGIN_WHITELIST_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
|
||||
///
|
||||
@ -95,4 +96,4 @@ bool CefRemoveCrossOriginWhitelistEntry(const CefString& source_origin,
|
||||
/*--cef()--*/
|
||||
bool CefClearCrossOriginWhitelist();
|
||||
|
||||
#endif // _CEF_ORIGIN_WHITELIST_H
|
||||
#endif // CEF_INCLUDE_CEF_ORIGIN_WHITELIST_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PERMISSION_HANDLER_H
|
||||
#define _CEF_PERMISSION_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_PERMISSION_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_PERMISSION_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -47,9 +48,8 @@ class CefFrame;
|
||||
// The methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefPermissionHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefPermissionHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called on the UI thread before a script extension is loaded.
|
||||
// Return false to let the extension load normally.
|
||||
@ -57,10 +57,9 @@ public:
|
||||
/*--cef()--*/
|
||||
virtual bool OnBeforeScriptExtensionLoad(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame,
|
||||
const CefString& extensionName)
|
||||
{
|
||||
const CefString& extensionName) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _CEF_PERMISSION_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_PERMISSION_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PRINT_HANDLER_H
|
||||
#define _CEF_PRINT_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_PRINT_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_PRINT_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -47,9 +48,8 @@ class CefFrame;
|
||||
// this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefPrintHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefPrintHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called to allow customization of standard print options before the print
|
||||
// dialog is displayed. |printOptions| allows specification of paper size,
|
||||
@ -89,4 +89,4 @@ public:
|
||||
CefString& bottomRight) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_PRINT_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_PRINT_HANDLER_H_
|
||||
|
@ -34,18 +34,18 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_PROXY_HANDLER_H
|
||||
#define _CEF_PROXY_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_PROXY_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_PROXY_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
///
|
||||
// Implement this interface to handle proxy resolution events.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefProxyHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefProxyHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called to retrieve proxy information for the specified |url|.
|
||||
///
|
||||
@ -54,4 +54,4 @@ public:
|
||||
CefProxyInfo& proxy_info) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_PROXY_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_PROXY_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_RENDER_HANDLER_H
|
||||
#define _CEF_RENDER_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_RENDER_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_RENDER_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <vector>
|
||||
|
||||
class CefBrowser;
|
||||
@ -47,9 +48,8 @@ class CefBrowser;
|
||||
// The methods of this class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefRenderHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefRenderHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_paint_element_type_t PaintElementType;
|
||||
typedef std::vector<CefRect> RectList;
|
||||
|
||||
@ -117,4 +117,4 @@ public:
|
||||
CefCursorHandle cursor) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_RENDER_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_RENDER_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_REQUEST_H
|
||||
#define _CEF_REQUEST_H
|
||||
#ifndef CEF_INCLUDE_CEF_REQUEST_H_
|
||||
#define CEF_INCLUDE_CEF_REQUEST_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@ -49,10 +50,9 @@ class CefPostDataElement;
|
||||
// called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefRequest : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
typedef std::multimap<CefString,CefString> HeaderMap;
|
||||
class CefRequest : public virtual CefBase {
|
||||
public:
|
||||
typedef std::multimap<CefString, CefString> HeaderMap;
|
||||
typedef cef_weburlrequest_flags_t RequestFlags;
|
||||
|
||||
///
|
||||
@ -146,9 +146,8 @@ public:
|
||||
// class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefPostData : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefPostData : public virtual CefBase {
|
||||
public:
|
||||
typedef std::vector<CefRefPtr<CefPostDataElement> > ElementVector;
|
||||
|
||||
///
|
||||
@ -195,9 +194,8 @@ public:
|
||||
// methods of this class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefPostDataElement : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefPostDataElement : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Post data elements may represent either bytes or files.
|
||||
///
|
||||
@ -254,4 +252,4 @@ public:
|
||||
virtual size_t GetBytes(size_t size, void* bytes) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_REQUEST_H
|
||||
#endif // CEF_INCLUDE_CEF_REQUEST_H_
|
||||
|
@ -34,15 +34,16 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_REQUEST_HANDLER_H
|
||||
#define _CEF_REQUEST_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_REQUEST_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_REQUEST_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_download_handler.h"
|
||||
#include "cef_content_filter.h"
|
||||
#include "cef_response.h"
|
||||
#include "cef_request.h"
|
||||
#include "cef_stream.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/cef_content_filter.h"
|
||||
#include "include/cef_response.h"
|
||||
#include "include/cef_request.h"
|
||||
#include "include/cef_stream.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -52,9 +53,8 @@ class CefFrame;
|
||||
// methods of this class will be called on the thread indicated.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefRequestHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefRequestHandler : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_handler_navtype_t NavType;
|
||||
|
||||
///
|
||||
@ -157,4 +157,4 @@ public:
|
||||
CefString& password) { return false; }
|
||||
};
|
||||
|
||||
#endif // _CEF_REQUEST_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_REQUEST_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_RESPONSE_H
|
||||
#define _CEF_RESPONSE_H
|
||||
#ifndef CEF_INCLUDE_CEF_RESPONSE_H_
|
||||
#define CEF_INCLUDE_CEF_RESPONSE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <map>
|
||||
|
||||
///
|
||||
@ -45,10 +46,9 @@
|
||||
// called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefResponse : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
typedef std::multimap<CefString,CefString> HeaderMap;
|
||||
class CefResponse : public virtual CefBase {
|
||||
public:
|
||||
typedef std::multimap<CefString, CefString> HeaderMap;
|
||||
|
||||
///
|
||||
// Get the response status code.
|
||||
@ -101,4 +101,4 @@ public:
|
||||
virtual void SetHeaderMap(const HeaderMap& headerMap) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_RESPONSE_H
|
||||
#endif // CEF_INCLUDE_CEF_RESPONSE_H_
|
||||
|
@ -30,12 +30,12 @@
|
||||
//
|
||||
// The contents of this file are a modified extract of base/task.h
|
||||
|
||||
#ifndef _CEF_RUNNABLE_H
|
||||
#define _CEF_RUNNABLE_H
|
||||
#ifndef CEF_INCLUDE_CEF_RUNNABLE_H_
|
||||
#define CEF_INCLUDE_CEF_RUNNABLE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_task.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_task.h"
|
||||
#ifdef BUILDING_CEF_SHARED
|
||||
#include "base/tuple.h"
|
||||
#else
|
||||
@ -343,4 +343,4 @@ inline CefRefPtr<CefTask> NewCefRunnableFunction(Function function,
|
||||
function, MakeTuple(a, b, c, d, e, f, g, h));
|
||||
}
|
||||
|
||||
#endif // _CEF_RUNNABLE_H
|
||||
#endif // CEF_INCLUDE_CEF_RUNNABLE_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_SCHEME_H
|
||||
#define _CEF_SCHEME_H
|
||||
#ifndef CEF_INCLUDE_CEF_SCHEME_H_
|
||||
#define CEF_INCLUDE_CEF_SCHEME_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefRequest;
|
||||
@ -126,9 +127,8 @@ bool CefClearSchemeHandlerFactories();
|
||||
// always be called on the IO thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefSchemeHandlerFactory : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefSchemeHandlerFactory : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Return a new scheme handler instance to handle the request. |browser| will
|
||||
// be the browser window that initiated the request. If the request was
|
||||
@ -145,9 +145,8 @@ public:
|
||||
// requests. The methods of this class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefSchemeHandlerCallback : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefSchemeHandlerCallback : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Notify that header information is now available for retrieval.
|
||||
///
|
||||
@ -172,9 +171,8 @@ public:
|
||||
// this class will always be called on the IO thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefSchemeHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefSchemeHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Begin processing the request. To handle the request return true and call
|
||||
// HeadersAvailable() once the response header information is available
|
||||
@ -220,4 +218,4 @@ public:
|
||||
virtual void Cancel() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_SCHEME_H
|
||||
#endif // CEF_INCLUDE_CEF_SCHEME_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_STORAGE_H
|
||||
#define _CEF_STORAGE_H
|
||||
#ifndef CEF_INCLUDE_CEF_STORAGE_H_
|
||||
#define CEF_INCLUDE_CEF_STORAGE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefStorageVisitor;
|
||||
|
||||
@ -91,9 +92,8 @@ bool CefSetStoragePath(CefStorageType type, const CefString& path);
|
||||
// always be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefStorageVisitor : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefStorageVisitor : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Method that will be called once for each key/value data pair in storage.
|
||||
// |count| is the 0-based index for the current pair. |total| is the total
|
||||
@ -107,4 +107,4 @@ public:
|
||||
int total, bool& deleteData) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_STORAGE_H
|
||||
#endif // CEF_INCLUDE_CEF_STORAGE_H_
|
||||
|
@ -34,19 +34,18 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_STREAM_H
|
||||
#define _CEF_STREAM_H
|
||||
#ifndef CEF_INCLUDE_CEF_STREAM_H_
|
||||
#define CEF_INCLUDE_CEF_STREAM_H_
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
///
|
||||
// Interface the client can implement to provide a custom stream reader. The
|
||||
// methods of this class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefReadHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefReadHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Read raw binary data.
|
||||
///
|
||||
@ -55,16 +54,17 @@ public:
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET.
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on
|
||||
// failure.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int Seek(long offset, int whence) =0;
|
||||
virtual int Seek(int64 offset, int whence) =0;
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long Tell() =0;
|
||||
virtual int64 Tell() =0;
|
||||
|
||||
///
|
||||
// Return non-zero if at end of file.
|
||||
@ -79,9 +79,8 @@ public:
|
||||
// called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefStreamReader : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefStreamReader : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Create a new CefStreamReader object from a file.
|
||||
///
|
||||
@ -111,13 +110,13 @@ public:
|
||||
// failure.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int Seek(long offset, int whence) =0;
|
||||
virtual int Seek(int64 offset, int whence) =0;
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long Tell() =0;
|
||||
virtual int64 Tell() =0;
|
||||
|
||||
///
|
||||
// Return non-zero if at end of file.
|
||||
@ -132,9 +131,8 @@ public:
|
||||
// methods of this class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefWriteHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefWriteHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Write raw binary data.
|
||||
///
|
||||
@ -143,16 +141,17 @@ public:
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET.
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on
|
||||
// failure.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int Seek(long offset, int whence) =0;
|
||||
virtual int Seek(int64 offset, int whence) =0;
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long Tell() =0;
|
||||
virtual int64 Tell() =0;
|
||||
|
||||
///
|
||||
// Flush the stream.
|
||||
@ -167,9 +166,8 @@ public:
|
||||
// on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefStreamWriter : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefStreamWriter : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Create a new CefStreamWriter object for a file.
|
||||
///
|
||||
@ -190,16 +188,17 @@ public:
|
||||
|
||||
///
|
||||
// Seek to the specified offset position. |whence| may be any one of
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET.
|
||||
// SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on
|
||||
// failure.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int Seek(long offset, int whence) =0;
|
||||
virtual int Seek(int64 offset, int whence) =0;
|
||||
|
||||
///
|
||||
// Return the current offset position.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long Tell() =0;
|
||||
virtual int64 Tell() =0;
|
||||
|
||||
///
|
||||
// Flush the stream.
|
||||
@ -208,4 +207,4 @@ public:
|
||||
virtual int Flush() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_STREAM_H
|
||||
#endif // CEF_INCLUDE_CEF_STREAM_H_
|
||||
|
@ -34,10 +34,10 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_TASK_H
|
||||
#define _CEF_TASK_H
|
||||
#ifndef CEF_INCLUDE_CEF_TASK_H_
|
||||
#define CEF_INCLUDE_CEF_TASK_H_
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefTask;
|
||||
|
||||
@ -69,7 +69,7 @@ bool CefPostTask(CefThreadId threadId, CefRefPtr<CefTask> task);
|
||||
///
|
||||
/*--cef()--*/
|
||||
bool CefPostDelayedTask(CefThreadId threadId, CefRefPtr<CefTask> task,
|
||||
long delay_ms);
|
||||
int64 delay_ms);
|
||||
|
||||
|
||||
///
|
||||
@ -77,9 +77,8 @@ bool CefPostDelayedTask(CefThreadId threadId, CefRefPtr<CefTask> task,
|
||||
// be called on any thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefTask : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefTask : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Method that will be executed. |threadId| is the thread executing the call.
|
||||
///
|
||||
@ -87,4 +86,4 @@ public:
|
||||
virtual void Execute(CefThreadId threadId) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_TASK_H
|
||||
#endif // CEF_INCLUDE_CEF_TASK_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_URL_H
|
||||
#define _CEF_URL_H
|
||||
#ifndef CEF_INCLUDE_CEF_URL_H_
|
||||
#define CEF_INCLUDE_CEF_URL_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
///
|
||||
// Parse the specified |url| into its component parts.
|
||||
@ -56,4 +57,4 @@ bool CefParseURL(const CefString& url,
|
||||
bool CefCreateURL(const CefURLParts& parts,
|
||||
CefString& url);
|
||||
|
||||
#endif // _CEF_URL_H
|
||||
#endif // CEF_INCLUDE_CEF_URL_H_
|
||||
|
@ -35,10 +35,11 @@
|
||||
//
|
||||
|
||||
|
||||
#ifndef _CEF_V8_H
|
||||
#define _CEF_V8_H
|
||||
#ifndef CEF_INCLUDE_CEF_V8_H_
|
||||
#define CEF_INCLUDE_CEF_V8_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
#include <vector>
|
||||
|
||||
class CefBrowser;
|
||||
@ -116,9 +117,8 @@ bool CefRegisterExtension(const CefString& extension_name,
|
||||
// Class that encapsulates a V8 context handle.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefV8Context : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8Context : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Returns the current (top) context object in the V8 context stack.
|
||||
///
|
||||
@ -188,9 +188,8 @@ typedef std::vector<CefRefPtr<CefV8Value> > CefV8ValueList;
|
||||
// of this class will always be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefV8Handler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8Handler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Handle execution of the function identified by |name|. |object| is the
|
||||
// receiver ('this' object) of the function. |arguments| is the list of
|
||||
@ -212,9 +211,8 @@ public:
|
||||
// of this class will always be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefV8Accessor : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8Accessor : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Handle retrieval the accessor value identified by |name|. |object| is the
|
||||
// receiver ('this' object) of the accessor. If retrieval succeeds set
|
||||
@ -246,9 +244,8 @@ public:
|
||||
// Class representing a V8 exception.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefV8Exception : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8Exception : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Returns the exception message.
|
||||
///
|
||||
@ -309,9 +306,8 @@ public:
|
||||
// called on the UI thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefV8Value : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8Value : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_v8_accesscontrol_t AccessControl;
|
||||
typedef cef_v8_propertyattribute_t PropertyAttribute;
|
||||
|
||||
@ -599,4 +595,4 @@ public:
|
||||
bool rethrow_exception) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_V8_H
|
||||
#endif // CEF_INCLUDE_CEF_V8_H_
|
||||
|
@ -34,11 +34,12 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_V8CONTEXT_HANDLER_H
|
||||
#define _CEF_V8CONTEXT_HANDLER_H
|
||||
#ifndef CEF_INCLUDE_CEF_V8CONTEXT_HANDLER_H_
|
||||
#define CEF_INCLUDE_CEF_V8CONTEXT_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "cef_v8.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_v8.h"
|
||||
|
||||
class CefBrowser;
|
||||
class CefFrame;
|
||||
@ -48,9 +49,8 @@ class CefFrame;
|
||||
// class will be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefV8ContextHandler : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefV8ContextHandler : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Called immediately after the V8 context for a frame has been created. To
|
||||
// retrieve the JavaScript 'window' object use the CefV8Context::GetGlobal()
|
||||
@ -71,4 +71,4 @@ public:
|
||||
CefRefPtr<CefV8Context> context) {}
|
||||
};
|
||||
|
||||
#endif // _CEF_V8CONTEXT_HANDLER_H
|
||||
#endif // CEF_INCLUDE_CEF_V8CONTEXT_HANDLER_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_WEB_URLREQUEST_H
|
||||
#define _CEF_WEB_URLREQUEST_H
|
||||
#ifndef CEF_INCLUDE_CEF_WEB_URLREQUEST_H_
|
||||
#define CEF_INCLUDE_CEF_WEB_URLREQUEST_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefRequest;
|
||||
class CefResponse;
|
||||
@ -49,9 +50,8 @@ class CefWebURLRequestClient;
|
||||
// methods of this class may be called on any thread.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefWebURLRequest : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefWebURLRequest : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_weburlrequest_state_t RequestState;
|
||||
|
||||
///
|
||||
@ -80,9 +80,8 @@ public:
|
||||
// methods of this class will always be called on the UI thread.
|
||||
///
|
||||
/*--cef(source=client)--*/
|
||||
class CefWebURLRequestClient : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefWebURLRequestClient : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_weburlrequest_state_t RequestState;
|
||||
typedef cef_handler_errorcode_t ErrorCode;
|
||||
|
||||
@ -133,4 +132,4 @@ public:
|
||||
ErrorCode errorCode) =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_WEB_URLREQUEST_H
|
||||
#endif // CEF_INCLUDE_CEF_WEB_URLREQUEST_H_
|
||||
|
@ -34,10 +34,11 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_XML_READER_H
|
||||
#define _CEF_XML_READER_H
|
||||
#ifndef CEF_INCLUDE_CEF_XML_READER_H_
|
||||
#define CEF_INCLUDE_CEF_XML_READER_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefStreamReader;
|
||||
|
||||
@ -47,9 +48,8 @@ class CefStreamReader;
|
||||
// the object.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefXmlReader : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefXmlReader : public virtual CefBase {
|
||||
public:
|
||||
typedef cef_xml_encoding_type_t EncodingType;
|
||||
typedef cef_xml_node_type_t NodeType;
|
||||
|
||||
@ -266,4 +266,4 @@ public:
|
||||
virtual bool MoveToCarryingElement() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_XML_READER_H
|
||||
#endif // CEF_INCLUDE_CEF_XML_READER_H_
|
||||
|
@ -34,10 +34,10 @@
|
||||
// tools directory for more information.
|
||||
//
|
||||
|
||||
#ifndef _CEF_ZIP_READER_H
|
||||
#define _CEF_ZIP_READER_H
|
||||
#ifndef CEF_INCLUDE_CEF_ZIP_READER_H_
|
||||
#define CEF_INCLUDE_CEF_ZIP_READER_H_
|
||||
|
||||
#include "cef_base.h"
|
||||
#include "include/cef_base.h"
|
||||
|
||||
class CefStreamReader;
|
||||
|
||||
@ -47,9 +47,8 @@ class CefStreamReader;
|
||||
// the object.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefZipReader : public virtual CefBase
|
||||
{
|
||||
public:
|
||||
class CefZipReader : public virtual CefBase {
|
||||
public:
|
||||
///
|
||||
// Create a new CefZipReader object. The returned object's methods can only
|
||||
// be called from the thread that created the object.
|
||||
@ -99,7 +98,7 @@ public:
|
||||
// Returns the uncompressed size of the file.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long GetFileSize() =0;
|
||||
virtual int64 GetFileSize() =0;
|
||||
|
||||
///
|
||||
// Returns the last modified timestamp for the file.
|
||||
@ -131,7 +130,7 @@ public:
|
||||
// Returns the current offset in the uncompressed file contents.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual long Tell() =0;
|
||||
virtual int64 Tell() =0;
|
||||
|
||||
///
|
||||
// Returns true if at end of the file contents.
|
||||
@ -140,4 +139,4 @@ public:
|
||||
virtual bool Eof() =0;
|
||||
};
|
||||
|
||||
#endif // _CEF_ZIP_READER_H
|
||||
#endif // CEF_INCLUDE_CEF_ZIP_READER_H_
|
||||
|
@ -28,8 +28,9 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_BUILD_H
|
||||
#define _CEF_BUILD_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_BUILD_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_BUILD_H_
|
||||
#pragma once
|
||||
|
||||
#if defined(BUILDING_CEF_SHARED)
|
||||
|
||||
@ -125,4 +126,4 @@
|
||||
|
||||
#endif // !BUILDING_CEF_SHARED
|
||||
|
||||
#endif // _CEF_BUILD_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_BUILD_H_
|
||||
|
@ -28,10 +28,11 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_EXPORT_H
|
||||
#define _CEF_EXPORT_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_build.h"
|
||||
#include "include/internal/cef_build.h"
|
||||
|
||||
#if defined(COMPILER_MSVC)
|
||||
|
||||
@ -51,4 +52,4 @@
|
||||
|
||||
#endif // COMPILER_GCC
|
||||
|
||||
#endif // _CEF_EXPORT_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_
|
||||
|
@ -28,45 +28,39 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_LINUX_H
|
||||
#define _CEF_LINUX_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_LINUX_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_LINUX_H_
|
||||
#pragma once
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
#include <pthread.h>
|
||||
#include "cef_types_linux.h"
|
||||
#include "cef_types_wrappers.h"
|
||||
#include "include/internal/cef_types_linux.h"
|
||||
#include "include/internal/cef_types_wrappers.h"
|
||||
|
||||
// Atomic increment and decrement.
|
||||
inline long CefAtomicIncrement(long volatile *pDest)
|
||||
{
|
||||
inline long CefAtomicIncrement(long volatile *pDest) { // NOLINT(runtime/int)
|
||||
return __sync_add_and_fetch(pDest, 1);
|
||||
}
|
||||
inline long CefAtomicDecrement(long volatile *pDest)
|
||||
{
|
||||
inline long CefAtomicDecrement(long volatile *pDest) { // NOLINT(runtime/int)
|
||||
return __sync_sub_and_fetch(pDest, 1);
|
||||
}
|
||||
|
||||
// Critical section wrapper.
|
||||
class CefCriticalSection
|
||||
{
|
||||
public:
|
||||
CefCriticalSection()
|
||||
{
|
||||
class CefCriticalSection {
|
||||
public:
|
||||
CefCriticalSection() {
|
||||
pthread_mutexattr_init(&attr_);
|
||||
pthread_mutexattr_settype(&attr_, PTHREAD_MUTEX_RECURSIVE);
|
||||
pthread_mutex_init(&lock_, &attr_);
|
||||
}
|
||||
virtual ~CefCriticalSection()
|
||||
{
|
||||
virtual ~CefCriticalSection() {
|
||||
pthread_mutex_destroy(&lock_);
|
||||
pthread_mutexattr_destroy(&attr_);
|
||||
}
|
||||
void Lock()
|
||||
{
|
||||
void Lock() {
|
||||
pthread_mutex_lock(&lock_);
|
||||
}
|
||||
void Unlock()
|
||||
{
|
||||
void Unlock() {
|
||||
pthread_mutex_unlock(&lock_);
|
||||
}
|
||||
|
||||
@ -84,25 +78,23 @@ struct CefWindowInfoTraits {
|
||||
static inline void init(struct_type* s) {}
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->m_Widget = src->m_Widget;
|
||||
target->m_ParentWidget = src->m_ParentWidget;
|
||||
}
|
||||
};
|
||||
|
||||
// Class representing window information.
|
||||
class CefWindowInfo : public CefStructBase<CefWindowInfoTraits>
|
||||
{
|
||||
public:
|
||||
class CefWindowInfo : public CefStructBase<CefWindowInfoTraits> {
|
||||
public:
|
||||
typedef CefStructBase<CefWindowInfoTraits> parent;
|
||||
|
||||
CefWindowInfo() : parent() {}
|
||||
CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
|
||||
CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
|
||||
explicit CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
|
||||
explicit CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
|
||||
|
||||
void SetAsChild(CefWindowHandle ParentWidget)
|
||||
{
|
||||
void SetAsChild(CefWindowHandle ParentWidget) {
|
||||
m_ParentWidget = ParentWidget;
|
||||
}
|
||||
};
|
||||
@ -113,8 +105,8 @@ struct CefPrintInfoTraits {
|
||||
static inline void init(struct_type* s) {}
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->m_Scale = src->m_Scale;
|
||||
}
|
||||
};
|
||||
@ -124,4 +116,4 @@ typedef CefStructBase<CefPrintInfoTraits> CefPrintInfo;
|
||||
|
||||
#endif // OS_LINUX
|
||||
|
||||
#endif // _CEF_LINUX_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_LINUX_H_
|
||||
|
@ -28,21 +28,20 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_MAC_H
|
||||
#define _CEF_MAC_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_MAC_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_MAC_H_
|
||||
#pragma once
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#include <pthread.h>
|
||||
#include "cef_types_mac.h"
|
||||
#include "cef_types_wrappers.h"
|
||||
#include "include/internal/cef_types_mac.h"
|
||||
#include "include/internal/cef_types_wrappers.h"
|
||||
|
||||
// Atomic increment and decrement.
|
||||
inline long CefAtomicIncrement(long volatile *pDest)
|
||||
{
|
||||
inline long CefAtomicIncrement(long volatile *pDest) { // NOLINT(runtime/int)
|
||||
return __sync_add_and_fetch(pDest, 1);
|
||||
}
|
||||
inline long CefAtomicDecrement(long volatile *pDest)
|
||||
{
|
||||
inline long CefAtomicDecrement(long volatile *pDest) { // NOLINT(runtime/int)
|
||||
return __sync_sub_and_fetch(pDest, 1);
|
||||
}
|
||||
|
||||
@ -51,26 +50,21 @@ inline long CefAtomicDecrement(long volatile *pDest)
|
||||
#define CefCursorHandle cef_cursor_handle_t
|
||||
|
||||
// Critical section wrapper.
|
||||
class CefCriticalSection
|
||||
{
|
||||
public:
|
||||
CefCriticalSection()
|
||||
{
|
||||
class CefCriticalSection {
|
||||
public:
|
||||
CefCriticalSection() {
|
||||
pthread_mutexattr_init(&attr_);
|
||||
pthread_mutexattr_settype(&attr_, PTHREAD_MUTEX_RECURSIVE);
|
||||
pthread_mutex_init(&lock_, &attr_);
|
||||
}
|
||||
virtual ~CefCriticalSection()
|
||||
{
|
||||
virtual ~CefCriticalSection() {
|
||||
pthread_mutex_destroy(&lock_);
|
||||
pthread_mutexattr_destroy(&attr_);
|
||||
}
|
||||
void Lock()
|
||||
{
|
||||
void Lock() {
|
||||
pthread_mutex_lock(&lock_);
|
||||
}
|
||||
void Unlock()
|
||||
{
|
||||
void Unlock() {
|
||||
pthread_mutex_unlock(&lock_);
|
||||
}
|
||||
|
||||
@ -83,13 +77,12 @@ struct CefWindowInfoTraits {
|
||||
|
||||
static inline void init(struct_type* s) {}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->m_windowName);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->m_View = src->m_View;
|
||||
target->m_ParentView = src->m_ParentView;
|
||||
cef_string_set(src->m_windowName.str, src->m_windowName.length,
|
||||
@ -103,18 +96,16 @@ struct CefWindowInfoTraits {
|
||||
};
|
||||
|
||||
// Class representing window information.
|
||||
class CefWindowInfo : public CefStructBase<CefWindowInfoTraits>
|
||||
{
|
||||
public:
|
||||
class CefWindowInfo : public CefStructBase<CefWindowInfoTraits> {
|
||||
public:
|
||||
typedef CefStructBase<CefWindowInfoTraits> parent;
|
||||
|
||||
CefWindowInfo() : parent() {}
|
||||
CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
|
||||
CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
|
||||
explicit CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
|
||||
explicit CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
|
||||
|
||||
void SetAsChild(CefWindowHandle ParentView, int x, int y, int width,
|
||||
int height)
|
||||
{
|
||||
int height) {
|
||||
m_ParentView = ParentView;
|
||||
m_x = x;
|
||||
m_y = y;
|
||||
@ -130,8 +121,8 @@ struct CefPrintInfoTraits {
|
||||
static inline void init(struct_type* s) {}
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->m_Scale = src->m_Scale;
|
||||
}
|
||||
};
|
||||
@ -141,4 +132,4 @@ typedef CefStructBase<CefPrintInfoTraits> CefPrintInfo;
|
||||
|
||||
#endif // OS_MACOSX
|
||||
|
||||
#endif // _CEF_MAC_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_MAC_H_
|
||||
|
@ -28,11 +28,12 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_NPLUGIN_TYPES_H
|
||||
#define _CEF_NPLUGIN_TYPES_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_NPLUGIN_TYPES_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_NPLUGIN_TYPES_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_export.h"
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
#include "third_party/npapi/bindings/npapi.h"
|
||||
#include "third_party/npapi/bindings/nphostapi.h"
|
||||
|
||||
@ -86,4 +87,4 @@ typedef struct _cef_plugin_info_t {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_NPLUGIN_TYPES_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_NPLUGIN_TYPES_H_
|
||||
|
@ -29,8 +29,9 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_PTR_H
|
||||
#define _CEF_PTR_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_PTR_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_PTR_H_
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@ -148,7 +149,7 @@ class CefRefPtr {
|
||||
CefRefPtr() : ptr_(NULL) {
|
||||
}
|
||||
|
||||
CefRefPtr(T* p) : ptr_(p) {
|
||||
CefRefPtr(T* p) : ptr_(p) { // NOLINT(runtime/explicit)
|
||||
if (ptr_)
|
||||
ptr_->AddRef();
|
||||
}
|
||||
@ -188,11 +189,11 @@ class CefRefPtr {
|
||||
}
|
||||
|
||||
void swap(CefRefPtr<T>& r) {
|
||||
swap(&r.ptr_);
|
||||
swap(&r.ptr_); // NOLINT(build/include_what_you_use)
|
||||
}
|
||||
|
||||
private:
|
||||
T* ptr_;
|
||||
};
|
||||
|
||||
#endif // _CEF_PTR_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_PTR_H_
|
||||
|
@ -27,27 +27,28 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_H
|
||||
#define _CEF_STRING_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_H_
|
||||
#pragma once
|
||||
|
||||
// The CEF interface is built with one string type as the default. Comment out
|
||||
// all but one of the CEF_STRING_TYPE_* defines below to specify the default.
|
||||
// If you change the default you MUST recompile all of CEF.
|
||||
|
||||
// Build with the UTF8 string type as default.
|
||||
//#define CEF_STRING_TYPE_UTF8 1
|
||||
// #define CEF_STRING_TYPE_UTF8 1
|
||||
|
||||
// Build with the UTF16 string type as default.
|
||||
#define CEF_STRING_TYPE_UTF16 1
|
||||
|
||||
// Build with the wide string type as default.
|
||||
//#define CEF_STRING_TYPE_WIDE 1
|
||||
// #define CEF_STRING_TYPE_WIDE 1
|
||||
|
||||
|
||||
#include "cef_string_types.h"
|
||||
#include "include/internal/cef_string_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "cef_string_wrappers.h"
|
||||
#include "include/internal/cef_string_wrappers.h"
|
||||
#if defined(CEF_STRING_TYPE_UTF16)
|
||||
typedef CefStringUTF16 CefString;
|
||||
#elif defined(CEF_STRING_TYPE_UTF8)
|
||||
@ -109,4 +110,4 @@ typedef cef_string_userfree_wide_t cef_string_userfree_t;
|
||||
#error Please choose a string type.
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STRING_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_H_
|
||||
|
@ -27,11 +27,12 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_LIST_H
|
||||
#define _CEF_STRING_LIST_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_export.h"
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -84,4 +85,4 @@ CEF_EXPORT cef_string_list_t cef_string_list_copy(cef_string_list_t list);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STRING_LIST_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_
|
||||
|
@ -27,11 +27,12 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_MAP_H
|
||||
#define _CEF_STRING_MAP_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_export.h"
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -93,4 +94,4 @@ CEF_EXPORT void cef_string_map_free(cef_string_map_t map);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STRING_MAP_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_
|
||||
|
@ -27,11 +27,12 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_MULTIMAP_H
|
||||
#define _CEF_STRING_MULTIMAP_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_export.h"
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -101,4 +102,4 @@ CEF_EXPORT void cef_string_multimap_free(cef_string_multimap_t map);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STRING_MULTIMAP_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_
|
||||
|
@ -27,8 +27,9 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_TYPES_T
|
||||
#define _CEF_STRING_TYPES_T
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_TYPES_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_TYPES_H_
|
||||
#pragma once
|
||||
|
||||
// CEF provides functions for converting between UTF-8, -16 and -32 strings.
|
||||
// CEF string types are safe for reading from multiple threads but not for
|
||||
@ -39,8 +40,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_build.h"
|
||||
#include "cef_export.h"
|
||||
#include "include/internal/cef_build.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include <stddef.h>
|
||||
|
||||
// CEF character type definitions. wchar_t is 2 bytes on Windows and 4 bytes on
|
||||
@ -49,7 +50,7 @@ extern "C" {
|
||||
#if defined(OS_WIN)
|
||||
typedef wchar_t char16;
|
||||
#else // !OS_WIN
|
||||
typedef unsigned short char16;
|
||||
typedef unsigned short char16; // NOLINT (runtime/int)
|
||||
#ifndef WCHAR_T_IS_UTF32
|
||||
#define WCHAR_T_IS_UTF32
|
||||
#endif // WCHAR_T_IS_UTF32
|
||||
@ -200,4 +201,4 @@ CEF_EXPORT void cef_string_userfree_utf16_free(cef_string_userfree_utf16_t str);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_STRING_TYPES_T
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_TYPES_H_
|
||||
|
@ -27,15 +27,18 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_STRING_WRAPPERS_H
|
||||
#define _CEF_STRING_WRAPPERS_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_WRAPPERS_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_STRING_WRAPPERS_H_
|
||||
#pragma once
|
||||
|
||||
#include <memory.h>
|
||||
#include <string>
|
||||
#include "include/internal/cef_string_types.h"
|
||||
|
||||
#include "cef_string_types.h"
|
||||
#ifdef BUILDING_CEF_SHARED
|
||||
#include "base/string16.h"
|
||||
#endif
|
||||
#include <memory.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
///
|
||||
// Traits implementation for wide character strings.
|
||||
@ -47,22 +50,24 @@ struct CefStringTraitsWide {
|
||||
|
||||
static inline void clear(struct_type *s) { cef_string_wide_clear(s); }
|
||||
static inline int set(const char_type* src, size_t src_size,
|
||||
struct_type *output, int copy)
|
||||
{ return cef_string_wide_set(src, src_size, output, copy); }
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2)
|
||||
{ return cef_string_wide_cmp(s1, s2); }
|
||||
static inline userfree_struct_type userfree_alloc()
|
||||
{ return cef_string_userfree_wide_alloc(); }
|
||||
static inline void userfree_free(userfree_struct_type ufs)
|
||||
{ return cef_string_userfree_wide_free(ufs); }
|
||||
struct_type* output, int copy) {
|
||||
return cef_string_wide_set(src, src_size, output, copy);
|
||||
}
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2) {
|
||||
return cef_string_wide_cmp(s1, s2);
|
||||
}
|
||||
static inline userfree_struct_type userfree_alloc() {
|
||||
return cef_string_userfree_wide_alloc();
|
||||
}
|
||||
static inline void userfree_free(userfree_struct_type ufs) {
|
||||
return cef_string_userfree_wide_free(ufs);
|
||||
}
|
||||
|
||||
// Conversion methods.
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type *s)
|
||||
{
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type *s) {
|
||||
return cef_string_ascii_to_wide(str, len, s) ? true : false;
|
||||
}
|
||||
static inline std::string to_string(const struct_type *s)
|
||||
{
|
||||
static inline std::string to_string(const struct_type *s) {
|
||||
cef_string_utf8_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_wide_to_utf8(s->str, s->length, &cstr);
|
||||
@ -72,23 +77,19 @@ struct CefStringTraitsWide {
|
||||
cef_string_utf8_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_string(const std::string& str, struct_type *s)
|
||||
{
|
||||
static inline bool from_string(const std::string& str, struct_type *s) {
|
||||
return cef_string_utf8_to_wide(str.c_str(), str.length(), s) ? true : false;
|
||||
}
|
||||
static inline std::wstring to_wstring(const struct_type *s)
|
||||
{
|
||||
static inline std::wstring to_wstring(const struct_type *s) {
|
||||
return std::wstring(s->str, s->length);
|
||||
}
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type *s)
|
||||
{
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type *s) {
|
||||
return cef_string_wide_set(str.c_str(), str.length(), s, true) ?
|
||||
true : false;
|
||||
}
|
||||
#if defined(BUILDING_CEF_SHARED)
|
||||
#if defined(WCHAR_T_IS_UTF32)
|
||||
static inline string16 to_string16(const struct_type *s)
|
||||
{
|
||||
static inline string16 to_string16(const struct_type *s) {
|
||||
cef_string_utf16_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_wide_to_utf16(s->str, s->length, &cstr);
|
||||
@ -98,18 +99,15 @@ struct CefStringTraitsWide {
|
||||
cef_string_utf16_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_string16(const string16& str, struct_type *s)
|
||||
{
|
||||
static inline bool from_string16(const string16& str, struct_type *s) {
|
||||
return cef_string_utf16_to_wide(str.c_str(), str.length(), s) ?
|
||||
true : false;
|
||||
}
|
||||
#else // WCHAR_T_IS_UTF32
|
||||
static inline string16 to_string16(const struct_type *s)
|
||||
{
|
||||
static inline string16 to_string16(const struct_type *s) {
|
||||
return string16(s->str, s->length);
|
||||
}
|
||||
static inline bool from_string16(const string16& str, struct_type *s)
|
||||
{
|
||||
static inline bool from_string16(const string16& str, struct_type *s) {
|
||||
return cef_string_wide_set(str.c_str(), str.length(), s, true) ?
|
||||
true : false;
|
||||
}
|
||||
@ -127,30 +125,30 @@ struct CefStringTraitsUTF8 {
|
||||
|
||||
static inline void clear(struct_type *s) { cef_string_utf8_clear(s); }
|
||||
static inline int set(const char_type* src, size_t src_size,
|
||||
struct_type *output, int copy)
|
||||
{ return cef_string_utf8_set(src, src_size, output, copy); }
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2)
|
||||
{ return cef_string_utf8_cmp(s1, s2); }
|
||||
static inline userfree_struct_type userfree_alloc()
|
||||
{ return cef_string_userfree_utf8_alloc(); }
|
||||
static inline void userfree_free(userfree_struct_type ufs)
|
||||
{ return cef_string_userfree_utf8_free(ufs); }
|
||||
struct_type* output, int copy) {
|
||||
return cef_string_utf8_set(src, src_size, output, copy);
|
||||
}
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2) {
|
||||
return cef_string_utf8_cmp(s1, s2);
|
||||
}
|
||||
static inline userfree_struct_type userfree_alloc() {
|
||||
return cef_string_userfree_utf8_alloc();
|
||||
}
|
||||
static inline void userfree_free(userfree_struct_type ufs) {
|
||||
return cef_string_userfree_utf8_free(ufs);
|
||||
}
|
||||
|
||||
// Conversion methods.
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type* s)
|
||||
{
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type* s) {
|
||||
return cef_string_utf8_copy(str, len, s) ? true : false;
|
||||
}
|
||||
static inline std::string to_string(const struct_type* s)
|
||||
{
|
||||
static inline std::string to_string(const struct_type* s) {
|
||||
return std::string(s->str, s->length);
|
||||
}
|
||||
static inline bool from_string(const std::string& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_string(const std::string& str, struct_type* s) {
|
||||
return cef_string_utf8_copy(str.c_str(), str.length(), s) ? true : false;
|
||||
}
|
||||
static inline std::wstring to_wstring(const struct_type* s)
|
||||
{
|
||||
static inline std::wstring to_wstring(const struct_type* s) {
|
||||
cef_string_wide_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_utf8_to_wide(s->str, s->length, &cstr);
|
||||
@ -160,13 +158,11 @@ struct CefStringTraitsUTF8 {
|
||||
cef_string_wide_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s) {
|
||||
return cef_string_wide_to_utf8(str.c_str(), str.length(), s) ? true : false;
|
||||
}
|
||||
#if defined(BUILDING_CEF_SHARED)
|
||||
static inline string16 to_string16(const struct_type* s)
|
||||
{
|
||||
static inline string16 to_string16(const struct_type* s) {
|
||||
cef_string_utf16_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_utf8_to_utf16(s->str, s->length, &cstr);
|
||||
@ -176,8 +172,7 @@ struct CefStringTraitsUTF8 {
|
||||
cef_string_utf16_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_string16(const string16& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_string16(const string16& str, struct_type* s) {
|
||||
return cef_string_utf16_to_utf8(str.c_str(), str.length(), s) ?
|
||||
true : false;
|
||||
}
|
||||
@ -194,22 +189,24 @@ struct CefStringTraitsUTF16 {
|
||||
|
||||
static inline void clear(struct_type *s) { cef_string_utf16_clear(s); }
|
||||
static inline int set(const char_type* src, size_t src_size,
|
||||
struct_type *output, int copy)
|
||||
{ return cef_string_utf16_set(src, src_size, output, copy); }
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2)
|
||||
{ return cef_string_utf16_cmp(s1, s2); }
|
||||
static inline userfree_struct_type userfree_alloc()
|
||||
{ return cef_string_userfree_utf16_alloc(); }
|
||||
static inline void userfree_free(userfree_struct_type ufs)
|
||||
{ return cef_string_userfree_utf16_free(ufs); }
|
||||
struct_type* output, int copy) {
|
||||
return cef_string_utf16_set(src, src_size, output, copy);
|
||||
}
|
||||
static inline int compare(const struct_type* s1, const struct_type* s2) {
|
||||
return cef_string_utf16_cmp(s1, s2);
|
||||
}
|
||||
static inline userfree_struct_type userfree_alloc() {
|
||||
return cef_string_userfree_utf16_alloc();
|
||||
}
|
||||
static inline void userfree_free(userfree_struct_type ufs) {
|
||||
return cef_string_userfree_utf16_free(ufs);
|
||||
}
|
||||
|
||||
// Conversion methods.
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type* s)
|
||||
{
|
||||
static inline bool from_ascii(const char* str, size_t len, struct_type* s) {
|
||||
return cef_string_ascii_to_utf16(str, len, s) ? true : false;
|
||||
}
|
||||
static inline std::string to_string(const struct_type* s)
|
||||
{
|
||||
static inline std::string to_string(const struct_type* s) {
|
||||
cef_string_utf8_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_utf16_to_utf8(s->str, s->length, &cstr);
|
||||
@ -219,14 +216,12 @@ struct CefStringTraitsUTF16 {
|
||||
cef_string_utf8_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_string(const std::string& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_string(const std::string& str, struct_type* s) {
|
||||
return cef_string_utf8_to_utf16(str.c_str(), str.length(), s) ?
|
||||
true : false;
|
||||
}
|
||||
#if defined(WCHAR_T_IS_UTF32)
|
||||
static inline std::wstring to_wstring(const struct_type* s)
|
||||
{
|
||||
static inline std::wstring to_wstring(const struct_type* s) {
|
||||
cef_string_wide_t cstr;
|
||||
memset(&cstr, 0, sizeof(cstr));
|
||||
cef_string_utf16_to_wide(s->str, s->length, &cstr);
|
||||
@ -236,29 +231,24 @@ struct CefStringTraitsUTF16 {
|
||||
cef_string_wide_clear(&cstr);
|
||||
return str;
|
||||
}
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s) {
|
||||
return cef_string_wide_to_utf16(str.c_str(), str.length(), s) ?
|
||||
true : false;
|
||||
}
|
||||
#else // WCHAR_T_IS_UTF32
|
||||
static inline std::wstring to_wstring(const struct_type* s)
|
||||
{
|
||||
static inline std::wstring to_wstring(const struct_type* s) {
|
||||
return std::wstring(s->str, s->length);
|
||||
}
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_wstring(const std::wstring& str, struct_type* s) {
|
||||
return cef_string_utf16_set(str.c_str(), str.length(), s, true) ?
|
||||
true : false;
|
||||
}
|
||||
#endif // WCHAR_T_IS_UTF32
|
||||
#if defined(BUILDING_CEF_SHARED)
|
||||
static inline string16 to_string16(const struct_type* s)
|
||||
{
|
||||
static inline string16 to_string16(const struct_type* s) {
|
||||
return string16(s->str, s->length);
|
||||
}
|
||||
static inline bool from_string16(const string16& str, struct_type* s)
|
||||
{
|
||||
static inline bool from_string16(const string16& str, struct_type* s) {
|
||||
return cef_string_utf16_set(str.c_str(), str.length(), s, true) ?
|
||||
true : false;
|
||||
}
|
||||
@ -295,7 +285,7 @@ struct CefStringTraitsUTF16 {
|
||||
///
|
||||
template <class traits>
|
||||
class CefStringBase {
|
||||
public:
|
||||
public:
|
||||
typedef typename traits::char_type char_type;
|
||||
typedef typename traits::struct_type struct_type;
|
||||
typedef typename traits::userfree_struct_type userfree_struct_type;
|
||||
@ -308,28 +298,38 @@ public:
|
||||
///
|
||||
// Create a new string from an existing string. Data will always be copied.
|
||||
///
|
||||
CefStringBase(const CefStringBase& str) : string_(NULL), owner_(false)
|
||||
{ FromString(str.c_str(), str.length(), true); }
|
||||
CefStringBase(const CefStringBase& str)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString(str.c_str(), str.length(), true);
|
||||
}
|
||||
|
||||
///
|
||||
// Create a new string from an existing std::string. Data will be always
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
CefStringBase(const std::string& src) : string_(NULL), owner_(false)
|
||||
{ FromString(src); }
|
||||
CefStringBase(const char* src) : string_(NULL), owner_(false)
|
||||
{ FromString(std::string(src)); }
|
||||
CefStringBase(const std::string& src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString(src);
|
||||
}
|
||||
CefStringBase(const char* src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString(std::string(src));
|
||||
}
|
||||
|
||||
///
|
||||
// Create a new string from an existing std::wstring. Data will be always
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
CefStringBase(const std::wstring& src) : string_(NULL), owner_(false)
|
||||
{ FromWString(src); }
|
||||
CefStringBase(const wchar_t* src) : string_(NULL), owner_(false)
|
||||
{ FromWString(std::wstring(src)); }
|
||||
CefStringBase(const std::wstring& src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromWString(src);
|
||||
}
|
||||
CefStringBase(const wchar_t* src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromWString(std::wstring(src));
|
||||
}
|
||||
|
||||
#if (defined(BUILDING_CEF_SHARED) && defined(WCHAR_T_IS_UTF32))
|
||||
///
|
||||
@ -337,10 +337,14 @@ public:
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
CefStringBase(const string16& src) : string_(NULL), owner_(false)
|
||||
{ FromString16(src); }
|
||||
CefStringBase(const char16* src) : string_(NULL), owner_(false)
|
||||
{ FromString16(string16(src)); }
|
||||
CefStringBase(const string16& src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString16(src);
|
||||
}
|
||||
CefStringBase(const char16* src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString16(string16(src));
|
||||
}
|
||||
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32
|
||||
|
||||
///
|
||||
@ -350,16 +354,17 @@ public:
|
||||
// and will not be freed by this class.
|
||||
///
|
||||
CefStringBase(const char_type* src, size_t src_len, bool copy)
|
||||
: string_(NULL), owner_(false)
|
||||
{ FromString(src, src_len, copy); }
|
||||
: string_(NULL), owner_(false) {
|
||||
FromString(src, src_len, copy);
|
||||
}
|
||||
|
||||
///
|
||||
// Create a new string referencing an existing string structure without taking
|
||||
// ownership. Referenced structures must exist for the lifetime of this class
|
||||
// and will not be freed by this class.
|
||||
///
|
||||
CefStringBase(const struct_type* src) : string_(NULL), owner_(false)
|
||||
{
|
||||
CefStringBase(const struct_type* src) // NOLINT(runtime/explicit)
|
||||
: string_(NULL), owner_(false) {
|
||||
if (!src)
|
||||
return;
|
||||
// Reference the existing structure without taking ownership.
|
||||
@ -395,8 +400,7 @@ public:
|
||||
///
|
||||
// Compare this string to the specified string.
|
||||
///
|
||||
int compare(const CefStringBase& str) const
|
||||
{
|
||||
int compare(const CefStringBase& str) const {
|
||||
if (empty() && str.empty())
|
||||
return 0;
|
||||
if (empty())
|
||||
@ -409,8 +413,7 @@ public:
|
||||
///
|
||||
// Clear the string data.
|
||||
///
|
||||
void clear()
|
||||
{
|
||||
void clear() {
|
||||
if (!empty())
|
||||
traits::clear(string_);
|
||||
}
|
||||
@ -433,8 +436,7 @@ public:
|
||||
// Returns a writable pointer to the underlying string structure. Will never
|
||||
// return NULL.
|
||||
///
|
||||
struct_type* GetWritableStruct()
|
||||
{
|
||||
struct_type* GetWritableStruct() {
|
||||
AllocIfNeeded();
|
||||
return string_;
|
||||
}
|
||||
@ -443,8 +445,7 @@ public:
|
||||
// Clear the state of this class. The underlying string structure and data
|
||||
// will be freed if this class owns the structure.
|
||||
///
|
||||
void ClearAndFree()
|
||||
{
|
||||
void ClearAndFree() {
|
||||
if (!string_)
|
||||
return;
|
||||
if (owner_) {
|
||||
@ -459,8 +460,7 @@ public:
|
||||
// Attach to the specified string structure. If |owner| is true this class
|
||||
// will take ownership of the structure.
|
||||
///
|
||||
void Attach(struct_type* str, bool owner)
|
||||
{
|
||||
void Attach(struct_type* str, bool owner) {
|
||||
// Free the previous structure and data, if any.
|
||||
ClearAndFree();
|
||||
|
||||
@ -473,8 +473,7 @@ public:
|
||||
// userfree structure itself will be freed. Only use this method with userfree
|
||||
// structures.
|
||||
///
|
||||
void AttachToUserFree(userfree_struct_type str)
|
||||
{
|
||||
void AttachToUserFree(userfree_struct_type str) {
|
||||
// Free the previous structure and data, if any.
|
||||
ClearAndFree();
|
||||
|
||||
@ -495,8 +494,7 @@ public:
|
||||
// this method if you already hold a pointer to the underlying string
|
||||
// structure.
|
||||
///
|
||||
void Detach()
|
||||
{
|
||||
void Detach() {
|
||||
string_ = NULL;
|
||||
owner_ = false;
|
||||
}
|
||||
@ -506,8 +504,7 @@ public:
|
||||
// data. This class will be disassociated from the data. May return NULL if
|
||||
// this string class currently contains no data.
|
||||
///
|
||||
userfree_struct_type DetachToUserFree()
|
||||
{
|
||||
userfree_struct_type DetachToUserFree() {
|
||||
if (empty())
|
||||
return NULL;
|
||||
|
||||
@ -527,8 +524,7 @@ public:
|
||||
// existing data. Referenced data must exist for the lifetime of this class
|
||||
// and will not be freed by this class.
|
||||
///
|
||||
bool FromString(const char_type* src, size_t src_len, bool copy)
|
||||
{
|
||||
bool FromString(const char_type* src, size_t src_len, bool copy) {
|
||||
if (src == NULL || src_len == 0) {
|
||||
clear();
|
||||
return true;
|
||||
@ -542,8 +538,7 @@ public:
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
bool FromASCII(const char* str)
|
||||
{
|
||||
bool FromASCII(const char* str) {
|
||||
size_t len = str ? strlen(str) : 0;
|
||||
if (len == 0) {
|
||||
clear();
|
||||
@ -557,8 +552,7 @@ public:
|
||||
// Return this string's data as a std::string. Translation will occur if
|
||||
// necessary based on the underlying string type.
|
||||
///
|
||||
std::string ToString() const
|
||||
{
|
||||
std::string ToString() const {
|
||||
if (empty())
|
||||
return std::string();
|
||||
return traits::to_string(string_);
|
||||
@ -569,8 +563,7 @@ public:
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
bool FromString(const std::string& str)
|
||||
{
|
||||
bool FromString(const std::string& str) {
|
||||
if (str.empty()) {
|
||||
clear();
|
||||
return true;
|
||||
@ -583,8 +576,7 @@ public:
|
||||
// Return this string's data as a std::wstring. Translation will occur if
|
||||
// necessary based on the underlying string type.
|
||||
///
|
||||
std::wstring ToWString() const
|
||||
{
|
||||
std::wstring ToWString() const {
|
||||
if (empty())
|
||||
return std::wstring();
|
||||
return traits::to_wstring(string_);
|
||||
@ -595,8 +587,7 @@ public:
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
bool FromWString(const std::wstring& str)
|
||||
{
|
||||
bool FromWString(const std::wstring& str) {
|
||||
if (str.empty()) {
|
||||
clear();
|
||||
return true;
|
||||
@ -609,8 +600,7 @@ public:
|
||||
// Return this string's data as a string16. Translation will occur if
|
||||
// necessary based on the underlying string type.
|
||||
///
|
||||
string16 ToString16() const
|
||||
{
|
||||
string16 ToString16() const {
|
||||
if (empty())
|
||||
return string16();
|
||||
return traits::to_string16(string_);
|
||||
@ -621,8 +611,7 @@ public:
|
||||
// copied. Translation will occur if necessary based on the underlying string
|
||||
// type.
|
||||
///
|
||||
bool FromString16(const string16& str)
|
||||
{
|
||||
bool FromString16(const string16& str) {
|
||||
if (str.empty()) {
|
||||
clear();
|
||||
return true;
|
||||
@ -635,46 +624,71 @@ public:
|
||||
///
|
||||
// Comparison operator overloads.
|
||||
///
|
||||
bool operator<(const CefStringBase& str) const
|
||||
{ return (compare(str) < 0); }
|
||||
bool operator<=(const CefStringBase& str) const
|
||||
{ return (compare(str) <= 0); }
|
||||
bool operator>(const CefStringBase& str) const
|
||||
{ return (compare(str) > 0); }
|
||||
bool operator>=(const CefStringBase& str) const
|
||||
{ return (compare(str) >= 0); }
|
||||
bool operator==(const CefStringBase& str) const
|
||||
{ return (compare(str) == 0); }
|
||||
bool operator!=(const CefStringBase& str) const
|
||||
{ return (compare(str) != 0); }
|
||||
bool operator<(const CefStringBase& str) const {
|
||||
return (compare(str) < 0);
|
||||
}
|
||||
bool operator<=(const CefStringBase& str) const {
|
||||
return (compare(str) <= 0);
|
||||
}
|
||||
bool operator>(const CefStringBase& str) const {
|
||||
return (compare(str) > 0);
|
||||
}
|
||||
bool operator>=(const CefStringBase& str) const {
|
||||
return (compare(str) >= 0);
|
||||
}
|
||||
bool operator==(const CefStringBase& str) const {
|
||||
return (compare(str) == 0);
|
||||
}
|
||||
bool operator!=(const CefStringBase& str) const {
|
||||
return (compare(str) != 0);
|
||||
}
|
||||
|
||||
///
|
||||
// Assignment operator overloads.
|
||||
///
|
||||
CefStringBase& operator=(const CefStringBase& str)
|
||||
{ FromString(str.c_str(), str.length(), true); return *this; }
|
||||
operator std::string() const { return ToString(); }
|
||||
CefStringBase& operator=(const std::string& str)
|
||||
{ FromString(str); return *this; }
|
||||
CefStringBase& operator=(const char* str)
|
||||
{ FromString(std::string(str)); return *this; }
|
||||
operator std::wstring() const { return ToWString(); }
|
||||
CefStringBase& operator=(const std::wstring& str)
|
||||
{ FromWString(str); return *this; }
|
||||
CefStringBase& operator=(const wchar_t* str)
|
||||
{ FromWString(std::wstring(str)); return *this; }
|
||||
CefStringBase& operator=(const CefStringBase& str) {
|
||||
FromString(str.c_str(), str.length(), true);
|
||||
return *this;
|
||||
}
|
||||
operator std::string() const {
|
||||
return ToString();
|
||||
}
|
||||
CefStringBase& operator=(const std::string& str) {
|
||||
FromString(str);
|
||||
return *this;
|
||||
}
|
||||
CefStringBase& operator=(const char* str) {
|
||||
FromString(std::string(str));
|
||||
return *this;
|
||||
}
|
||||
operator std::wstring() const {
|
||||
return ToWString();
|
||||
}
|
||||
CefStringBase& operator=(const std::wstring& str) {
|
||||
FromWString(str);
|
||||
return *this;
|
||||
}
|
||||
CefStringBase& operator=(const wchar_t* str) {
|
||||
FromWString(std::wstring(str));
|
||||
return *this;
|
||||
}
|
||||
#if (defined(BUILDING_CEF_SHARED) && defined(WCHAR_T_IS_UTF32))
|
||||
operator string16() const { return ToString16(); }
|
||||
CefStringBase& operator=(const string16& str)
|
||||
{ FromString16(str); return *this; }
|
||||
CefStringBase& operator=(const char16* str)
|
||||
{ FromString16(string16(str)); return *this; }
|
||||
operator string16() const {
|
||||
return ToString16();
|
||||
}
|
||||
CefStringBase& operator=(const string16& str) {
|
||||
FromString16(str);
|
||||
return *this;
|
||||
}
|
||||
CefStringBase& operator=(const char16* str) {
|
||||
FromString16(string16(str));
|
||||
return *this;
|
||||
}
|
||||
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32
|
||||
|
||||
private:
|
||||
private:
|
||||
// Allocate the string structure if it doesn't already exist.
|
||||
void AllocIfNeeded()
|
||||
{
|
||||
void AllocIfNeeded() {
|
||||
if (string_ == NULL) {
|
||||
string_ = new struct_type;
|
||||
memset(string_, 0, sizeof(struct_type));
|
||||
@ -691,4 +705,4 @@ typedef CefStringBase<CefStringTraitsWide> CefStringWide;
|
||||
typedef CefStringBase<CefStringTraitsUTF8> CefStringUTF8;
|
||||
typedef CefStringBase<CefStringTraitsUTF16> CefStringUTF16;
|
||||
|
||||
#endif // _CEF_STRING_WRAPPERS_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_WRAPPERS_H_
|
||||
|
@ -27,21 +27,21 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_TIME_H
|
||||
#define _CEF_TIME_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TIME_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TIME_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cef_export.h"
|
||||
#include "include/internal/cef_export.h"
|
||||
#include <time.h>
|
||||
|
||||
///
|
||||
// Time information. Values should always be in UTC.
|
||||
///
|
||||
typedef struct _cef_time_t
|
||||
{
|
||||
typedef struct _cef_time_t {
|
||||
int year; // Four digit year "2007"
|
||||
int month; // 1-based month (values 1 = January, etc.)
|
||||
#if !defined(OS_MACOSX)
|
||||
@ -75,4 +75,4 @@ CEF_EXPORT int cef_time_from_doublet(double time, cef_time_t* cef_time);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_TIME_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TIME_H_
|
||||
|
@ -53,8 +53,8 @@
|
||||
// DispatchToMethod(&foo, &Foo::SomeMeth, MakeTuple(1, 2, 3));
|
||||
// // foo->SomeMeth(1, 2, 3);
|
||||
|
||||
#ifndef BASE_TUPLE_H__
|
||||
#define BASE_TUPLE_H__
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TUPLE_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TUPLE_H_
|
||||
#pragma once
|
||||
|
||||
#if defined(OS_CHROMEOS)
|
||||
@ -144,7 +144,7 @@ struct Tuple3 {
|
||||
Tuple3(typename TupleTraits<A>::ParamType a,
|
||||
typename TupleTraits<B>::ParamType b,
|
||||
typename TupleTraits<C>::ParamType c)
|
||||
: a(a), b(b), c(c){
|
||||
: a(a), b(b), c(c) {
|
||||
}
|
||||
|
||||
A a;
|
||||
@ -575,7 +575,6 @@ inline void DispatchToMethod(ObjT* obj, Method method, const A& arg) {
|
||||
|
||||
template <class ObjT, class Method, class A>
|
||||
inline void DispatchToMethod(ObjT* obj, Method method, const Tuple1<A>& arg) {
|
||||
|
||||
#if defined(OS_CHROMEOS)
|
||||
// To troubleshoot crosbug.com/7327.
|
||||
CHECK(obj);
|
||||
@ -1080,4 +1079,4 @@ inline void DispatchToMethod(ObjT* obj, Method method,
|
||||
&out->a, &out->b, &out->c, &out->d, &out->e);
|
||||
}
|
||||
|
||||
#endif // BASE_TUPLE_H__
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TUPLE_H_
|
||||
|
@ -28,31 +28,37 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_TYPES_H
|
||||
#define _CEF_TYPES_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_build.h"
|
||||
#include "cef_string.h"
|
||||
#include "cef_string_list.h"
|
||||
#include "cef_time.h"
|
||||
#include "include/internal/cef_build.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
#include "include/internal/cef_string_list.h"
|
||||
#include "include/internal/cef_time.h"
|
||||
|
||||
// Bring in platform-specific definitions.
|
||||
#if defined(OS_WIN)
|
||||
#include "cef_types_win.h"
|
||||
#include "include/internal/cef_types_win.h"
|
||||
#elif defined(OS_MACOSX)
|
||||
#include "cef_types_mac.h"
|
||||
#include "include/internal/cef_types_mac.h"
|
||||
#elif defined(OS_LINUX)
|
||||
#include "cef_types_linux.h"
|
||||
#include "include/internal/cef_types_linux.h"
|
||||
#endif
|
||||
|
||||
// The NSPR system headers define 64-bit as |long| when possible. In order to
|
||||
// not have typedef mismatches, we do the same on LP64.
|
||||
#if __LP64__
|
||||
typedef long int64;
|
||||
typedef unsigned long uint64;
|
||||
#include <stddef.h> // For size_t
|
||||
|
||||
// The NSPR system headers define 64-bit as |long| when possible, except on
|
||||
// Mac OS X. In order to not have typedef mismatches, we do the same on LP64.
|
||||
//
|
||||
// On Mac OS X, |long long| is used for 64-bit types for compatibility with
|
||||
// <inttypes.h> format macros even in the LP64 model.
|
||||
#if defined(__LP64__) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
|
||||
typedef long int64; // NOLINT(runtime/int)
|
||||
typedef unsigned long uint64; // NOLINT(runtime/int)
|
||||
#else
|
||||
typedef long long int64;
|
||||
typedef unsigned long long uint64;
|
||||
typedef long long int64; // NOLINT(runtime/int)
|
||||
typedef unsigned long long uint64; // NOLINT(runtime/int)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -62,8 +68,7 @@ extern "C" {
|
||||
///
|
||||
// Log severity levels.
|
||||
///
|
||||
enum cef_log_severity_t
|
||||
{
|
||||
enum cef_log_severity_t {
|
||||
LOGSEVERITY_VERBOSE = -1,
|
||||
LOGSEVERITY_INFO,
|
||||
LOGSEVERITY_WARNING,
|
||||
@ -77,8 +82,7 @@ enum cef_log_severity_t
|
||||
// Initialization settings. Specify NULL or 0 to get the recommended default
|
||||
// values.
|
||||
///
|
||||
typedef struct _cef_settings_t
|
||||
{
|
||||
typedef struct _cef_settings_t {
|
||||
///
|
||||
// Size of this structure.
|
||||
///
|
||||
@ -173,8 +177,7 @@ typedef struct _cef_settings_t
|
||||
// default values. The consequences of using custom values may not be well
|
||||
// tested.
|
||||
///
|
||||
typedef struct _cef_browser_settings_t
|
||||
{
|
||||
typedef struct _cef_browser_settings_t {
|
||||
///
|
||||
// Size of this structure.
|
||||
///
|
||||
@ -419,8 +422,7 @@ typedef struct _cef_browser_settings_t
|
||||
///
|
||||
// URL component parts.
|
||||
///
|
||||
typedef struct _cef_urlparts_t
|
||||
{
|
||||
typedef struct _cef_urlparts_t {
|
||||
///
|
||||
// The complete URL specification.
|
||||
///
|
||||
@ -466,8 +468,7 @@ typedef struct _cef_urlparts_t
|
||||
///
|
||||
// Cookie information.
|
||||
///
|
||||
typedef struct _cef_cookie_t
|
||||
{
|
||||
typedef struct _cef_cookie_t {
|
||||
///
|
||||
// The cookie name.
|
||||
///
|
||||
@ -523,8 +524,7 @@ typedef struct _cef_cookie_t
|
||||
///
|
||||
// Storage types.
|
||||
///
|
||||
enum cef_storage_type_t
|
||||
{
|
||||
enum cef_storage_type_t {
|
||||
ST_LOCALSTORAGE = 0,
|
||||
ST_SESSIONSTORAGE,
|
||||
};
|
||||
@ -532,8 +532,7 @@ enum cef_storage_type_t
|
||||
///
|
||||
// Mouse button types.
|
||||
///
|
||||
enum cef_mouse_button_type_t
|
||||
{
|
||||
enum cef_mouse_button_type_t {
|
||||
MBT_LEFT = 0,
|
||||
MBT_MIDDLE,
|
||||
MBT_RIGHT,
|
||||
@ -542,8 +541,7 @@ enum cef_mouse_button_type_t
|
||||
///
|
||||
// Key types.
|
||||
///
|
||||
enum cef_key_type_t
|
||||
{
|
||||
enum cef_key_type_t {
|
||||
KT_KEYUP = 0,
|
||||
KT_KEYDOWN,
|
||||
KT_CHAR,
|
||||
@ -552,8 +550,7 @@ enum cef_key_type_t
|
||||
///
|
||||
// Various browser navigation types supported by chrome.
|
||||
///
|
||||
enum cef_handler_navtype_t
|
||||
{
|
||||
enum cef_handler_navtype_t {
|
||||
NAVTYPE_LINKCLICKED = 0,
|
||||
NAVTYPE_FORMSUBMITTED,
|
||||
NAVTYPE_BACKFORWARD,
|
||||
@ -567,8 +564,7 @@ enum cef_handler_navtype_t
|
||||
// Supported error code values. See net\base\net_error_list.h for complete
|
||||
// descriptions of the error codes.
|
||||
///
|
||||
enum cef_handler_errorcode_t
|
||||
{
|
||||
enum cef_handler_errorcode_t {
|
||||
ERR_FAILED = -2,
|
||||
ERR_ABORTED = -3,
|
||||
ERR_INVALID_ARGUMENT = -4,
|
||||
@ -624,8 +620,7 @@ enum cef_handler_errorcode_t
|
||||
// destination. These constants match their equivalents in WebCore's
|
||||
// DragActions.h and should not be renumbered.
|
||||
///
|
||||
enum cef_drag_operations_mask_t
|
||||
{
|
||||
enum cef_drag_operations_mask_t {
|
||||
DRAG_OPERATION_NONE = 0,
|
||||
DRAG_OPERATION_COPY = 1,
|
||||
DRAG_OPERATION_LINK = 2,
|
||||
@ -639,8 +634,7 @@ enum cef_drag_operations_mask_t
|
||||
///
|
||||
// V8 access control values.
|
||||
///
|
||||
enum cef_v8_accesscontrol_t
|
||||
{
|
||||
enum cef_v8_accesscontrol_t {
|
||||
V8_ACCESS_CONTROL_DEFAULT = 0,
|
||||
V8_ACCESS_CONTROL_ALL_CAN_READ = 1,
|
||||
V8_ACCESS_CONTROL_ALL_CAN_WRITE = 1 << 1,
|
||||
@ -650,8 +644,7 @@ enum cef_v8_accesscontrol_t
|
||||
///
|
||||
// V8 property attribute values.
|
||||
///
|
||||
enum cef_v8_propertyattribute_t
|
||||
{
|
||||
enum cef_v8_propertyattribute_t {
|
||||
V8_PROPERTY_ATTRIBUTE_NONE = 0, // Writeable, Enumerable,
|
||||
// Configurable
|
||||
V8_PROPERTY_ATTRIBUTE_READONLY = 1 << 0, // Not writeable
|
||||
@ -662,8 +655,7 @@ enum cef_v8_propertyattribute_t
|
||||
///
|
||||
// Structure representing menu information.
|
||||
///
|
||||
typedef struct _cef_menu_info_t
|
||||
{
|
||||
typedef struct _cef_menu_info_t {
|
||||
///
|
||||
// Values from the cef_handler_menutypebits_t enumeration.
|
||||
///
|
||||
@ -695,8 +687,7 @@ typedef struct _cef_menu_info_t
|
||||
// The cef_menu_info_t typeFlags value will be a combination of the
|
||||
// following values.
|
||||
///
|
||||
enum cef_menu_typebits_t
|
||||
{
|
||||
enum cef_menu_typebits_t {
|
||||
///
|
||||
// No node is selected
|
||||
///
|
||||
@ -743,8 +734,7 @@ enum cef_menu_typebits_t
|
||||
// The cef_menu_info_t editFlags value will be a combination of the
|
||||
// following values.
|
||||
///
|
||||
enum cef_menu_capabilitybits_t
|
||||
{
|
||||
enum cef_menu_capabilitybits_t {
|
||||
// Values from WebContextMenuData::EditFlags in WebContextMenuData.h
|
||||
MENU_CAN_DO_NONE = 0x0,
|
||||
MENU_CAN_UNDO = 0x1,
|
||||
@ -763,8 +753,7 @@ enum cef_menu_capabilitybits_t
|
||||
///
|
||||
// Supported menu ID values.
|
||||
///
|
||||
enum cef_menu_id_t
|
||||
{
|
||||
enum cef_menu_id_t {
|
||||
MENU_ID_NAV_BACK = 10,
|
||||
MENU_ID_NAV_FORWARD = 11,
|
||||
MENU_ID_NAV_RELOAD = 12,
|
||||
@ -781,8 +770,7 @@ enum cef_menu_id_t
|
||||
MENU_ID_VIEWSOURCE = 31,
|
||||
};
|
||||
|
||||
enum cef_paint_element_type_t
|
||||
{
|
||||
enum cef_paint_element_type_t {
|
||||
PET_VIEW = 0,
|
||||
PET_POPUP,
|
||||
};
|
||||
@ -790,15 +778,13 @@ enum cef_paint_element_type_t
|
||||
///
|
||||
// Post data elements may represent either bytes or files.
|
||||
///
|
||||
enum cef_postdataelement_type_t
|
||||
{
|
||||
enum cef_postdataelement_type_t {
|
||||
PDE_TYPE_EMPTY = 0,
|
||||
PDE_TYPE_BYTES,
|
||||
PDE_TYPE_FILE,
|
||||
};
|
||||
|
||||
enum cef_weburlrequest_flags_t
|
||||
{
|
||||
enum cef_weburlrequest_flags_t {
|
||||
WUR_FLAG_NONE = 0,
|
||||
WUR_FLAG_SKIP_CACHE = 0x1,
|
||||
WUR_FLAG_ALLOW_CACHED_CREDENTIALS = 0x2,
|
||||
@ -808,8 +794,7 @@ enum cef_weburlrequest_flags_t
|
||||
WUR_FLAG_REPORT_RAW_HEADERS = 0x20
|
||||
};
|
||||
|
||||
enum cef_weburlrequest_state_t
|
||||
{
|
||||
enum cef_weburlrequest_state_t {
|
||||
WUR_STATE_UNSENT = 0,
|
||||
WUR_STATE_STARTED = 1,
|
||||
WUR_STATE_HEADERS_RECEIVED = 2,
|
||||
@ -822,8 +807,7 @@ enum cef_weburlrequest_state_t
|
||||
///
|
||||
// Focus sources.
|
||||
///
|
||||
enum cef_handler_focus_source_t
|
||||
{
|
||||
enum cef_handler_focus_source_t {
|
||||
///
|
||||
// The source is explicit navigation via the API (LoadURL(), etc).
|
||||
///
|
||||
@ -841,8 +825,7 @@ enum cef_handler_focus_source_t
|
||||
///
|
||||
// Key event types.
|
||||
///
|
||||
enum cef_handler_keyevent_type_t
|
||||
{
|
||||
enum cef_handler_keyevent_type_t {
|
||||
KEYEVENT_RAWKEYDOWN = 0,
|
||||
KEYEVENT_KEYDOWN,
|
||||
KEYEVENT_KEYUP,
|
||||
@ -852,8 +835,7 @@ enum cef_handler_keyevent_type_t
|
||||
///
|
||||
// Key event modifiers.
|
||||
///
|
||||
enum cef_handler_keyevent_modifiers_t
|
||||
{
|
||||
enum cef_handler_keyevent_modifiers_t {
|
||||
KEY_SHIFT = 1 << 0,
|
||||
KEY_CTRL = 1 << 1,
|
||||
KEY_ALT = 1 << 2,
|
||||
@ -863,8 +845,7 @@ enum cef_handler_keyevent_modifiers_t
|
||||
///
|
||||
// Structure representing a rectangle.
|
||||
///
|
||||
typedef struct _cef_rect_t
|
||||
{
|
||||
typedef struct _cef_rect_t {
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
@ -874,8 +855,7 @@ typedef struct _cef_rect_t
|
||||
///
|
||||
// Existing thread IDs.
|
||||
///
|
||||
enum cef_thread_id_t
|
||||
{
|
||||
enum cef_thread_id_t {
|
||||
TID_UI = 0,
|
||||
TID_IO = 1,
|
||||
TID_FILE = 2,
|
||||
@ -884,8 +864,7 @@ enum cef_thread_id_t
|
||||
///
|
||||
// Paper type for printing.
|
||||
///
|
||||
enum cef_paper_type_t
|
||||
{
|
||||
enum cef_paper_type_t {
|
||||
PT_LETTER = 0,
|
||||
PT_LEGAL,
|
||||
PT_EXECUTIVE,
|
||||
@ -897,11 +876,10 @@ enum cef_paper_type_t
|
||||
///
|
||||
// Paper metric information for printing.
|
||||
///
|
||||
struct cef_paper_metrics
|
||||
{
|
||||
struct cef_paper_metrics {
|
||||
enum cef_paper_type_t paper_type;
|
||||
//Length and width needed if paper_type is custom_size
|
||||
//Units are in inches.
|
||||
// Length and width needed if paper_type is custom_size
|
||||
// Units are in inches.
|
||||
double length;
|
||||
double width;
|
||||
};
|
||||
@ -909,14 +887,13 @@ struct cef_paper_metrics
|
||||
///
|
||||
// Paper print margins.
|
||||
///
|
||||
struct cef_print_margins
|
||||
{
|
||||
//Margin size in inches for left/right/top/bottom (this is content margins).
|
||||
struct cef_print_margins {
|
||||
// Margin size in inches for left/right/top/bottom (this is content margins).
|
||||
double left;
|
||||
double right;
|
||||
double top;
|
||||
double bottom;
|
||||
//Margin size (top/bottom) in inches for header/footer.
|
||||
// Margin size (top/bottom) in inches for header/footer.
|
||||
double header;
|
||||
double footer;
|
||||
};
|
||||
@ -924,8 +901,7 @@ struct cef_print_margins
|
||||
///
|
||||
// Page orientation for printing.
|
||||
///
|
||||
enum cef_page_orientation
|
||||
{
|
||||
enum cef_page_orientation {
|
||||
PORTRAIT = 0,
|
||||
LANDSCAPE
|
||||
};
|
||||
@ -933,8 +909,7 @@ enum cef_page_orientation
|
||||
///
|
||||
// Printing options.
|
||||
///
|
||||
typedef struct _cef_print_options_t
|
||||
{
|
||||
typedef struct _cef_print_options_t {
|
||||
enum cef_page_orientation page_orientation;
|
||||
struct cef_paper_metrics paper_metrics;
|
||||
struct cef_print_margins paper_margins;
|
||||
@ -946,8 +921,7 @@ typedef struct _cef_print_options_t
|
||||
// before being passed to the parser. If a BOM is detected and the correct
|
||||
// decoder is available then that decoder will be used automatically.
|
||||
///
|
||||
enum cef_xml_encoding_type_t
|
||||
{
|
||||
enum cef_xml_encoding_type_t {
|
||||
XML_ENCODING_NONE = 0,
|
||||
XML_ENCODING_UTF8,
|
||||
XML_ENCODING_UTF16LE,
|
||||
@ -958,8 +932,7 @@ enum cef_xml_encoding_type_t
|
||||
///
|
||||
// XML node types.
|
||||
///
|
||||
enum cef_xml_node_type_t
|
||||
{
|
||||
enum cef_xml_node_type_t {
|
||||
XML_NODE_UNSUPPORTED = 0,
|
||||
XML_NODE_PROCESSING_INSTRUCTION,
|
||||
XML_NODE_DOCUMENT_TYPE,
|
||||
@ -976,8 +949,7 @@ enum cef_xml_node_type_t
|
||||
///
|
||||
// Status message types.
|
||||
///
|
||||
enum cef_handler_statustype_t
|
||||
{
|
||||
enum cef_handler_statustype_t {
|
||||
STATUSTYPE_TEXT = 0,
|
||||
STATUSTYPE_MOUSEOVER_URL,
|
||||
STATUSTYPE_KEYBOARD_FOCUS_URL,
|
||||
@ -986,8 +958,7 @@ enum cef_handler_statustype_t
|
||||
///
|
||||
// Popup window features.
|
||||
///
|
||||
typedef struct _cef_popup_features_t
|
||||
{
|
||||
typedef struct _cef_popup_features_t {
|
||||
int x;
|
||||
bool xSet;
|
||||
int y;
|
||||
@ -1012,8 +983,7 @@ typedef struct _cef_popup_features_t
|
||||
///
|
||||
// DOM document types.
|
||||
///
|
||||
enum cef_dom_document_type_t
|
||||
{
|
||||
enum cef_dom_document_type_t {
|
||||
DOM_DOCUMENT_TYPE_UNKNOWN = 0,
|
||||
DOM_DOCUMENT_TYPE_HTML,
|
||||
DOM_DOCUMENT_TYPE_XHTML,
|
||||
@ -1023,8 +993,7 @@ enum cef_dom_document_type_t
|
||||
///
|
||||
// DOM event category flags.
|
||||
///
|
||||
enum cef_dom_event_category_t
|
||||
{
|
||||
enum cef_dom_event_category_t {
|
||||
DOM_EVENT_CATEGORY_UNKNOWN = 0x0,
|
||||
DOM_EVENT_CATEGORY_UI = 0x1,
|
||||
DOM_EVENT_CATEGORY_MOUSE = 0x2,
|
||||
@ -1050,8 +1019,7 @@ enum cef_dom_event_category_t
|
||||
///
|
||||
// DOM event processing phases.
|
||||
///
|
||||
enum cef_dom_event_phase_t
|
||||
{
|
||||
enum cef_dom_event_phase_t {
|
||||
DOM_EVENT_PHASE_UNKNOWN = 0,
|
||||
DOM_EVENT_PHASE_CAPTURING,
|
||||
DOM_EVENT_PHASE_AT_TARGET,
|
||||
@ -1061,8 +1029,7 @@ enum cef_dom_event_phase_t
|
||||
///
|
||||
// DOM node types.
|
||||
///
|
||||
enum cef_dom_node_type_t
|
||||
{
|
||||
enum cef_dom_node_type_t {
|
||||
DOM_NODE_TYPE_UNSUPPORTED = 0,
|
||||
DOM_NODE_TYPE_ELEMENT,
|
||||
DOM_NODE_TYPE_ATTRIBUTE,
|
||||
@ -1082,8 +1049,7 @@ enum cef_dom_node_type_t
|
||||
///
|
||||
// Proxy types.
|
||||
///
|
||||
enum cef_proxy_type_t
|
||||
{
|
||||
enum cef_proxy_type_t {
|
||||
PROXY_TYPE_DIRECT = 0,
|
||||
PROXY_TYPE_NAMED,
|
||||
PROXY_TYPE_PAC_STRING,
|
||||
@ -1092,8 +1058,7 @@ enum cef_proxy_type_t
|
||||
///
|
||||
// Proxy information.
|
||||
///
|
||||
typedef struct _cef_proxy_info_t
|
||||
{
|
||||
typedef struct _cef_proxy_info_t {
|
||||
enum cef_proxy_type_t proxyType;
|
||||
cef_string_t proxyList;
|
||||
} cef_proxy_info_t;
|
||||
@ -1102,4 +1067,4 @@ typedef struct _cef_proxy_info_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _CEF_TYPES_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_H_
|
||||
|
@ -28,12 +28,15 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_TYPES_LINUX_H
|
||||
#define _CEF_TYPES_LINUX_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/internal/cef_build.h"
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
#include <gtk/gtk.h>
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -46,8 +49,7 @@ extern "C" {
|
||||
///
|
||||
// Supported graphics implementations.
|
||||
///
|
||||
enum cef_graphics_implementation_t
|
||||
{
|
||||
enum cef_graphics_implementation_t {
|
||||
DESKTOP_IN_PROCESS = 0,
|
||||
DESKTOP_IN_PROCESS_COMMAND_BUFFER,
|
||||
};
|
||||
@ -55,8 +57,7 @@ enum cef_graphics_implementation_t
|
||||
///
|
||||
// Class representing window information.
|
||||
///
|
||||
typedef struct _cef_window_info_t
|
||||
{
|
||||
typedef struct _cef_window_info_t {
|
||||
// Pointer for the parent GtkBox widget.
|
||||
cef_window_handle_t m_ParentWidget;
|
||||
|
||||
@ -67,8 +68,7 @@ typedef struct _cef_window_info_t
|
||||
///
|
||||
// Class representing print context information.
|
||||
///
|
||||
typedef struct _cef_print_info_t
|
||||
{
|
||||
typedef struct _cef_print_info_t {
|
||||
double m_Scale;
|
||||
} cef_print_info_t;
|
||||
|
||||
@ -78,4 +78,4 @@ typedef struct _cef_print_info_t
|
||||
|
||||
#endif // OS_LINUX
|
||||
|
||||
#endif // _CEF_TYPES_LINUX_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
|
||||
|
@ -28,11 +28,14 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_TYPES_MAC_H
|
||||
#define _CEF_TYPES_MAC_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_MAC_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_MAC_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/internal/cef_build.h"
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
// Window handle.
|
||||
#ifdef __cplusplus
|
||||
@ -54,8 +57,7 @@ extern "C" {
|
||||
///
|
||||
// Supported graphics implementations.
|
||||
///
|
||||
enum cef_graphics_implementation_t
|
||||
{
|
||||
enum cef_graphics_implementation_t {
|
||||
DESKTOP_IN_PROCESS = 0,
|
||||
DESKTOP_IN_PROCESS_COMMAND_BUFFER,
|
||||
};
|
||||
@ -63,8 +65,7 @@ enum cef_graphics_implementation_t
|
||||
///
|
||||
// Class representing window information.
|
||||
///
|
||||
typedef struct _cef_window_info_t
|
||||
{
|
||||
typedef struct _cef_window_info_t {
|
||||
cef_string_t m_windowName;
|
||||
int m_x;
|
||||
int m_y;
|
||||
@ -82,8 +83,7 @@ typedef struct _cef_window_info_t
|
||||
///
|
||||
// Class representing print context information.
|
||||
///
|
||||
typedef struct _cef_print_info_t
|
||||
{
|
||||
typedef struct _cef_print_info_t {
|
||||
double m_Scale;
|
||||
} cef_print_info_t;
|
||||
|
||||
@ -93,4 +93,4 @@ typedef struct _cef_print_info_t
|
||||
|
||||
#endif // OS_MACOSX
|
||||
|
||||
#endif // _CEF_TYPES_MAC_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_MAC_H_
|
||||
|
@ -28,12 +28,15 @@
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#ifndef _CEF_TYPES_WIN_H
|
||||
#define _CEF_TYPES_WIN_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/internal/cef_build.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include <windows.h>
|
||||
#include "cef_string.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -46,8 +49,7 @@ extern "C" {
|
||||
///
|
||||
// Supported graphics implementations.
|
||||
///
|
||||
enum cef_graphics_implementation_t
|
||||
{
|
||||
enum cef_graphics_implementation_t {
|
||||
ANGLE_IN_PROCESS = 0,
|
||||
ANGLE_IN_PROCESS_COMMAND_BUFFER,
|
||||
DESKTOP_IN_PROCESS,
|
||||
@ -57,8 +59,7 @@ enum cef_graphics_implementation_t
|
||||
///
|
||||
// Class representing window information.
|
||||
///
|
||||
typedef struct _cef_window_info_t
|
||||
{
|
||||
typedef struct _cef_window_info_t {
|
||||
// Standard parameters required by CreateWindowEx()
|
||||
DWORD m_dwExStyle;
|
||||
cef_string_t m_windowName;
|
||||
@ -85,8 +86,7 @@ typedef struct _cef_window_info_t
|
||||
///
|
||||
// Class representing print context information.
|
||||
///
|
||||
typedef struct _cef_print_info_t
|
||||
{
|
||||
typedef struct _cef_print_info_t {
|
||||
HDC m_hDC;
|
||||
RECT m_Rect;
|
||||
double m_Scale;
|
||||
@ -98,4 +98,4 @@ typedef struct _cef_print_info_t
|
||||
|
||||
#endif // OS_WIN
|
||||
|
||||
#endif // _CEF_TYPES_WIN_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
|
||||
|
@ -27,40 +27,37 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef _CEF_TYPES_WRAPPERS_H
|
||||
#define _CEF_TYPES_WRAPPERS_H
|
||||
#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_WRAPPERS_H_
|
||||
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_WRAPPERS_H_
|
||||
#pragma once
|
||||
|
||||
#include "cef_string.h"
|
||||
#include "cef_string_list.h"
|
||||
#include "cef_types.h"
|
||||
#include "include/internal/cef_string.h"
|
||||
#include "include/internal/cef_string_list.h"
|
||||
#include "include/internal/cef_types.h"
|
||||
|
||||
///
|
||||
// Template class that provides common functionality for CEF structure wrapping.
|
||||
///
|
||||
template <class traits>
|
||||
class CefStructBase : public traits::struct_type {
|
||||
public:
|
||||
public:
|
||||
typedef typename traits::struct_type struct_type;
|
||||
|
||||
CefStructBase() : attached_to_(NULL)
|
||||
{
|
||||
CefStructBase() : attached_to_(NULL) {
|
||||
Init();
|
||||
}
|
||||
virtual ~CefStructBase()
|
||||
{
|
||||
virtual ~CefStructBase() {
|
||||
// Only clear this object's data if it isn't currently attached to a
|
||||
// structure.
|
||||
if (!attached_to_)
|
||||
Clear(this);
|
||||
}
|
||||
|
||||
CefStructBase(const CefStructBase& r)
|
||||
{
|
||||
CefStructBase(const CefStructBase& r) {
|
||||
Init();
|
||||
*this = r;
|
||||
}
|
||||
CefStructBase(const struct_type& r)
|
||||
{
|
||||
CefStructBase(const struct_type& r) { // NOLINT(runtime/explicit)
|
||||
Init();
|
||||
*this = r;
|
||||
}
|
||||
@ -68,8 +65,7 @@ public:
|
||||
///
|
||||
// Clear this object's values.
|
||||
///
|
||||
void Reset()
|
||||
{
|
||||
void Reset() {
|
||||
Clear(this);
|
||||
Init();
|
||||
}
|
||||
@ -78,8 +74,7 @@ public:
|
||||
// Attach to the source structure's existing values. DetachTo() can be called
|
||||
// to insert the values back into the existing structure.
|
||||
///
|
||||
void AttachTo(struct_type& source)
|
||||
{
|
||||
void AttachTo(struct_type& source) {
|
||||
// Only clear this object's data if it isn't currently attached to a
|
||||
// structure.
|
||||
if (!attached_to_)
|
||||
@ -95,8 +90,7 @@ public:
|
||||
///
|
||||
// Relinquish ownership of values to the target structure.
|
||||
///
|
||||
void DetachTo(struct_type& target)
|
||||
{
|
||||
void DetachTo(struct_type& target) {
|
||||
if (attached_to_ != &target) {
|
||||
// Clear the target structure's values only if we are not currently
|
||||
// attached to that structure.
|
||||
@ -114,25 +108,21 @@ public:
|
||||
// Set this object's values. If |copy| is true the source structure's values
|
||||
// will be copied instead of referenced.
|
||||
///
|
||||
void Set(const struct_type& source, bool copy)
|
||||
{
|
||||
void Set(const struct_type& source, bool copy) {
|
||||
traits::set(&source, this, copy);
|
||||
}
|
||||
|
||||
CefStructBase& operator=(const CefStructBase& s)
|
||||
{
|
||||
CefStructBase& operator=(const CefStructBase& s) {
|
||||
return operator=(static_cast<const struct_type&>(s));
|
||||
}
|
||||
|
||||
CefStructBase& operator=(const struct_type& s)
|
||||
{
|
||||
CefStructBase& operator=(const struct_type& s) {
|
||||
Set(s, true);
|
||||
return *this;
|
||||
}
|
||||
|
||||
protected:
|
||||
void Init()
|
||||
{
|
||||
protected:
|
||||
void Init() {
|
||||
memset(static_cast<struct_type*>(this), 0, sizeof(struct_type));
|
||||
attached_to_ = NULL;
|
||||
traits::init(this);
|
||||
@ -150,8 +140,8 @@ struct CefRectTraits {
|
||||
static inline void init(struct_type* s) {}
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
*target = *src;
|
||||
}
|
||||
};
|
||||
@ -159,33 +149,28 @@ struct CefRectTraits {
|
||||
///
|
||||
// Class representing a rectangle.
|
||||
///
|
||||
class CefRect : public CefStructBase<CefRectTraits>
|
||||
{
|
||||
public:
|
||||
class CefRect : public CefStructBase<CefRectTraits> {
|
||||
public:
|
||||
typedef CefStructBase<CefRectTraits> parent;
|
||||
|
||||
CefRect() : parent() {}
|
||||
CefRect(const cef_rect_t& r) : parent(r) {}
|
||||
CefRect(const CefRect& r) : parent(r) {}
|
||||
CefRect(int x, int y, int width, int height) : parent()
|
||||
{
|
||||
CefRect(const cef_rect_t& r) : parent(r) {} // NOLINT(runtime/explicit)
|
||||
CefRect(const CefRect& r) : parent(r) {} // NOLINT(runtime/explicit)
|
||||
CefRect(int x, int y, int width, int height) : parent() {
|
||||
Set(x, y, width, height);
|
||||
}
|
||||
|
||||
bool IsEmpty() const { return width <= 0 || height <= 0; }
|
||||
void Set(int x, int y, int width, int height)
|
||||
{
|
||||
void Set(int x, int y, int width, int height) {
|
||||
this->x = x, this->y = y, this->width = width, this->height = height;
|
||||
}
|
||||
};
|
||||
|
||||
inline bool operator==(const CefRect& a, const CefRect& b)
|
||||
{
|
||||
inline bool operator==(const CefRect& a, const CefRect& b) {
|
||||
return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
|
||||
}
|
||||
|
||||
inline bool operator!=(const CefRect& a, const CefRect& b)
|
||||
{
|
||||
inline bool operator!=(const CefRect& a, const CefRect& b) {
|
||||
return !(a == b);
|
||||
}
|
||||
|
||||
@ -196,8 +181,8 @@ struct CefPrintOptionsTraits {
|
||||
static inline void init(struct_type* s) {}
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
*target = *src;
|
||||
}
|
||||
};
|
||||
@ -212,8 +197,7 @@ typedef CefStructBase<CefPrintOptionsTraits> CefPrintOptions;
|
||||
struct CefPopupFeaturesTraits {
|
||||
typedef cef_popup_features_t struct_type;
|
||||
|
||||
static inline void init(struct_type* s)
|
||||
{
|
||||
static inline void init(struct_type* s) {
|
||||
s->menuBarVisible = true;
|
||||
s->statusBarVisible = true;
|
||||
s->toolBarVisible = true;
|
||||
@ -222,15 +206,14 @@ struct CefPopupFeaturesTraits {
|
||||
s->resizable = true;
|
||||
}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
if(s->additionalFeatures)
|
||||
static inline void clear(struct_type* s) {
|
||||
if (s->additionalFeatures)
|
||||
cef_string_list_free(s->additionalFeatures);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
if(target->additionalFeatures)
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
if (target->additionalFeatures)
|
||||
cef_string_list_free(target->additionalFeatures);
|
||||
target->additionalFeatures = src->additionalFeatures ?
|
||||
cef_string_list_copy(src->additionalFeatures) : NULL;
|
||||
@ -263,25 +246,23 @@ typedef CefStructBase<CefPopupFeaturesTraits> CefPopupFeatures;
|
||||
struct CefSettingsTraits {
|
||||
typedef cef_settings_t struct_type;
|
||||
|
||||
static inline void init(struct_type* s)
|
||||
{
|
||||
static inline void init(struct_type* s) {
|
||||
s->size = sizeof(struct_type);
|
||||
}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->cache_path);
|
||||
cef_string_clear(&s->user_agent);
|
||||
cef_string_clear(&s->product_version);
|
||||
cef_string_clear(&s->locale);
|
||||
if(s->extra_plugin_paths)
|
||||
if (s->extra_plugin_paths)
|
||||
cef_string_list_free(s->extra_plugin_paths);
|
||||
cef_string_clear(&s->log_file);
|
||||
cef_string_clear(&s->javascript_flags);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->multi_threaded_message_loop = src->multi_threaded_message_loop;
|
||||
|
||||
cef_string_set(src->cache_path.str, src->cache_path.length,
|
||||
@ -292,7 +273,7 @@ struct CefSettingsTraits {
|
||||
&target->product_version, copy);
|
||||
cef_string_set(src->locale.str, src->locale.length, &target->locale, copy);
|
||||
|
||||
if(target->extra_plugin_paths)
|
||||
if (target->extra_plugin_paths)
|
||||
cef_string_list_free(target->extra_plugin_paths);
|
||||
target->extra_plugin_paths = src->extra_plugin_paths ?
|
||||
cef_string_list_copy(src->extra_plugin_paths) : NULL;
|
||||
@ -322,13 +303,11 @@ typedef CefStructBase<CefSettingsTraits> CefSettings;
|
||||
struct CefBrowserSettingsTraits {
|
||||
typedef cef_browser_settings_t struct_type;
|
||||
|
||||
static inline void init(struct_type* s)
|
||||
{
|
||||
static inline void init(struct_type* s) {
|
||||
s->size = sizeof(struct_type);
|
||||
}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->standard_font_family);
|
||||
cef_string_clear(&s->fixed_font_family);
|
||||
cef_string_clear(&s->serif_font_family);
|
||||
@ -339,8 +318,8 @@ struct CefBrowserSettingsTraits {
|
||||
cef_string_clear(&s->user_style_sheet_location);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->drag_drop_disabled = src->drag_drop_disabled;
|
||||
target->load_drops_disabled = src->load_drops_disabled;
|
||||
target->history_disabled = src->history_disabled;
|
||||
@ -432,8 +411,7 @@ struct CefURLPartsTraits {
|
||||
|
||||
static inline void init(struct_type* s) {}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->spec);
|
||||
cef_string_clear(&s->scheme);
|
||||
cef_string_clear(&s->username);
|
||||
@ -444,8 +422,8 @@ struct CefURLPartsTraits {
|
||||
cef_string_clear(&s->query);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
cef_string_set(src->spec.str, src->spec.length, &target->spec, copy);
|
||||
cef_string_set(src->scheme.str, src->scheme.length, &target->scheme, copy);
|
||||
cef_string_set(src->username.str, src->username.length, &target->username,
|
||||
@ -472,8 +450,8 @@ struct CefTimeTraits {
|
||||
|
||||
static inline void clear(struct_type* s) {}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
*target = *src;
|
||||
}
|
||||
};
|
||||
@ -481,15 +459,15 @@ struct CefTimeTraits {
|
||||
///
|
||||
// Class representing a time.
|
||||
///
|
||||
class CefTime : public CefStructBase<CefTimeTraits>
|
||||
{
|
||||
public:
|
||||
class CefTime : public CefStructBase<CefTimeTraits> {
|
||||
public:
|
||||
typedef CefStructBase<CefTimeTraits> parent;
|
||||
|
||||
CefTime() : parent() {}
|
||||
CefTime(const cef_time_t& r) : parent(r) {}
|
||||
CefTime(time_t r) : parent() { SetTimeT(r); }
|
||||
CefTime(double r) : parent() { SetDoubleT(r); }
|
||||
CefTime(const cef_time_t& r) : parent(r) {} // NOLINT(runtime/explicit)
|
||||
CefTime(const CefTime& r) : parent(r) {} // NOLINT(runtime/explicit)
|
||||
explicit CefTime(time_t r) : parent() { SetTimeT(r); }
|
||||
explicit CefTime(double r) : parent() { SetDoubleT(r); }
|
||||
|
||||
// Converts to/from time_t.
|
||||
void SetTimeT(time_t r) {
|
||||
@ -520,16 +498,15 @@ struct CefCookieTraits {
|
||||
|
||||
static inline void init(struct_type* s) {}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->name);
|
||||
cef_string_clear(&s->value);
|
||||
cef_string_clear(&s->domain);
|
||||
cef_string_clear(&s->path);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
cef_string_set(src->name.str, src->name.length, &target->name, copy);
|
||||
cef_string_set(src->value.str, src->value.length, &target->value, copy);
|
||||
cef_string_set(src->domain.str, src->domain.length, &target->domain, copy);
|
||||
@ -554,8 +531,7 @@ struct CefMenuInfoTraits {
|
||||
|
||||
static inline void init(struct_type* s) {}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->linkUrl);
|
||||
cef_string_clear(&s->imageUrl);
|
||||
cef_string_clear(&s->pageUrl);
|
||||
@ -565,8 +541,8 @@ struct CefMenuInfoTraits {
|
||||
cef_string_clear(&s->securityInfo);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->typeFlags = src->typeFlags;
|
||||
target->x = src->x;
|
||||
target->y = src->y;
|
||||
@ -601,13 +577,12 @@ struct CefProxyInfoTraits {
|
||||
|
||||
static inline void init(struct_type* s) {}
|
||||
|
||||
static inline void clear(struct_type* s)
|
||||
{
|
||||
static inline void clear(struct_type* s) {
|
||||
cef_string_clear(&s->proxyList);
|
||||
}
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target, bool copy)
|
||||
{
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->proxyType = src->proxyType;
|
||||
cef_string_set(src->proxyList.str, src->proxyList.length,
|
||||
&target->proxyList, copy);
|
||||
@ -617,14 +592,12 @@ struct CefProxyInfoTraits {
|
||||
///
|
||||
// Class representing the results of proxy resolution.
|
||||
///
|
||||
class CefProxyInfo : public CefStructBase<CefProxyInfoTraits>
|
||||
{
|
||||
public:
|
||||
class CefProxyInfo : public CefStructBase<CefProxyInfoTraits> {
|
||||
public:
|
||||
///
|
||||
// Use a direction connection instead of a proxy.
|
||||
///
|
||||
void UseDirect()
|
||||
{
|
||||
void UseDirect() {
|
||||
proxyType = PROXY_TYPE_DIRECT;
|
||||
}
|
||||
|
||||
@ -637,8 +610,7 @@ public:
|
||||
// Multiple values may be separated by semicolons or whitespace. For example,
|
||||
// "foo1:80;foo2:80".
|
||||
///
|
||||
void UseNamedProxy(const CefString& proxy_uri_list)
|
||||
{
|
||||
void UseNamedProxy(const CefString& proxy_uri_list) {
|
||||
proxyType = PROXY_TYPE_NAMED;
|
||||
(CefString(&proxyList)) = proxy_uri_list;
|
||||
}
|
||||
@ -647,8 +619,7 @@ public:
|
||||
// Use one or more named proxy servers specified in PAC script format. For
|
||||
// example, "PROXY foobar:99; SOCKS fml:2; DIRECT".
|
||||
///
|
||||
void UsePacString(const CefString& pac_string)
|
||||
{
|
||||
void UsePacString(const CefString& pac_string) {
|
||||
proxyType = PROXY_TYPE_PAC_STRING;
|
||||
(CefString(&proxyList)) = pac_string;
|
||||
}
|
||||
@ -660,4 +631,4 @@ public:
|
||||
CefString ProxyList() const { return CefString(&proxyList); }
|
||||
};
|
||||
|
||||
#endif // _CEF_TYPES_WRAPPERS_H
|
||||
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_WRAPPERS_H_
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user