2014-01-06 20:59:48 +01:00
|
|
|
// Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
|
2012-04-03 03:34:16 +02:00
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the name Chromium Embedded
|
|
|
|
// Framework nor the names of its contributors may be used to endorse
|
|
|
|
// or promote products derived from this software without specific prior
|
|
|
|
// written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (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_INCLUDE_INTERNAL_CEF_TYPES_H_
|
|
|
|
#define CEF_INCLUDE_INTERNAL_CEF_TYPES_H_
|
|
|
|
#pragma once
|
|
|
|
|
2023-06-01 16:07:50 +02:00
|
|
|
#include <limits.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/internal/cef_string.h"
|
|
|
|
#include "include/internal/cef_string_list.h"
|
|
|
|
#include "include/internal/cef_time.h"
|
2023-05-25 13:15:06 +02:00
|
|
|
#include "include/internal/cef_types_content_settings.h"
|
2021-09-27 10:48:30 +02:00
|
|
|
#include "include/internal/cef_types_geometry.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Bring in platform-specific definitions.
|
|
|
|
#if defined(OS_WIN)
|
|
|
|
#include "include/internal/cef_types_win.h"
|
2020-08-29 00:39:23 +02:00
|
|
|
#elif defined(OS_MAC)
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/internal/cef_types_mac.h"
|
|
|
|
#elif defined(OS_LINUX)
|
|
|
|
#include "include/internal/cef_types_linux.h"
|
|
|
|
#endif
|
|
|
|
|
2014-01-07 19:04:31 +01:00
|
|
|
// 32-bit ARGB color value, not premultiplied. The color components are always
|
|
|
|
// in a known order. Equivalent to the SkColor type.
|
2023-06-01 16:06:15 +02:00
|
|
|
typedef uint32_t cef_color_t;
|
2014-01-07 19:04:31 +01:00
|
|
|
|
|
|
|
// Return the alpha byte from a cef_color_t value.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define CefColorGetA(color) (((color) >> 24) & 0xFF)
|
2014-01-07 19:04:31 +01:00
|
|
|
// Return the red byte from a cef_color_t value.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define CefColorGetR(color) (((color) >> 16) & 0xFF)
|
2014-01-07 19:04:31 +01:00
|
|
|
// Return the green byte from a cef_color_t value.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define CefColorGetG(color) (((color) >> 8) & 0xFF)
|
2014-01-07 19:04:31 +01:00
|
|
|
// Return the blue byte from a cef_color_t value.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define CefColorGetB(color) (((color) >> 0) & 0xFF)
|
2014-01-07 19:04:31 +01:00
|
|
|
|
|
|
|
// Return an cef_color_t value with the specified byte component values.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define CefColorSetARGB(a, r, g, b) \
|
|
|
|
static_cast<cef_color_t>( \
|
|
|
|
(static_cast<unsigned>(a) << 24) | (static_cast<unsigned>(r) << 16) | \
|
|
|
|
(static_cast<unsigned>(g) << 8) | (static_cast<unsigned>(b) << 0))
|
2014-01-07 19:04:31 +01:00
|
|
|
|
2023-06-01 16:06:15 +02:00
|
|
|
// Return an int64_t value with the specified low and high int32_t component
|
|
|
|
// values.
|
|
|
|
#define CefInt64Set(int32_low, int32_high) \
|
|
|
|
static_cast<int64_t>( \
|
|
|
|
(static_cast<uint32_t>(int32_low)) | \
|
|
|
|
(static_cast<int64_t>(static_cast<int32_t>(int32_high))) << 32)
|
2014-01-28 00:31:03 +01:00
|
|
|
|
2023-06-01 16:06:15 +02:00
|
|
|
// Return the low int32_t value from an int64_t value.
|
|
|
|
#define CefInt64GetLow(int64_val) static_cast<int32_t>(int64_val)
|
|
|
|
// Return the high int32_t value from an int64_t value.
|
2014-01-28 00:31:03 +01:00
|
|
|
#define CefInt64GetHigh(int64_val) \
|
2023-06-01 16:06:15 +02:00
|
|
|
static_cast<int32_t>((static_cast<int64_t>(int64_val) >> 32) & 0xFFFFFFFFL)
|
2014-01-28 00:31:03 +01:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Log severity levels.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default logging (currently INFO logging).
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
|
|
|
LOGSEVERITY_DEFAULT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Verbose logging.
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
|
|
|
LOGSEVERITY_VERBOSE,
|
|
|
|
|
2017-12-18 21:05:38 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// DEBUG logging.
|
2017-12-18 21:05:38 +01:00
|
|
|
///
|
|
|
|
LOGSEVERITY_DEBUG = LOGSEVERITY_VERBOSE,
|
|
|
|
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// INFO logging.
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2012-04-03 03:34:16 +02:00
|
|
|
LOGSEVERITY_INFO,
|
2012-06-25 19:52:54 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// WARNING logging.
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2012-04-03 03:34:16 +02:00
|
|
|
LOGSEVERITY_WARNING,
|
2012-06-25 19:52:54 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// ERROR logging.
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2012-04-03 03:34:16 +02:00
|
|
|
LOGSEVERITY_ERROR,
|
2012-06-25 19:52:54 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// FATAL logging.
|
2019-01-29 20:53:17 +01:00
|
|
|
///
|
|
|
|
LOGSEVERITY_FATAL,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Disable logging to file for all messages, and to stderr for messages with
|
|
|
|
/// severity less than FATAL.
|
2012-06-25 19:52:54 +02:00
|
|
|
///
|
2012-04-03 03:34:16 +02:00
|
|
|
LOGSEVERITY_DISABLE = 99
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_log_severity_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Represents the state of a setting.
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Use the default state for the setting.
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
|
|
|
STATE_DEFAULT = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Enable or allow the setting.
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
|
|
|
STATE_ENABLED,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Disable or disallow the setting.
|
2013-02-07 20:59:40 +01:00
|
|
|
///
|
|
|
|
STATE_DISABLED,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_state_t;
|
2013-02-07 20:59:40 +01:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Initialization settings. Specify NULL or 0 to get the recommended default
|
|
|
|
/// values. Many of these and other settings can also configured using command-
|
|
|
|
/// line switches.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_settings_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Size of this structure.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
size_t size;
|
|
|
|
|
2013-11-15 19:47:02 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to disable the sandbox for sub-processes. See
|
|
|
|
/// cef_sandbox_win.h for requirements to enable the sandbox on Windows. Also
|
|
|
|
/// configurable using the "no-sandbox" command-line switch.
|
2013-11-15 19:47:02 +01:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int no_sandbox;
|
2013-11-15 19:47:02 +01:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The path to a separate executable that will be launched for sub-processes.
|
|
|
|
/// If this value is empty on Windows or Linux then the main process
|
|
|
|
/// executable will be used. If this value is empty on macOS then a helper
|
|
|
|
/// executable must exist at "Contents/Frameworks/<app>
|
|
|
|
/// Helper.app/Contents/MacOS/<app> Helper" in the top-level app bundle. See
|
|
|
|
/// the comments on CefExecuteProcess() for details. If this value is
|
|
|
|
/// non-empty then it must be an absolute path. Also configurable using the
|
|
|
|
/// "browser-subprocess-path" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t browser_subprocess_path;
|
|
|
|
|
2017-01-27 01:14:56 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The path to the CEF framework directory on macOS. If this value is empty
|
|
|
|
/// then the framework must exist at "Contents/Frameworks/Chromium Embedded
|
|
|
|
/// Framework.framework" in the top-level app bundle. If this value is
|
|
|
|
/// non-empty then it must be an absolute path. Also configurable using the
|
|
|
|
/// "framework-dir-path" command-line switch.
|
2017-01-27 01:14:56 +01:00
|
|
|
///
|
|
|
|
cef_string_t framework_dir_path;
|
|
|
|
|
2019-07-25 17:47:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The path to the main bundle on macOS. If this value is empty then it
|
|
|
|
/// defaults to the top-level app bundle. If this value is non-empty then it
|
|
|
|
/// must be an absolute path. Also configurable using the "main-bundle-path"
|
|
|
|
/// command-line switch.
|
2019-07-25 17:47:46 +02:00
|
|
|
///
|
|
|
|
cef_string_t main_bundle_path;
|
|
|
|
|
2020-06-25 04:34:12 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to enable use of the Chrome runtime in CEF. This feature
|
|
|
|
/// is considered experimental and is not recommended for most users at this
|
|
|
|
/// time. See issue #2969 for details.
|
2020-06-25 04:34:12 +02:00
|
|
|
///
|
|
|
|
int chrome_runtime;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to have the browser process message loop run in a separate
|
|
|
|
/// thread. If false (0) then the CefDoMessageLoopWork() function must be
|
|
|
|
/// called from your application message loop. This option is only supported
|
|
|
|
/// on Windows and Linux.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int multi_threaded_message_loop;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2016-05-04 20:00:03 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to control browser process main (UI) thread message pump
|
|
|
|
/// scheduling via the CefBrowserProcessHandler::OnScheduleMessagePumpWork()
|
|
|
|
/// callback. This option is recommended for use in combination with the
|
|
|
|
/// CefDoMessageLoopWork() function in cases where the CEF message loop must
|
|
|
|
/// be integrated into an existing application message loop (see additional
|
|
|
|
/// comments and warnings on CefDoMessageLoopWork). Enabling this option is
|
|
|
|
/// not recommended for most users; leave this option disabled and use either
|
|
|
|
/// the CefRunMessageLoop() function or multi_threaded_message_loop if
|
|
|
|
/// possible.
|
2016-05-04 20:00:03 +02:00
|
|
|
///
|
|
|
|
int external_message_pump;
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to enable windowless (off-screen) rendering support. Do
|
|
|
|
/// not enable this value if the application does not use windowless rendering
|
|
|
|
/// as it may reduce rendering performance on some systems.
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
|
|
|
int windowless_rendering_enabled;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to disable configuration of browser process features using
|
|
|
|
/// standard CEF and Chromium command-line arguments. Configuration can still
|
|
|
|
/// be specified using CEF data structures or via the
|
|
|
|
/// CefApp::OnBeforeCommandLineProcessing() method.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int command_line_args_disabled;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The location where data for the global browser cache will be stored on
|
|
|
|
/// disk. If this value is non-empty then it must be an absolute path that is
|
|
|
|
/// either equal to or a child directory of CefSettings.root_cache_path. If
|
|
|
|
/// this value is empty then browsers will be created in "incognito mode"
|
|
|
|
/// where in-memory caches are used for storage and no data is persisted to
|
|
|
|
/// disk. HTML5 databases such as localStorage will only persist across
|
|
|
|
/// sessions if a cache path is specified. Can be overridden for individual
|
|
|
|
/// CefRequestContext instances via the CefRequestContextSettings.cache_path
|
|
|
|
/// value. When using the Chrome runtime the "default" profile will be used if
|
|
|
|
/// |cache_path| and |root_cache_path| have the same value.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t cache_path;
|
|
|
|
|
2019-03-24 19:41:42 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The root directory that all CefSettings.cache_path and
|
|
|
|
/// CefRequestContextSettings.cache_path values must have in common. If this
|
|
|
|
/// value is empty and CefSettings.cache_path is non-empty then it will
|
2023-06-06 16:41:53 +02:00
|
|
|
/// default to the CefSettings.cache_path value. If both values are empty
|
|
|
|
/// then the default platform-specific directory will be used
|
2022-09-01 04:03:04 +02:00
|
|
|
/// ("~/.config/cef_user_data" directory on Linux, "~/Library/Application
|
|
|
|
/// Support/CEF/User Data" directory on MacOS, "AppData\Local\CEF\User Data"
|
|
|
|
/// directory under the user profile directory on Windows). If this value is
|
2023-06-06 16:41:53 +02:00
|
|
|
/// non-empty then it must be an absolute path. Failure to set this value
|
|
|
|
/// correctly may result in the sandbox blocking read/write access to certain
|
|
|
|
/// files.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
2023-06-06 16:41:53 +02:00
|
|
|
cef_string_t root_cache_path;
|
2015-03-02 21:25:14 +01:00
|
|
|
|
2013-02-13 20:53:41 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// To persist session cookies (cookies without an expiry date or validity
|
|
|
|
/// interval) by default when using the global cookie manager set this value
|
|
|
|
/// to true (1). Session cookies are generally intended to be transient and
|
|
|
|
/// most Web browsers do not persist them. A |cache_path| value must also be
|
|
|
|
/// specified to enable this feature. Also configurable using the
|
|
|
|
/// "persist-session-cookies" command-line switch. Can be overridden for
|
|
|
|
/// individual CefRequestContext instances via the
|
|
|
|
/// CefRequestContextSettings.persist_session_cookies value.
|
2013-02-13 20:53:41 +01:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int persist_session_cookies;
|
2013-02-13 20:53:41 +01:00
|
|
|
|
2015-10-17 02:44:00 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// To persist user preferences as a JSON file in the cache path directory set
|
|
|
|
/// this value to true (1). A |cache_path| value must also be specified
|
|
|
|
/// to enable this feature. Also configurable using the
|
|
|
|
/// "persist-user-preferences" command-line switch. Can be overridden for
|
|
|
|
/// individual CefRequestContext instances via the
|
|
|
|
/// CefRequestContextSettings.persist_user_preferences value.
|
2015-10-17 02:44:00 +02:00
|
|
|
///
|
|
|
|
int persist_user_preferences;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Value that will be returned as the User-Agent HTTP header. If empty the
|
|
|
|
/// default User-Agent string will be used. Also configurable using the
|
|
|
|
/// "user-agent" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t user_agent;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Value that will be inserted as the product portion of the default
|
|
|
|
/// User-Agent string. If empty the Chromium product version will be used. If
|
|
|
|
/// |userAgent| is specified this value will be ignored. Also configurable
|
|
|
|
/// using the "user-agent-product" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2021-04-27 18:39:09 +02:00
|
|
|
cef_string_t user_agent_product;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The locale string that will be passed to WebKit. If empty the default
|
|
|
|
/// locale of "en-US" will be used. This value is ignored on Linux where
|
|
|
|
/// locale is determined using environment variable parsing with the
|
|
|
|
/// precedence order: LANGUAGE, LC_ALL, LC_MESSAGES and LANG. Also
|
|
|
|
/// configurable using the "lang" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t locale;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The directory and file name to use for the debug log. If empty a default
|
|
|
|
/// log file name and location will be used. On Windows and Linux a
|
|
|
|
/// "debug.log" file will be written in the main executable directory. On
|
|
|
|
/// MacOS a "~/Library/Logs/[app name]_debug.log" file will be written where
|
|
|
|
/// [app name] is the name of the main app executable. Also configurable using
|
|
|
|
/// the "log-file" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t log_file;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The log severity. Only messages of this severity level or higher will be
|
|
|
|
/// logged. When set to DISABLE no messages will be written to the log file,
|
|
|
|
/// but FATAL messages will still be output to stderr. Also configurable using
|
|
|
|
/// the "log-severity" command-line switch with a value of "verbose", "info",
|
|
|
|
/// "warning", "error", "fatal" or "disable".
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_log_severity_t log_severity;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Custom flags that will be used when initializing the V8 JavaScript engine.
|
|
|
|
/// The consequences of using custom flags may not be well tested. Also
|
|
|
|
/// configurable using the "js-flags" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t javascript_flags;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The fully qualified path for the resources directory. If this value is
|
|
|
|
/// empty the *.pak files must be located in the module directory on
|
|
|
|
/// Windows/Linux or the app bundle Resources directory on MacOS. If this
|
|
|
|
/// value is non-empty then it must be an absolute path. Also configurable
|
|
|
|
/// using the "resources-dir-path" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2012-09-06 19:42:16 +02:00
|
|
|
cef_string_t resources_dir_path;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The fully qualified path for the locales directory. If this value is empty
|
|
|
|
/// the locales directory must be located in the module directory. If this
|
|
|
|
/// value is non-empty then it must be an absolute path. This value is ignored
|
|
|
|
/// on MacOS where pack files are always loaded from the app bundle Resources
|
|
|
|
/// directory. Also configurable using the "locales-dir-path" command-line
|
|
|
|
/// switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t locales_dir_path;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) to disable loading of pack files for resources and
|
|
|
|
/// locales. A resource bundle handler must be provided for the browser and
|
|
|
|
/// render processes via CefApp::GetResourceBundleHandler() if loading of pack
|
|
|
|
/// files is disabled. Also configurable using the "disable-pack-loading"
|
|
|
|
/// command- line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int pack_loading_disabled;
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to a value between 1024 and 65535 to enable remote debugging on the
|
|
|
|
/// specified port. Also configurable using the "remote-debugging-port"
|
|
|
|
/// command-line switch. Remote debugging can be accessed by loading the
|
|
|
|
/// chrome://inspect page in Google Chrome. Port numbers 9222 and 9229 are
|
|
|
|
/// discoverable by default. Other port numbers may need to be configured via
|
|
|
|
/// "Discover network targets" on the Devices tab.
|
2012-04-24 20:01:48 +02:00
|
|
|
///
|
|
|
|
int remote_debugging_port;
|
2012-10-29 22:46:02 +01:00
|
|
|
|
2012-11-02 19:16:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The number of stack trace frames to capture for uncaught exceptions.
|
2022-09-06 22:11:02 +02:00
|
|
|
/// Specify a positive value to enable the
|
|
|
|
/// CefRenderProcessHandler::OnUncaughtException() callback. Specify 0
|
|
|
|
/// (default value) and OnUncaughtException() will not be called. Also
|
|
|
|
/// configurable using the "uncaught-exception-stack-size" command-line
|
|
|
|
/// switch.
|
2012-11-02 19:16:28 +01:00
|
|
|
///
|
|
|
|
int uncaught_exception_stack_size;
|
|
|
|
|
2014-01-07 19:04:31 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Background color used for the browser before a document is loaded and when
|
|
|
|
/// no document color is specified. The alpha component must be either fully
|
|
|
|
/// opaque (0xFF) or fully transparent (0x00). If the alpha component is fully
|
|
|
|
/// opaque then the RGB components will be used as the background color. If
|
|
|
|
/// the alpha component is fully transparent for a windowed browser then the
|
|
|
|
/// default value of opaque white be used. If the alpha component is fully
|
|
|
|
/// transparent for a windowless (off-screen) browser then transparent
|
|
|
|
/// painting will be enabled.
|
2014-01-07 19:04:31 +01:00
|
|
|
///
|
|
|
|
cef_color_t background_color;
|
2015-02-18 18:28:56 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Comma delimited ordered list of language codes without any whitespace that
|
|
|
|
/// will be used in the "Accept-Language" HTTP header. May be overridden on a
|
|
|
|
/// per-browser basis using the CefBrowserSettings.accept_language_list value.
|
|
|
|
/// If both values are empty then "en-US,en" will be used. Can be overridden
|
|
|
|
/// for individual CefRequestContext instances via the
|
|
|
|
/// CefRequestContextSettings.accept_language_list value.
|
2015-02-18 18:28:56 +01:00
|
|
|
///
|
|
|
|
cef_string_t accept_language_list;
|
2019-05-07 18:22:16 +02:00
|
|
|
|
2021-04-09 20:34:45 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Comma delimited list of schemes supported by the associated
|
|
|
|
/// CefCookieManager. If |cookieable_schemes_exclude_defaults| is false (0)
|
|
|
|
/// the default schemes ("http", "https", "ws" and "wss") will also be
|
2023-01-26 19:50:30 +01:00
|
|
|
/// supported. Not specifying a |cookieable_schemes_list| value and setting
|
2022-09-01 04:03:04 +02:00
|
|
|
/// |cookieable_schemes_exclude_defaults| to true (1) will disable all loading
|
2023-01-26 19:50:30 +01:00
|
|
|
/// and saving of cookies. These settings will only impact the global
|
|
|
|
/// CefRequestContext. Individual CefRequestContext instances can be
|
|
|
|
/// configured via the CefRequestContextSettings.cookieable_schemes_list and
|
2022-09-01 04:03:04 +02:00
|
|
|
/// CefRequestContextSettings.cookieable_schemes_exclude_defaults values.
|
2021-04-09 20:34:45 +02:00
|
|
|
///
|
|
|
|
cef_string_t cookieable_schemes_list;
|
|
|
|
int cookieable_schemes_exclude_defaults;
|
2012-04-03 03:34:16 +02:00
|
|
|
} cef_settings_t;
|
|
|
|
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Request context initialization settings. Specify NULL or 0 to get the
|
|
|
|
/// recommended default values.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_request_context_settings_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Size of this structure.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
size_t size;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The location where cache data for this request context will be stored on
|
|
|
|
/// disk. If this value is non-empty then it must be an absolute path that is
|
|
|
|
/// either equal to or a child directory of CefSettings.root_cache_path. If
|
|
|
|
/// this value is empty then browsers will be created in "incognito mode"
|
|
|
|
/// where in-memory caches are used for storage and no data is persisted to
|
|
|
|
/// disk. HTML5 databases such as localStorage will only persist across
|
|
|
|
/// sessions if a cache path is specified. To share the global browser cache
|
|
|
|
/// and related configuration set this value to match the
|
|
|
|
/// CefSettings.cache_path value.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
cef_string_t cache_path;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// To persist session cookies (cookies without an expiry date or validity
|
|
|
|
/// interval) by default when using the global cookie manager set this value
|
|
|
|
/// to true (1). Session cookies are generally intended to be transient and
|
|
|
|
/// most Web browsers do not persist them. Can be set globally using the
|
|
|
|
/// CefSettings.persist_session_cookies value. This value will be ignored if
|
|
|
|
/// |cache_path| is empty or if it matches the CefSettings.cache_path value.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
int persist_session_cookies;
|
|
|
|
|
2015-10-17 02:44:00 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// To persist user preferences as a JSON file in the cache path directory set
|
|
|
|
/// this value to true (1). Can be set globally using the
|
|
|
|
/// CefSettings.persist_user_preferences value. This value will be ignored if
|
|
|
|
/// |cache_path| is empty or if it matches the CefSettings.cache_path value.
|
2015-10-17 02:44:00 +02:00
|
|
|
///
|
|
|
|
int persist_user_preferences;
|
|
|
|
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Comma delimited ordered list of language codes without any whitespace that
|
|
|
|
/// will be used in the "Accept-Language" HTTP header. Can be set globally
|
|
|
|
/// using the CefSettings.accept_language_list value or overridden on a per-
|
|
|
|
/// browser basis using the CefBrowserSettings.accept_language_list value. If
|
|
|
|
/// all values are empty then "en-US,en" will be used. This value will be
|
|
|
|
/// ignored if |cache_path| matches the CefSettings.cache_path value.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
cef_string_t accept_language_list;
|
2021-04-09 20:34:45 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Comma delimited list of schemes supported by the associated
|
|
|
|
/// CefCookieManager. If |cookieable_schemes_exclude_defaults| is false (0)
|
|
|
|
/// the default schemes ("http", "https", "ws" and "wss") will also be
|
2023-01-26 19:50:30 +01:00
|
|
|
/// supported. Not specifying a |cookieable_schemes_list| value and setting
|
2022-09-01 04:03:04 +02:00
|
|
|
/// |cookieable_schemes_exclude_defaults| to true (1) will disable all loading
|
2023-01-26 19:50:30 +01:00
|
|
|
/// and saving of cookies. These values will be ignored if |cache_path|
|
|
|
|
/// matches the CefSettings.cache_path value.
|
2021-04-09 20:34:45 +02:00
|
|
|
///
|
|
|
|
cef_string_t cookieable_schemes_list;
|
|
|
|
int cookieable_schemes_exclude_defaults;
|
2015-03-02 21:25:14 +01:00
|
|
|
} cef_request_context_settings_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Browser initialization settings. Specify NULL or 0 to get the recommended
|
|
|
|
/// default values. The consequences of using custom values may not be well
|
|
|
|
/// tested. Many of these and other settings can also configured using command-
|
|
|
|
/// line switches.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_browser_settings_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Size of this structure.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
size_t size;
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint
|
|
|
|
/// will be called for a windowless browser. The actual fps may be lower if
|
|
|
|
/// the browser cannot generate frames at the requested rate. The minimum
|
|
|
|
/// value is 1 and the maximum value is 60 (default 30). This value can also
|
|
|
|
/// be changed dynamically via CefBrowserHost::SetWindowlessFrameRate.
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
|
|
|
int windowless_frame_rate;
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// BEGIN values that map to WebPreferences settings.
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Font settings.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t standard_font_family;
|
|
|
|
cef_string_t fixed_font_family;
|
|
|
|
cef_string_t serif_font_family;
|
|
|
|
cef_string_t sans_serif_font_family;
|
|
|
|
cef_string_t cursive_font_family;
|
|
|
|
cef_string_t fantasy_font_family;
|
|
|
|
int default_font_size;
|
|
|
|
int default_fixed_font_size;
|
|
|
|
int minimum_font_size;
|
|
|
|
int minimum_logical_font_size;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default encoding for Web content. If empty "ISO-8859-1" will be used. Also
|
|
|
|
/// configurable using the "default-encoding" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t default_encoding;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls the loading of fonts from remote sources. Also configurable using
|
|
|
|
/// the "disable-remote-fonts" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t remote_fonts;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether JavaScript can be executed. Also configurable using the
|
|
|
|
/// "disable-javascript" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t javascript;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether JavaScript can be used to close windows that were not
|
|
|
|
/// opened via JavaScript. JavaScript can still be used to close windows that
|
|
|
|
/// were opened via JavaScript or that have no back/forward history. Also
|
|
|
|
/// configurable using the "disable-javascript-close-windows" command-line
|
|
|
|
/// switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t javascript_close_windows;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether JavaScript can access the clipboard. Also configurable
|
|
|
|
/// using the "disable-javascript-access-clipboard" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t javascript_access_clipboard;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether DOM pasting is supported in the editor via
|
|
|
|
/// execCommand("paste"). The |javascript_access_clipboard| setting must also
|
|
|
|
/// be enabled. Also configurable using the "disable-javascript-dom-paste"
|
|
|
|
/// command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t javascript_dom_paste;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether image URLs will be loaded from the network. A cached
|
|
|
|
/// image will still be rendered if requested. Also configurable using the
|
|
|
|
/// "disable-image-loading" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t image_loading;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether standalone images will be shrunk to fit the page. Also
|
|
|
|
/// configurable using the "image-shrink-standalone-to-fit" command-line
|
|
|
|
/// switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t image_shrink_standalone_to_fit;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether text areas can be resized. Also configurable using the
|
|
|
|
/// "disable-text-area-resize" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t text_area_resize;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether the tab key can advance focus to links. Also configurable
|
|
|
|
/// using the "disable-tab-to-links" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t tab_to_links;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether local storage can be used. Also configurable using the
|
|
|
|
/// "disable-local-storage" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t local_storage;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether databases can be used. Also configurable using the
|
|
|
|
/// "disable-databases" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t databases;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether WebGL can be used. Note that WebGL requires hardware
|
|
|
|
/// support and may not work on all systems even when enabled. Also
|
|
|
|
/// configurable using the "disable-webgl" command-line switch.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2013-02-07 20:59:40 +01:00
|
|
|
cef_state_t webgl;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// END values that map to WebPreferences settings.
|
2022-03-21 22:22:07 +01:00
|
|
|
|
2014-04-15 21:02:30 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Background color used for the browser before a document is loaded and when
|
|
|
|
/// no document color is specified. The alpha component must be either fully
|
|
|
|
/// opaque (0xFF) or fully transparent (0x00). If the alpha component is fully
|
|
|
|
/// opaque then the RGB components will be used as the background color. If
|
|
|
|
/// the alpha component is fully transparent for a windowed browser then the
|
|
|
|
/// CefSettings.background_color value will be used. If the alpha component is
|
|
|
|
/// fully transparent for a windowless (off-screen) browser then transparent
|
|
|
|
/// painting will be enabled.
|
2014-04-15 21:02:30 +02:00
|
|
|
///
|
|
|
|
cef_color_t background_color;
|
2015-02-18 18:28:56 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Comma delimited ordered list of language codes without any whitespace that
|
|
|
|
/// will be used in the "Accept-Language" HTTP header. May be set globally
|
|
|
|
/// using the CefSettings.accept_language_list value. If both values are
|
|
|
|
/// empty then "en-US,en" will be used.
|
2015-02-18 18:28:56 +01:00
|
|
|
///
|
|
|
|
cef_string_t accept_language_list;
|
2022-03-21 22:22:07 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Controls whether the Chrome status bubble will be used. Only supported
|
|
|
|
/// with the Chrome runtime. For details about the status bubble see
|
|
|
|
/// https://www.chromium.org/user-experience/status-bubble/
|
2022-03-21 22:22:07 +01:00
|
|
|
///
|
|
|
|
cef_state_t chrome_status_bubble;
|
2012-04-03 03:34:16 +02:00
|
|
|
} cef_browser_settings_t;
|
|
|
|
|
2015-04-02 17:21:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return value types.
|
2015-04-02 17:21:46 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Cancel immediately.
|
2015-04-02 17:21:46 +02:00
|
|
|
///
|
|
|
|
RV_CANCEL = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Continue immediately.
|
2015-04-02 17:21:46 +02:00
|
|
|
///
|
|
|
|
RV_CONTINUE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Continue asynchronously (usually via a callback).
|
2015-04-02 17:21:46 +02:00
|
|
|
///
|
|
|
|
RV_CONTINUE_ASYNC,
|
|
|
|
} cef_return_value_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// URL component parts.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_urlparts_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The complete URL specification.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t spec;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Scheme component not including the colon (e.g., "http").
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t scheme;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// User name component.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t username;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Password component.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t password;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Host component. This may be a hostname, an IPv4 address or an IPv6 literal
|
|
|
|
/// surrounded by square brackets (e.g., "[2001:db8::1]").
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t host;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Port number component.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t port;
|
|
|
|
|
2014-01-28 20:19:41 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Origin contains just the scheme, host, and port from a URL. Equivalent to
|
|
|
|
/// clearing any username and password, replacing the path with a slash, and
|
|
|
|
/// clearing everything after that. This value will be empty for non-standard
|
|
|
|
/// URLs.
|
2014-01-28 20:19:41 +01:00
|
|
|
///
|
|
|
|
cef_string_t origin;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Path component including the first slash following the host.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t path;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Query string component (i.e., everything following the '?').
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t query;
|
2020-03-06 18:40:28 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Fragment (hash) identifier component (i.e., the string following the '#').
|
2020-03-06 18:40:28 +01:00
|
|
|
///
|
|
|
|
cef_string_t fragment;
|
2012-04-03 03:34:16 +02:00
|
|
|
} cef_urlparts_t;
|
|
|
|
|
2020-04-24 23:48:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Cookie priority values.
|
2020-04-24 23:48:16 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_COOKIE_PRIORITY_LOW = -1,
|
|
|
|
CEF_COOKIE_PRIORITY_MEDIUM = 0,
|
|
|
|
CEF_COOKIE_PRIORITY_HIGH = 1,
|
|
|
|
} cef_cookie_priority_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Cookie same site values.
|
2020-04-24 23:48:16 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_COOKIE_SAME_SITE_UNSPECIFIED,
|
|
|
|
CEF_COOKIE_SAME_SITE_NO_RESTRICTION,
|
|
|
|
CEF_COOKIE_SAME_SITE_LAX_MODE,
|
|
|
|
CEF_COOKIE_SAME_SITE_STRICT_MODE,
|
|
|
|
} cef_cookie_same_site_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Cookie information.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_cookie_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The cookie name.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t name;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The cookie value.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t value;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If |domain| is empty a host cookie will be created instead of a domain
|
|
|
|
/// cookie. Domain cookies are stored with a leading "." and are visible to
|
|
|
|
/// sub-domains whereas host cookies are not.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t domain;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If |path| is non-empty only URLs at or below the path will get the cookie
|
|
|
|
/// value.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
cef_string_t path;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If |secure| is true the cookie will only be sent for HTTPS requests.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int secure;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If |httponly| is true the cookie will only be sent for HTTP requests.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int httponly;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The cookie creation date. This is automatically populated by the system on
|
|
|
|
/// cookie creation.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-05-31 22:28:43 +02:00
|
|
|
cef_basetime_t creation;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The cookie last access date. This is automatically populated by the system
|
|
|
|
/// on access.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-05-31 22:28:43 +02:00
|
|
|
cef_basetime_t last_access;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The cookie expiration date is only valid if |has_expires| is true.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int has_expires;
|
2022-05-31 22:28:43 +02:00
|
|
|
cef_basetime_t expires;
|
2020-04-24 23:48:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Same site.
|
2020-04-24 23:48:16 +02:00
|
|
|
///
|
|
|
|
cef_cookie_same_site_t same_site;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Priority.
|
2020-04-24 23:48:16 +02:00
|
|
|
///
|
|
|
|
cef_cookie_priority_t priority;
|
2012-04-03 03:34:16 +02:00
|
|
|
} cef_cookie_t;
|
|
|
|
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Process termination status values.
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Non-zero exit status.
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
|
|
|
TS_ABNORMAL_TERMINATION,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// SIGKILL or task manager kill.
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
|
|
|
TS_PROCESS_WAS_KILLED,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Segmentation fault.
|
2012-06-25 21:49:17 +02:00
|
|
|
///
|
|
|
|
TS_PROCESS_CRASHED,
|
2018-09-24 10:50:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.
|
2018-09-24 10:50:01 +02:00
|
|
|
///
|
|
|
|
TS_PROCESS_OOM,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_termination_status_t;
|
2012-06-25 21:49:17 +02:00
|
|
|
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Path key values.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Current directory.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_DIR_CURRENT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Directory containing PK_FILE_EXE.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_DIR_EXE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Directory containing PK_FILE_MODULE.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_DIR_MODULE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Temporary directory.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_DIR_TEMP,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Path and filename of the current executable.
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_FILE_EXE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Path and filename of the module containing the CEF code (usually the
|
2022-09-02 19:10:09 +02:00
|
|
|
/// libcef module).
|
2012-06-26 18:47:05 +02:00
|
|
|
///
|
|
|
|
PK_FILE_MODULE,
|
2015-03-02 21:25:14 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// "Local Settings\Application Data" directory under the user profile
|
|
|
|
/// directory on Windows.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
PK_LOCAL_APP_DATA,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// "Application Data" directory under the user profile directory on Windows
|
|
|
|
/// and "~/Library/Application Support" directory on MacOS.
|
2015-03-02 21:25:14 +01:00
|
|
|
///
|
|
|
|
PK_USER_DATA,
|
2017-08-04 00:55:19 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Directory containing application resources. Can be configured via
|
|
|
|
/// CefSettings.resources_dir_path.
|
2017-08-04 00:55:19 +02:00
|
|
|
///
|
|
|
|
PK_DIR_RESOURCES,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_path_key_t;
|
2012-06-26 18:47:05 +02:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Storage types.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-03 03:34:16 +02:00
|
|
|
ST_LOCALSTORAGE = 0,
|
|
|
|
ST_SESSIONSTORAGE,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_storage_type_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported error code values. For the complete list of error values see
|
|
|
|
/// "include/base/internal/cef_net_error_list.h".
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2019-04-16 18:06:54 +02:00
|
|
|
// No error.
|
2012-06-19 18:29:49 +02:00
|
|
|
ERR_NONE = 0,
|
2019-04-16 18:06:54 +02:00
|
|
|
|
2019-09-04 17:13:32 +02:00
|
|
|
#define NET_ERROR(label, value) ERR_##label = value,
|
2019-04-16 18:06:54 +02:00
|
|
|
#include "include/base/internal/cef_net_error_list.h"
|
|
|
|
#undef NET_ERROR
|
|
|
|
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_errorcode_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2015-12-18 19:03:03 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported certificate status code values. See net\cert\cert_status_flags.h
|
|
|
|
/// for more information. CERT_STATUS_NONE is new in CEF because we use an
|
|
|
|
/// enum while cert_status_flags.h uses a typedef and static const variables.
|
2015-12-18 19:03:03 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CERT_STATUS_NONE = 0,
|
|
|
|
CERT_STATUS_COMMON_NAME_INVALID = 1 << 0,
|
|
|
|
CERT_STATUS_DATE_INVALID = 1 << 1,
|
|
|
|
CERT_STATUS_AUTHORITY_INVALID = 1 << 2,
|
|
|
|
// 1 << 3 is reserved for ERR_CERT_CONTAINS_ERRORS (not useful with WinHTTP).
|
|
|
|
CERT_STATUS_NO_REVOCATION_MECHANISM = 1 << 4,
|
|
|
|
CERT_STATUS_UNABLE_TO_CHECK_REVOCATION = 1 << 5,
|
|
|
|
CERT_STATUS_REVOKED = 1 << 6,
|
|
|
|
CERT_STATUS_INVALID = 1 << 7,
|
|
|
|
CERT_STATUS_WEAK_SIGNATURE_ALGORITHM = 1 << 8,
|
|
|
|
// 1 << 9 was used for CERT_STATUS_NOT_IN_DNS
|
|
|
|
CERT_STATUS_NON_UNIQUE_NAME = 1 << 10,
|
|
|
|
CERT_STATUS_WEAK_KEY = 1 << 11,
|
|
|
|
// 1 << 12 was used for CERT_STATUS_WEAK_DH_KEY
|
|
|
|
CERT_STATUS_PINNED_KEY_MISSING = 1 << 13,
|
|
|
|
CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 1 << 14,
|
|
|
|
CERT_STATUS_VALIDITY_TOO_LONG = 1 << 15,
|
|
|
|
|
|
|
|
// Bits 16 to 31 are for non-error statuses.
|
|
|
|
CERT_STATUS_IS_EV = 1 << 16,
|
|
|
|
CERT_STATUS_REV_CHECKING_ENABLED = 1 << 17,
|
|
|
|
// Bit 18 was CERT_STATUS_IS_DNSSEC
|
|
|
|
CERT_STATUS_SHA1_SIGNATURE_PRESENT = 1 << 19,
|
|
|
|
CERT_STATUS_CT_COMPLIANCE_FAILED = 1 << 20,
|
|
|
|
} cef_cert_status_t;
|
|
|
|
|
2015-03-06 22:38:38 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The manner in which a link click should be opened. These constants match
|
|
|
|
/// their equivalents in Chromium's window_open_disposition.h and should not be
|
|
|
|
/// renumbered.
|
2015-03-06 22:38:38 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
WOD_UNKNOWN,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Current tab. This is the default in most cases.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_CURRENT_TAB,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Indicates that only one tab with the url should exist in the same window.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_SINGLETON_TAB,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Shift key + Middle mouse button or meta/ctrl key while clicking.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_NEW_FOREGROUND_TAB,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Middle mouse button or meta/ctrl key while clicking.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_NEW_BACKGROUND_TAB,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// New popup window.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_NEW_POPUP,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Shift key while clicking.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_NEW_WINDOW,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Alt key while clicking.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_SAVE_TO_DISK,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// New off-the-record (incognito) window.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
2015-03-06 22:38:38 +01:00
|
|
|
WOD_OFF_THE_RECORD,
|
2022-03-22 19:31:30 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Special case error condition from the renderer.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
|
|
|
WOD_IGNORE_ACTION,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Activates an existing tab containing the url, rather than navigating.
|
|
|
|
/// This is similar to SINGLETON_TAB, but searches across all windows from
|
|
|
|
/// the current profile and anonymity (instead of just the current one);
|
|
|
|
/// closes the current tab on switching if the current tab was the NTP with
|
|
|
|
/// no session history; and behaves like CURRENT_TAB instead of
|
|
|
|
/// NEW_FOREGROUND_TAB when no existing tab is found.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
|
|
|
WOD_SWITCH_TO_TAB,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Creates a new document picture-in-picture window showing a child WebView.
|
2022-03-22 19:31:30 +01:00
|
|
|
///
|
|
|
|
WOD_NEW_PICTURE_IN_PICTURE,
|
2015-03-06 22:38:38 +01:00
|
|
|
} cef_window_open_disposition_t;
|
|
|
|
|
2013-06-24 17:45:58 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// "Verb" of a drag-and-drop operation as negotiated between the source and
|
|
|
|
/// destination. These constants match their equivalents in WebCore's
|
|
|
|
/// DragActions.h and should not be renumbered.
|
2013-06-24 17:45:58 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
DRAG_OPERATION_NONE = 0,
|
|
|
|
DRAG_OPERATION_COPY = 1,
|
|
|
|
DRAG_OPERATION_LINK = 2,
|
|
|
|
DRAG_OPERATION_GENERIC = 4,
|
|
|
|
DRAG_OPERATION_PRIVATE = 8,
|
|
|
|
DRAG_OPERATION_MOVE = 16,
|
|
|
|
DRAG_OPERATION_DELETE = 32,
|
|
|
|
DRAG_OPERATION_EVERY = UINT_MAX
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_drag_operations_mask_t;
|
2013-06-24 17:45:58 +02:00
|
|
|
|
2019-02-26 17:49:41 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Input mode of a virtual keyboard. These constants match their equivalents
|
|
|
|
/// in Chromium's text_input_mode.h and should not be renumbered.
|
|
|
|
/// See https://html.spec.whatwg.org/#input-modalities:-the-inputmode-attribute
|
2019-02-26 17:49:41 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_TEXT_INPUT_MODE_DEFAULT,
|
|
|
|
CEF_TEXT_INPUT_MODE_NONE,
|
|
|
|
CEF_TEXT_INPUT_MODE_TEXT,
|
|
|
|
CEF_TEXT_INPUT_MODE_TEL,
|
|
|
|
CEF_TEXT_INPUT_MODE_URL,
|
|
|
|
CEF_TEXT_INPUT_MODE_EMAIL,
|
|
|
|
CEF_TEXT_INPUT_MODE_NUMERIC,
|
|
|
|
CEF_TEXT_INPUT_MODE_DECIMAL,
|
|
|
|
CEF_TEXT_INPUT_MODE_SEARCH,
|
|
|
|
|
|
|
|
CEF_TEXT_INPUT_MODE_MAX = CEF_TEXT_INPUT_MODE_SEARCH,
|
|
|
|
} cef_text_input_mode_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// V8 access control values.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
V8_ACCESS_CONTROL_DEFAULT = 0,
|
|
|
|
V8_ACCESS_CONTROL_ALL_CAN_READ = 1,
|
|
|
|
V8_ACCESS_CONTROL_ALL_CAN_WRITE = 1 << 1,
|
2012-04-03 03:34:16 +02:00
|
|
|
V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING = 1 << 2
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_v8_accesscontrol_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// V8 property attribute values.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2022-09-01 04:03:04 +02:00
|
|
|
///
|
|
|
|
/// Writeable, Enumerable, Configurable
|
|
|
|
///
|
|
|
|
V8_PROPERTY_ATTRIBUTE_NONE = 0,
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Not writeable
|
|
|
|
///
|
|
|
|
V8_PROPERTY_ATTRIBUTE_READONLY = 1 << 0,
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Not enumerable
|
|
|
|
///
|
|
|
|
V8_PROPERTY_ATTRIBUTE_DONTENUM = 1 << 1,
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Not configurable
|
|
|
|
///
|
|
|
|
V8_PROPERTY_ATTRIBUTE_DONTDELETE = 1 << 2
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_v8_propertyattribute_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Post data elements may represent either bytes or files.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
PDE_TYPE_EMPTY = 0,
|
2012-04-03 03:34:16 +02:00
|
|
|
PDE_TYPE_BYTES,
|
|
|
|
PDE_TYPE_FILE,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_postdataelement_type_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Resource type for a request. These constants match their equivalents in
|
|
|
|
/// Chromium's ResourceType and should not be renumbered.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Top level page.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_MAIN_FRAME = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Frame or iframe.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_SUB_FRAME,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// CSS stylesheet.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_STYLESHEET,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// External script.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_SCRIPT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Image (jpg/gif/png/etc).
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_IMAGE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Font.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_FONT_RESOURCE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Some other subresource. This is the default type if the actual type is
|
|
|
|
/// unknown.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_SUB_RESOURCE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Object (or embed) tag for a plugin, or a resource that a plugin requested.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_OBJECT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Media resource.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_MEDIA,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Main resource of a dedicated worker.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_WORKER,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Main resource of a shared worker.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_SHARED_WORKER,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Explicitly requested prefetch.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_PREFETCH,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Favicon.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_FAVICON,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// XMLHttpRequest.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
RT_XHR,
|
2014-09-27 01:48:19 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A request for a "<ping>".
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
|
|
|
RT_PING,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Main resource of a service worker.
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
|
|
|
RT_SERVICE_WORKER,
|
2016-02-24 18:42:18 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A report of Content Security Policy violations.
|
2016-02-24 18:42:18 +01:00
|
|
|
///
|
|
|
|
RT_CSP_REPORT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A resource that a plugin requested.
|
2016-02-24 18:42:18 +01:00
|
|
|
///
|
|
|
|
RT_PLUGIN_RESOURCE,
|
2021-09-07 16:04:55 +02:00
|
|
|
|
2021-09-22 13:07:55 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A main-frame service worker navigation preload request.
|
2021-09-22 13:07:55 +02:00
|
|
|
///
|
|
|
|
RT_NAVIGATION_PRELOAD_MAIN_FRAME = 19,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A sub-frame service worker navigation preload request.
|
2021-09-22 13:07:55 +02:00
|
|
|
///
|
|
|
|
RT_NAVIGATION_PRELOAD_SUB_FRAME,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_resource_type_t;
|
2013-09-10 21:42:53 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Transition type for a request. Made up of one source value and 0 or more
|
|
|
|
/// qualifiers.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is a link click or the JavaScript window.open function. This is
|
|
|
|
/// also the default value for requests like sub-resource loads that are not
|
|
|
|
/// navigations.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_LINK = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is some other "explicit" navigation. This is the default value for
|
|
|
|
/// navigations where the actual type is unknown. See also
|
|
|
|
/// TT_DIRECT_LOAD_FLAG.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_EXPLICIT = 1,
|
|
|
|
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// User got to this page through a suggestion in the UI (for example, via the
|
|
|
|
/// destinations page). Chrome runtime only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_AUTO_BOOKMARK = 2,
|
|
|
|
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is a subframe navigation. This is any content that is automatically
|
|
|
|
/// loaded in a non-toplevel frame. For example, if a page consists of several
|
|
|
|
/// frames containing ads, those ad URLs will have this transition type.
|
|
|
|
/// The user may not even realize the content in these pages is a separate
|
|
|
|
/// frame, so may not care about the URL.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_AUTO_SUBFRAME = 3,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is a subframe navigation explicitly requested by the user that will
|
|
|
|
/// generate new navigation entries in the back/forward list. These are
|
|
|
|
/// probably more important than frames that were automatically loaded in
|
|
|
|
/// the background because the user probably cares about the fact that this
|
|
|
|
/// link was loaded.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_MANUAL_SUBFRAME = 4,
|
|
|
|
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// User got to this page by typing in the URL bar and selecting an entry
|
|
|
|
/// that did not look like a URL. For example, a match might have the URL
|
|
|
|
/// of a Google search result page, but appear like "Search Google for ...".
|
|
|
|
/// These are not quite the same as EXPLICIT navigations because the user
|
|
|
|
/// didn't type or see the destination URL. Chrome runtime only.
|
|
|
|
/// See also TT_KEYWORD.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_GENERATED = 5,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This is a toplevel navigation. This is any content that is automatically
|
|
|
|
/// loaded in a toplevel frame. For example, opening a tab to show the ASH
|
|
|
|
/// screen saver, opening the devtools window, opening the NTP after the safe
|
|
|
|
/// browsing warning, opening web-based dialog boxes are examples of
|
|
|
|
/// AUTO_TOPLEVEL navigations. Chrome runtime only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_AUTO_TOPLEVEL = 6,
|
|
|
|
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is a form submission by the user. NOTE: In some situations
|
|
|
|
/// submitting a form does not result in this transition type. This can happen
|
|
|
|
/// if the form uses a script to submit the contents.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_FORM_SUBMIT = 7,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Source is a "reload" of the page via the Reload function or by re-visiting
|
|
|
|
/// the same URL. NOTE: This is distinct from the concept of whether a
|
|
|
|
/// particular load uses "reload semantics" (i.e. bypasses cached data).
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_RELOAD = 8,
|
|
|
|
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The url was generated from a replaceable keyword other than the default
|
|
|
|
/// search provider. If the user types a keyword (which also applies to
|
|
|
|
/// tab-to-search) in the omnibox this qualifier is applied to the transition
|
|
|
|
/// type of the generated url. TemplateURLModel then may generate an
|
|
|
|
/// additional visit with a transition type of TT_KEYWORD_GENERATED against
|
2022-09-02 19:10:09 +02:00
|
|
|
/// the url 'http://' + keyword. For example, if you do a tab-to-search
|
|
|
|
/// against wikipedia the generated url has a transition qualifer of
|
|
|
|
/// TT_KEYWORD, and TemplateURLModel generates a visit for 'wikipedia.org'
|
|
|
|
/// with a transition type of TT_KEYWORD_GENERATED. Chrome runtime only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_KEYWORD = 9,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Corresponds to a visit generated for a keyword. See description of
|
|
|
|
/// TT_KEYWORD for more details. Chrome runtime only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_KEYWORD_GENERATED = 10,
|
|
|
|
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// General mask defining the bits used for the source values.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_SOURCE_MASK = 0xFF,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Qualifiers.
|
|
|
|
/// Any of the core values above can be augmented by one or more qualifiers.
|
|
|
|
/// These qualifiers further define the transition.
|
2013-09-10 21:42:53 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Attempted to visit a URL but was blocked.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_BLOCKED_FLAG = 0x00800000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used the Forward or Back function to navigate among browsing history.
|
|
|
|
/// Will be ORed to the transition type for the original load.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_FORWARD_BACK_FLAG = 0x01000000,
|
|
|
|
|
2020-02-14 22:58:58 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Loaded a URL directly via CreateBrowser, LoadURL or LoadRequest.
|
2020-02-14 22:58:58 +01:00
|
|
|
///
|
|
|
|
TT_DIRECT_LOAD_FLAG = 0x02000000,
|
|
|
|
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// User is navigating to the home page. Chrome runtime only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_HOME_PAGE_FLAG = 0x04000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The transition originated from an external application; the exact
|
|
|
|
/// definition of this is embedder dependent. Chrome runtime and
|
|
|
|
/// extension system only.
|
2022-03-26 02:12:30 +01:00
|
|
|
///
|
|
|
|
TT_FROM_API_FLAG = 0x08000000,
|
|
|
|
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The beginning of a navigation chain.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_CHAIN_START_FLAG = 0x10000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The last transition in a redirect chain.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_CHAIN_END_FLAG = 0x20000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Redirects caused by JavaScript or a meta refresh tag on the page.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_CLIENT_REDIRECT_FLAG = 0x40000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Redirects sent from the server by HTTP headers.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_SERVER_REDIRECT_FLAG = 0x80000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used to test whether a transition involves a redirect.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_IS_REDIRECT_MASK = 0xC0000000,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// General mask defining the bits used for the qualifiers.
|
2013-09-10 21:42:53 +02:00
|
|
|
///
|
|
|
|
TT_QUALIFIER_MASK = 0xFFFFFF00,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_transition_type_t;
|
2013-09-10 21:42:53 +02:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Flags used to customize the behavior of CefURLRequest.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default behavior.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
UR_FLAG_NONE = 0,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set the cache will be skipped when handling the request. Setting this
|
|
|
|
/// value is equivalent to specifying the "Cache-Control: no-cache" request
|
|
|
|
/// header. Setting this value in combination with UR_FLAG_ONLY_FROM_CACHE
|
2022-09-02 19:10:09 +02:00
|
|
|
/// will cause the request to fail.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
UR_FLAG_SKIP_CACHE = 1 << 0,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2017-11-17 17:33:50 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set the request will fail if it cannot be served from the cache (or
|
2022-09-02 19:10:09 +02:00
|
|
|
/// some equivalent local store). Setting this value is equivalent to
|
|
|
|
/// specifying the "Cache-Control: only-if-cached" request header. Setting
|
|
|
|
/// this value in combination with UR_FLAG_SKIP_CACHE or UR_FLAG_DISABLE_CACHE
|
|
|
|
/// will cause the request to fail.
|
2017-11-17 17:33:50 +01:00
|
|
|
///
|
|
|
|
UR_FLAG_ONLY_FROM_CACHE = 1 << 1,
|
|
|
|
|
2019-03-07 23:05:36 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set the cache will not be used at all. Setting this value is equivalent
|
|
|
|
/// to specifying the "Cache-Control: no-store" request header. Setting this
|
|
|
|
/// value in combination with UR_FLAG_ONLY_FROM_CACHE will cause the request
|
2022-09-02 19:10:09 +02:00
|
|
|
/// to fail.
|
2019-03-07 23:05:36 +01:00
|
|
|
///
|
|
|
|
UR_FLAG_DISABLE_CACHE = 1 << 2,
|
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set user name, password, and cookies may be sent with the request, and
|
|
|
|
/// cookies may be saved from the response.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2019-03-07 23:05:36 +01:00
|
|
|
UR_FLAG_ALLOW_STORED_CREDENTIALS = 1 << 3,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set upload progress events will be generated when a request has a body.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2019-03-07 23:05:36 +01:00
|
|
|
UR_FLAG_REPORT_UPLOAD_PROGRESS = 1 << 4,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set the CefURLRequestClient::OnDownloadData method will not be called.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2019-03-07 23:05:36 +01:00
|
|
|
UR_FLAG_NO_DOWNLOAD_DATA = 1 << 5,
|
2012-06-19 18:29:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set 5XX redirect errors will be propagated to the observer instead of
|
|
|
|
/// automatically re-tried. This currently only applies for requests
|
|
|
|
/// originated in the browser process.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2019-03-07 23:05:36 +01:00
|
|
|
UR_FLAG_NO_RETRY_ON_5XX = 1 << 6,
|
2018-04-10 19:04:57 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If set 3XX responses will cause the fetch to halt immediately rather than
|
|
|
|
/// continue through the redirect.
|
2018-04-10 19:04:57 +02:00
|
|
|
///
|
2019-03-07 23:05:36 +01:00
|
|
|
UR_FLAG_STOP_ON_REDIRECT = 1 << 7,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_urlrequest_flags_t;
|
2012-06-19 18:29:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Flags that represent CefURLRequest status.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Unknown status.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
|
|
|
UR_UNKNOWN = 0,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Request succeeded.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
|
|
|
UR_SUCCESS,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An IO request is pending, and the caller will be informed when it is
|
|
|
|
/// completed.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
|
|
|
UR_IO_PENDING,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Request was canceled programatically.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
|
|
|
UR_CANCELED,
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Request failed for some reason.
|
2012-06-19 18:29:49 +02:00
|
|
|
///
|
|
|
|
UR_FAILED,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_urlrequest_status_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing a draggable region.
|
2015-04-24 15:48:32 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_draggable_region_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Bounds of the region.
|
2015-04-24 15:48:32 +02:00
|
|
|
///
|
|
|
|
cef_rect_t bounds;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// True (1) this this region is draggable and false (0) otherwise.
|
2015-04-24 15:48:32 +02:00
|
|
|
///
|
|
|
|
int draggable;
|
|
|
|
} cef_draggable_region_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Existing process IDs.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Browser process.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
PID_BROWSER,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Renderer process.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
PID_RENDERER,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_process_id_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Existing thread IDs.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
// BROWSER PROCESS THREADS -- Only available in the browser process.
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The main thread in the browser. This will be the same as the main
|
|
|
|
/// application thread if CefInitialize() is called with a
|
|
|
|
/// CefSettings.multi_threaded_message_loop value of false. Do not perform
|
|
|
|
/// blocking tasks on this thread. All tasks posted after
|
|
|
|
/// CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()
|
|
|
|
/// are guaranteed to run. This thread will outlive all other CEF threads.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
TID_UI,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used for blocking tasks like file system access where the user won't
|
|
|
|
/// notice if the task takes an arbitrarily long time to complete. All tasks
|
|
|
|
/// posted after CefBrowserProcessHandler::OnContextInitialized() and before
|
|
|
|
/// CefShutdown() are guaranteed to run.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2018-03-20 21:15:08 +01:00
|
|
|
TID_FILE_BACKGROUND,
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used for blocking tasks like file system access that affect UI or
|
|
|
|
/// responsiveness of future user interactions. Do not use if an immediate
|
|
|
|
/// response to a user interaction is expected. All tasks posted after
|
|
|
|
/// CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()
|
|
|
|
/// are guaranteed to run.
|
|
|
|
/// Examples:
|
|
|
|
/// - Updating the UI to reflect progress on a long task.
|
|
|
|
/// - Loading data that might be shown in the UI after a future user
|
|
|
|
/// interaction.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2018-03-20 21:15:08 +01:00
|
|
|
TID_FILE_USER_VISIBLE,
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used for blocking tasks like file system access that affect UI
|
|
|
|
/// immediately after a user interaction. All tasks posted after
|
|
|
|
/// CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()
|
|
|
|
/// are guaranteed to run.
|
|
|
|
/// Example: Generating data shown in the UI immediately after a click.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
TID_FILE_USER_BLOCKING,
|
|
|
|
|
2018-04-19 17:44:42 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used to launch and terminate browser processes.
|
2018-04-19 17:44:42 +02:00
|
|
|
///
|
|
|
|
TID_PROCESS_LAUNCHER,
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Used to process IPC and network messages. Do not perform blocking tasks on
|
|
|
|
/// this thread. All tasks posted after
|
|
|
|
/// CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()
|
|
|
|
/// are guaranteed to run.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
TID_IO,
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
// RENDER PROCESS THREADS -- Only available in the render process.
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The main thread in the renderer. Used for all WebKit and V8 interaction.
|
|
|
|
/// Tasks may be posted to this thread after
|
|
|
|
/// CefRenderProcessHandler::OnWebKitInitialized but are not guaranteed to
|
|
|
|
/// run before sub-process termination (sub-processes may be killed at any
|
|
|
|
/// time without warning).
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
TID_RENDERER,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_thread_id_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Thread priority values listed in increasing order of importance.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Suitable for threads that shouldn't disrupt high priority work.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
TP_BACKGROUND,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default priority level.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
TP_NORMAL,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Suitable for threads which generate data for the display (at ~60Hz).
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
TP_DISPLAY,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Suitable for low-latency, glitch-resistant audio.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
TP_REALTIME_AUDIO,
|
|
|
|
} cef_thread_priority_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Message loop types. Indicates the set of asynchronous events that a message
|
|
|
|
/// loop can process.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supports tasks and timers.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
ML_TYPE_DEFAULT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supports tasks, timers and native UI events (e.g. Windows messages).
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
ML_TYPE_UI,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supports tasks, timers and asynchronous IO events.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
ML_TYPE_IO,
|
|
|
|
} cef_message_loop_type_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Windows COM initialization mode. Specifies how COM will be initialized for a
|
|
|
|
/// new thread.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No COM initialization.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
COM_INIT_MODE_NONE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Initialize COM using single-threaded apartments.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
COM_INIT_MODE_STA,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Initialize COM using multi-threaded apartments.
|
2016-11-12 00:22:53 +01:00
|
|
|
///
|
|
|
|
COM_INIT_MODE_MTA,
|
|
|
|
} cef_com_init_mode_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported value types.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-03 03:34:16 +02:00
|
|
|
VTYPE_INVALID = 0,
|
|
|
|
VTYPE_NULL,
|
|
|
|
VTYPE_BOOL,
|
|
|
|
VTYPE_INT,
|
|
|
|
VTYPE_DOUBLE,
|
|
|
|
VTYPE_STRING,
|
|
|
|
VTYPE_BINARY,
|
|
|
|
VTYPE_DICTIONARY,
|
|
|
|
VTYPE_LIST,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_value_type_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2012-04-16 23:15:27 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported JavaScript dialog types.
|
2012-04-16 23:15:27 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-16 23:15:27 +02:00
|
|
|
JSDIALOGTYPE_ALERT = 0,
|
|
|
|
JSDIALOGTYPE_CONFIRM,
|
|
|
|
JSDIALOGTYPE_PROMPT,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_jsdialog_type_t;
|
2012-04-16 23:15:27 +02:00
|
|
|
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Screen information used when window rendering is disabled. This structure is
|
|
|
|
/// passed as a parameter to CefRenderHandler::GetScreenInfo and should be
|
|
|
|
/// filled in by the client.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_screen_info_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Device scale factor. Specifies the ratio between physical and logical
|
|
|
|
/// pixels.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
float device_scale_factor;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The screen depth in bits per pixel.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
int depth;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The bits per color component. This assumes that the colors are balanced
|
|
|
|
/// equally.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
int depth_per_component;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This can be true for black and white printers.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int is_monochrome;
|
2013-04-16 21:23:00 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This is set from the rcMonitor member of MONITORINFOEX, to whit:
|
|
|
|
/// "A RECT structure that specifies the display monitor rectangle,
|
|
|
|
/// expressed in virtual-screen coordinates. Note that if the monitor
|
|
|
|
/// is not the primary display monitor, some of the rectangle's
|
|
|
|
/// coordinates may be negative values."
|
2013-04-16 21:23:00 +02:00
|
|
|
//
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The |rect| and |available_rect| properties are used to determine the
|
|
|
|
/// available surface for rendering popup views.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
cef_rect_t rect;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This is set from the rcWork member of MONITORINFOEX, to whit:
|
|
|
|
/// "A RECT structure that specifies the work area rectangle of the
|
|
|
|
/// display monitor that can be used by applications, expressed in
|
|
|
|
/// virtual-screen coordinates. Windows uses this rectangle to
|
|
|
|
/// maximize an application on the monitor. The rest of the area in
|
|
|
|
/// rcMonitor contains system windows such as the task bar and side
|
|
|
|
/// bars. Note that if the monitor is not the primary display monitor,
|
|
|
|
/// some of the rectangle's coordinates may be negative values".
|
2013-04-16 21:23:00 +02:00
|
|
|
//
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The |rect| and |available_rect| properties are used to determine the
|
|
|
|
/// available surface for rendering popup views.
|
2013-04-16 21:23:00 +02:00
|
|
|
///
|
|
|
|
cef_rect_t available_rect;
|
|
|
|
} cef_screen_info_t;
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported menu IDs. Non-English translations can be provided for the
|
|
|
|
/// IDS_MENU_* strings in CefResourceBundleHandler::GetLocalizedString().
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-19 22:31:46 +02:00
|
|
|
// Navigation.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_BACK = 100,
|
|
|
|
MENU_ID_FORWARD = 101,
|
|
|
|
MENU_ID_RELOAD = 102,
|
|
|
|
MENU_ID_RELOAD_NOCACHE = 103,
|
|
|
|
MENU_ID_STOPLOAD = 104,
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Editing.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_UNDO = 110,
|
|
|
|
MENU_ID_REDO = 111,
|
|
|
|
MENU_ID_CUT = 112,
|
|
|
|
MENU_ID_COPY = 113,
|
|
|
|
MENU_ID_PASTE = 114,
|
|
|
|
MENU_ID_DELETE = 115,
|
|
|
|
MENU_ID_SELECT_ALL = 116,
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Miscellaneous.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_FIND = 130,
|
|
|
|
MENU_ID_PRINT = 131,
|
|
|
|
MENU_ID_VIEW_SOURCE = 132,
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2014-10-07 22:44:33 +02:00
|
|
|
// Spell checking word correction suggestions.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_0 = 200,
|
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_1 = 201,
|
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_2 = 202,
|
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_3 = 203,
|
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_4 = 204,
|
|
|
|
MENU_ID_SPELLCHECK_SUGGESTION_LAST = 204,
|
|
|
|
MENU_ID_NO_SPELLING_SUGGESTIONS = 205,
|
|
|
|
MENU_ID_ADD_TO_DICTIONARY = 206,
|
2014-10-07 22:44:33 +02:00
|
|
|
|
2022-02-18 22:44:37 +01:00
|
|
|
// Custom menu items originating from the renderer process.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_CUSTOM_FIRST = 220,
|
|
|
|
MENU_ID_CUSTOM_LAST = 250,
|
2015-09-09 16:05:39 +02:00
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// All user-defined menu IDs should come between MENU_ID_USER_FIRST and
|
|
|
|
// MENU_ID_USER_LAST to avoid overlapping the Chromium and CEF ID ranges
|
|
|
|
// defined in the tools/gritsettings/resource_ids file.
|
2017-05-17 11:29:28 +02:00
|
|
|
MENU_ID_USER_FIRST = 26500,
|
|
|
|
MENU_ID_USER_LAST = 28500,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_menu_id_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Mouse button types.
|
2012-11-21 01:40:15 +01:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
MBT_LEFT = 0,
|
2012-11-21 01:40:15 +01:00
|
|
|
MBT_MIDDLE,
|
|
|
|
MBT_RIGHT,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_mouse_button_type_t;
|
2012-11-21 01:40:15 +01:00
|
|
|
|
2013-01-12 00:00:39 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing mouse event information.
|
2013-01-12 00:00:39 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_mouse_event_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// X coordinate relative to the left side of the view.
|
2013-01-12 00:00:39 +01:00
|
|
|
///
|
|
|
|
int x;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Y coordinate relative to the top side of the view.
|
2013-01-12 00:00:39 +01:00
|
|
|
///
|
|
|
|
int y;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Bit flags describing any pressed modifier keys. See
|
|
|
|
/// cef_event_flags_t for values.
|
2013-01-12 00:00:39 +01:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
uint32_t modifiers;
|
2013-01-12 00:00:39 +01:00
|
|
|
} cef_mouse_event_t;
|
|
|
|
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Touch points states types.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_TET_RELEASED = 0,
|
|
|
|
CEF_TET_PRESSED,
|
|
|
|
CEF_TET_MOVED,
|
|
|
|
CEF_TET_CANCELLED
|
|
|
|
} cef_touch_event_type_t;
|
|
|
|
|
2019-03-07 23:06:54 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The device type that caused the event.
|
2019-03-07 23:06:54 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_POINTER_TYPE_TOUCH = 0,
|
|
|
|
CEF_POINTER_TYPE_MOUSE,
|
|
|
|
CEF_POINTER_TYPE_PEN,
|
|
|
|
CEF_POINTER_TYPE_ERASER,
|
|
|
|
CEF_POINTER_TYPE_UNKNOWN
|
|
|
|
} cef_pointer_type_t;
|
|
|
|
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing touch event information.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_touch_event_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Id of a touch point. Must be unique per touch, can be any number except
|
|
|
|
/// -1. Note that a maximum of 16 concurrent touches will be tracked; touches
|
|
|
|
/// beyond that will be ignored.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
int id;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// X coordinate relative to the left side of the view.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float x;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Y coordinate relative to the top side of the view.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float y;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// X radius in pixels. Set to 0 if not applicable.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float radius_x;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Y radius in pixels. Set to 0 if not applicable.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float radius_y;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Rotation angle in radians. Set to 0 if not applicable.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float rotation_angle;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The normalized pressure of the pointer input in the range of [0,1].
|
|
|
|
/// Set to 0 if not applicable.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
float pressure;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The state of the touch point. Touches begin with one CEF_TET_PRESSED event
|
|
|
|
/// followed by zero or more CEF_TET_MOVED events and finally one
|
|
|
|
/// CEF_TET_RELEASED or CEF_TET_CANCELLED event. Events not respecting this
|
|
|
|
/// order will be ignored.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
|
|
|
cef_touch_event_type_t type;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Bit flags describing any pressed modifier keys. See
|
|
|
|
/// cef_event_flags_t for values.
|
2019-02-25 22:17:28 +01:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
uint32_t modifiers;
|
2019-02-25 22:17:28 +01:00
|
|
|
|
2019-03-07 23:06:54 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The device type that caused the event.
|
2019-03-07 23:06:54 +01:00
|
|
|
///
|
|
|
|
cef_pointer_type_t pointer_type;
|
|
|
|
|
2019-02-25 22:17:28 +01:00
|
|
|
} cef_touch_event_t;
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Paint element types.
|
2014-07-01 00:30:29 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
PET_VIEW = 0,
|
2014-07-01 00:30:29 +02:00
|
|
|
PET_POPUP,
|
|
|
|
} cef_paint_element_type_t;
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported event bit flags.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
EVENTFLAG_NONE = 0,
|
|
|
|
EVENTFLAG_CAPS_LOCK_ON = 1 << 0,
|
|
|
|
EVENTFLAG_SHIFT_DOWN = 1 << 1,
|
|
|
|
EVENTFLAG_CONTROL_DOWN = 1 << 2,
|
|
|
|
EVENTFLAG_ALT_DOWN = 1 << 3,
|
|
|
|
EVENTFLAG_LEFT_MOUSE_BUTTON = 1 << 4,
|
2012-04-19 22:31:46 +02:00
|
|
|
EVENTFLAG_MIDDLE_MOUSE_BUTTON = 1 << 5,
|
2017-05-17 11:29:28 +02:00
|
|
|
EVENTFLAG_RIGHT_MOUSE_BUTTON = 1 << 6,
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Mac OS-X command key.
|
2017-05-17 11:29:28 +02:00
|
|
|
EVENTFLAG_COMMAND_DOWN = 1 << 7,
|
|
|
|
EVENTFLAG_NUM_LOCK_ON = 1 << 8,
|
|
|
|
EVENTFLAG_IS_KEY_PAD = 1 << 9,
|
|
|
|
EVENTFLAG_IS_LEFT = 1 << 10,
|
|
|
|
EVENTFLAG_IS_RIGHT = 1 << 11,
|
2020-04-08 17:43:39 +02:00
|
|
|
EVENTFLAG_ALTGR_DOWN = 1 << 12,
|
2021-07-19 17:52:36 +02:00
|
|
|
EVENTFLAG_IS_REPEAT = 1 << 13,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_event_flags_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported menu item types.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-19 22:31:46 +02:00
|
|
|
MENUITEMTYPE_NONE,
|
|
|
|
MENUITEMTYPE_COMMAND,
|
|
|
|
MENUITEMTYPE_CHECK,
|
|
|
|
MENUITEMTYPE_RADIO,
|
|
|
|
MENUITEMTYPE_SEPARATOR,
|
|
|
|
MENUITEMTYPE_SUBMENU,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_menu_item_type_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported context menu type flags.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_NONE = 0,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The top page is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_PAGE = 1 << 0,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A subframe page is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_FRAME = 1 << 1,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A link is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_LINK = 1 << 2,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A media node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_MEDIA = 1 << 3,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// There is a textual or mixed selection that is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_SELECTION = 1 << 4,
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An editable element is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_TYPEFLAG_EDITABLE = 1 << 5,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_context_menu_type_flags_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported context menu media types. These constants match their equivalents
|
|
|
|
/// in Chromium's ContextMenuDataMediaType and should not be renumbered.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No special node is in context.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_NONE,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An image node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_IMAGE,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A video node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_VIDEO,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An audio node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_AUDIO,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An canvas node is selected.
|
2022-02-18 22:44:37 +01:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_CANVAS,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A file node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_FILE,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A plugin node is selected.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
|
|
|
CM_MEDIATYPE_PLUGIN,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_context_menu_media_type_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported context menu media state bit flags. These constants match their
|
|
|
|
/// equivalents in Chromium's ContextMenuData::MediaFlags and should not be
|
|
|
|
/// renumbered.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_MEDIAFLAG_NONE = 0,
|
2022-02-18 22:44:37 +01:00
|
|
|
CM_MEDIAFLAG_IN_ERROR = 1 << 0,
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_MEDIAFLAG_PAUSED = 1 << 1,
|
|
|
|
CM_MEDIAFLAG_MUTED = 1 << 2,
|
|
|
|
CM_MEDIAFLAG_LOOP = 1 << 3,
|
|
|
|
CM_MEDIAFLAG_CAN_SAVE = 1 << 4,
|
|
|
|
CM_MEDIAFLAG_HAS_AUDIO = 1 << 5,
|
2022-02-18 22:44:37 +01:00
|
|
|
CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS = 1 << 6,
|
|
|
|
CM_MEDIAFLAG_CONTROLS = 1 << 7,
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_MEDIAFLAG_CAN_PRINT = 1 << 8,
|
|
|
|
CM_MEDIAFLAG_CAN_ROTATE = 1 << 9,
|
2022-02-18 22:44:37 +01:00
|
|
|
CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE = 1 << 10,
|
|
|
|
CM_MEDIAFLAG_PICTURE_IN_PICTURE = 1 << 11,
|
|
|
|
CM_MEDIAFLAG_CAN_LOOP = 1 << 12,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_context_menu_media_state_flags_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported context menu edit state bit flags. These constants match their
|
|
|
|
/// equivalents in Chromium's ContextMenuDataEditFlags and should not be
|
|
|
|
/// renumbered.
|
2012-04-19 22:31:46 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2017-05-17 11:29:28 +02:00
|
|
|
CM_EDITFLAG_NONE = 0,
|
|
|
|
CM_EDITFLAG_CAN_UNDO = 1 << 0,
|
|
|
|
CM_EDITFLAG_CAN_REDO = 1 << 1,
|
|
|
|
CM_EDITFLAG_CAN_CUT = 1 << 2,
|
|
|
|
CM_EDITFLAG_CAN_COPY = 1 << 3,
|
|
|
|
CM_EDITFLAG_CAN_PASTE = 1 << 4,
|
|
|
|
CM_EDITFLAG_CAN_DELETE = 1 << 5,
|
|
|
|
CM_EDITFLAG_CAN_SELECT_ALL = 1 << 6,
|
|
|
|
CM_EDITFLAG_CAN_TRANSLATE = 1 << 7,
|
2022-02-18 22:44:37 +01:00
|
|
|
CM_EDITFLAG_CAN_EDIT_RICHLY = 1 << 8,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_context_menu_edit_state_flags_t;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported quick menu state bit flags.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
QM_EDITFLAG_NONE = 0,
|
|
|
|
QM_EDITFLAG_CAN_ELLIPSIS = 1 << 0,
|
|
|
|
QM_EDITFLAG_CAN_CUT = 1 << 1,
|
|
|
|
QM_EDITFLAG_CAN_COPY = 1 << 2,
|
|
|
|
QM_EDITFLAG_CAN_PASTE = 1 << 3,
|
|
|
|
} cef_quick_menu_edit_state_flags_t;
|
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Key event types.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Notification that a key transitioned from "up" to "down".
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
2012-06-11 17:52:49 +02:00
|
|
|
KEYEVENT_RAWKEYDOWN = 0,
|
2014-09-27 01:48:19 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Notification that a key was pressed. This does not necessarily correspond
|
|
|
|
/// to a character depending on the key and language. Use KEYEVENT_CHAR for
|
|
|
|
/// character input.
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
2012-06-11 17:52:49 +02:00
|
|
|
KEYEVENT_KEYDOWN,
|
2014-09-27 01:48:19 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Notification that a key was released.
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
2012-06-11 17:52:49 +02:00
|
|
|
KEYEVENT_KEYUP,
|
2014-09-27 01:48:19 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Notification that a character was typed. Use this for text input. Key
|
|
|
|
/// down events may generate 0, 1, or more than one character event depending
|
|
|
|
/// on the key, locale, and operating system.
|
2014-09-27 01:48:19 +02:00
|
|
|
///
|
2012-06-11 17:52:49 +02:00
|
|
|
KEYEVENT_CHAR
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_key_event_type_t;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing keyboard event information.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_key_event_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The type of keyboard event.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
cef_key_event_type_t type;
|
2012-11-02 19:16:28 +01:00
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Bit flags describing any pressed modifier keys. See
|
|
|
|
/// cef_event_flags_t for values.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
uint32_t modifiers;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The Windows key code for the key event. This value is used by the DOM
|
|
|
|
/// specification. Sometimes it comes directly from the event (i.e. on
|
|
|
|
/// Windows) and sometimes it's determined using a mapping function. See
|
|
|
|
/// WebCore/platform/chromium/KeyboardCodes.h for the list of values.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
int windows_key_code;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The actual key code genenerated by the platform.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
int native_key_code;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Indicates whether the event is considered a "system key" event (see
|
|
|
|
/// http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).
|
|
|
|
/// This value will always be false on non-Windows platforms.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int is_system_key;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The character generated by the keystroke.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
char16_t character;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Same as |character| but unmodified by any concurrently-held modifiers
|
|
|
|
/// (except shift). This is useful for working out shortcut keys.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
char16_t unmodified_character;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// True if the focus is currently on an editable field on the page. This is
|
|
|
|
/// useful for determining if standard key events should be intercepted.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
int focus_on_editable_field;
|
2012-06-11 17:52:49 +02:00
|
|
|
} cef_key_event_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Focus sources.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The source is explicit navigation via the API (LoadURL(), etc).
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
FOCUS_SOURCE_NAVIGATION = 0,
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// The source is a system-generated focus event.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
|
|
|
FOCUS_SOURCE_SYSTEM,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_focus_source_t;
|
2012-06-11 17:52:49 +02:00
|
|
|
|
2013-11-21 21:59:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Navigation types.
|
2013-11-21 21:59:28 +01:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2013-11-21 21:59:28 +01:00
|
|
|
NAVIGATION_LINK_CLICKED = 0,
|
|
|
|
NAVIGATION_FORM_SUBMITTED,
|
|
|
|
NAVIGATION_BACK_FORWARD,
|
|
|
|
NAVIGATION_RELOAD,
|
|
|
|
NAVIGATION_FORM_RESUBMITTED,
|
|
|
|
NAVIGATION_OTHER,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_navigation_type_t;
|
2013-11-21 21:59:28 +01:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported XML encoding types. The parser supports ASCII, ISO-8859-1, and
|
|
|
|
/// UTF16 (LE and BE) by default. All other types must be translated to UTF8
|
|
|
|
/// before being passed to the parser. If a BOM is detected and the correct
|
|
|
|
/// decoder is available then that decoder will be used automatically.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-03 03:34:16 +02:00
|
|
|
XML_ENCODING_NONE = 0,
|
|
|
|
XML_ENCODING_UTF8,
|
|
|
|
XML_ENCODING_UTF16LE,
|
|
|
|
XML_ENCODING_UTF16BE,
|
|
|
|
XML_ENCODING_ASCII,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_xml_encoding_type_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// XML node types.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-03 03:34:16 +02:00
|
|
|
XML_NODE_UNSUPPORTED = 0,
|
|
|
|
XML_NODE_PROCESSING_INSTRUCTION,
|
|
|
|
XML_NODE_DOCUMENT_TYPE,
|
|
|
|
XML_NODE_ELEMENT_START,
|
|
|
|
XML_NODE_ELEMENT_END,
|
|
|
|
XML_NODE_ATTRIBUTE,
|
|
|
|
XML_NODE_TEXT,
|
|
|
|
XML_NODE_CDATA,
|
|
|
|
XML_NODE_ENTITY_REFERENCE,
|
|
|
|
XML_NODE_WHITESPACE,
|
|
|
|
XML_NODE_COMMENT,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_xml_node_type_t;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Popup window features.
|
2012-04-03 03:34:16 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_popup_features_t {
|
|
|
|
int x;
|
2014-01-06 20:59:48 +01:00
|
|
|
int xSet;
|
2012-04-03 03:34:16 +02:00
|
|
|
int y;
|
2014-01-06 20:59:48 +01:00
|
|
|
int ySet;
|
2012-04-03 03:34:16 +02:00
|
|
|
int width;
|
2014-01-06 20:59:48 +01:00
|
|
|
int widthSet;
|
2012-04-03 03:34:16 +02:00
|
|
|
int height;
|
2014-01-06 20:59:48 +01:00
|
|
|
int heightSet;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2023-01-03 00:34:43 +01:00
|
|
|
/// True (1) if browser interface elements should be hidden.
|
|
|
|
int isPopup;
|
2012-04-03 03:34:16 +02:00
|
|
|
} cef_popup_features_t;
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// DOM document types.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-27 23:19:06 +02:00
|
|
|
DOM_DOCUMENT_TYPE_UNKNOWN = 0,
|
|
|
|
DOM_DOCUMENT_TYPE_HTML,
|
|
|
|
DOM_DOCUMENT_TYPE_XHTML,
|
|
|
|
DOM_DOCUMENT_TYPE_PLUGIN,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_dom_document_type_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// DOM event category flags.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-27 23:19:06 +02:00
|
|
|
DOM_EVENT_CATEGORY_UNKNOWN = 0x0,
|
|
|
|
DOM_EVENT_CATEGORY_UI = 0x1,
|
|
|
|
DOM_EVENT_CATEGORY_MOUSE = 0x2,
|
|
|
|
DOM_EVENT_CATEGORY_MUTATION = 0x4,
|
|
|
|
DOM_EVENT_CATEGORY_KEYBOARD = 0x8,
|
|
|
|
DOM_EVENT_CATEGORY_TEXT = 0x10,
|
|
|
|
DOM_EVENT_CATEGORY_COMPOSITION = 0x20,
|
|
|
|
DOM_EVENT_CATEGORY_DRAG = 0x40,
|
|
|
|
DOM_EVENT_CATEGORY_CLIPBOARD = 0x80,
|
|
|
|
DOM_EVENT_CATEGORY_MESSAGE = 0x100,
|
|
|
|
DOM_EVENT_CATEGORY_WHEEL = 0x200,
|
|
|
|
DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED = 0x400,
|
|
|
|
DOM_EVENT_CATEGORY_OVERFLOW = 0x800,
|
|
|
|
DOM_EVENT_CATEGORY_PAGE_TRANSITION = 0x1000,
|
|
|
|
DOM_EVENT_CATEGORY_POPSTATE = 0x2000,
|
|
|
|
DOM_EVENT_CATEGORY_PROGRESS = 0x4000,
|
|
|
|
DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS = 0x8000,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_dom_event_category_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// DOM event processing phases.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-27 23:19:06 +02:00
|
|
|
DOM_EVENT_PHASE_UNKNOWN = 0,
|
|
|
|
DOM_EVENT_PHASE_CAPTURING,
|
|
|
|
DOM_EVENT_PHASE_AT_TARGET,
|
|
|
|
DOM_EVENT_PHASE_BUBBLING,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_dom_event_phase_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// DOM node types.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-04-27 23:19:06 +02:00
|
|
|
DOM_NODE_TYPE_UNSUPPORTED = 0,
|
|
|
|
DOM_NODE_TYPE_ELEMENT,
|
|
|
|
DOM_NODE_TYPE_ATTRIBUTE,
|
|
|
|
DOM_NODE_TYPE_TEXT,
|
|
|
|
DOM_NODE_TYPE_CDATA_SECTION,
|
|
|
|
DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS,
|
|
|
|
DOM_NODE_TYPE_COMMENT,
|
|
|
|
DOM_NODE_TYPE_DOCUMENT,
|
|
|
|
DOM_NODE_TYPE_DOCUMENT_TYPE,
|
|
|
|
DOM_NODE_TYPE_DOCUMENT_FRAGMENT,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_dom_node_type_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported file dialog modes.
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
2014-01-06 20:59:48 +01:00
|
|
|
typedef enum {
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Requires that the file exists before allowing the user to pick it.
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
|
|
|
FILE_DIALOG_OPEN = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Like Open, but allows picking multiple files to open.
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
|
|
|
FILE_DIALOG_OPEN_MULTIPLE,
|
|
|
|
|
2015-01-20 19:24:54 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Like Open, but selects a folder to open.
|
2015-01-20 19:24:54 +01:00
|
|
|
///
|
|
|
|
FILE_DIALOG_OPEN_FOLDER,
|
|
|
|
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Allows picking a nonexistent file, and prompts to overwrite if the file
|
|
|
|
/// already exists.
|
2012-10-16 21:28:07 +02:00
|
|
|
///
|
|
|
|
FILE_DIALOG_SAVE,
|
2014-01-06 20:59:48 +01:00
|
|
|
} cef_file_dialog_mode_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
2014-07-10 17:41:30 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Print job color mode values.
|
2014-07-10 17:41:30 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
COLOR_MODEL_UNKNOWN,
|
|
|
|
COLOR_MODEL_GRAY,
|
|
|
|
COLOR_MODEL_COLOR,
|
|
|
|
COLOR_MODEL_CMYK,
|
|
|
|
COLOR_MODEL_CMY,
|
|
|
|
COLOR_MODEL_KCMY,
|
|
|
|
COLOR_MODEL_CMY_K, // CMY_K represents CMY+K.
|
|
|
|
COLOR_MODEL_BLACK,
|
|
|
|
COLOR_MODEL_GRAYSCALE,
|
|
|
|
COLOR_MODEL_RGB,
|
|
|
|
COLOR_MODEL_RGB16,
|
|
|
|
COLOR_MODEL_RGBA,
|
2017-05-17 11:29:28 +02:00
|
|
|
COLOR_MODEL_COLORMODE_COLOR, // Used in samsung printer ppds.
|
|
|
|
COLOR_MODEL_COLORMODE_MONOCHROME, // Used in samsung printer ppds.
|
|
|
|
COLOR_MODEL_HP_COLOR_COLOR, // Used in HP color printer ppds.
|
|
|
|
COLOR_MODEL_HP_COLOR_BLACK, // Used in HP color printer ppds.
|
|
|
|
COLOR_MODEL_PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
|
|
|
|
COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
|
|
|
|
COLOR_MODEL_PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
|
2014-07-10 17:41:30 +02:00
|
|
|
COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
|
2017-05-17 11:29:28 +02:00
|
|
|
COLOR_MODEL_PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
|
2014-07-10 17:41:30 +02:00
|
|
|
} cef_color_model_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Print job duplex mode values.
|
2014-07-10 17:41:30 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
DUPLEX_MODE_UNKNOWN = -1,
|
|
|
|
DUPLEX_MODE_SIMPLEX,
|
|
|
|
DUPLEX_MODE_LONG_EDGE,
|
|
|
|
DUPLEX_MODE_SHORT_EDGE,
|
|
|
|
} cef_duplex_mode_t;
|
|
|
|
|
2014-11-24 22:56:12 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Cursor type values.
|
2014-11-24 22:56:12 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CT_POINTER = 0,
|
|
|
|
CT_CROSS,
|
|
|
|
CT_HAND,
|
|
|
|
CT_IBEAM,
|
|
|
|
CT_WAIT,
|
|
|
|
CT_HELP,
|
|
|
|
CT_EASTRESIZE,
|
|
|
|
CT_NORTHRESIZE,
|
|
|
|
CT_NORTHEASTRESIZE,
|
|
|
|
CT_NORTHWESTRESIZE,
|
|
|
|
CT_SOUTHRESIZE,
|
|
|
|
CT_SOUTHEASTRESIZE,
|
|
|
|
CT_SOUTHWESTRESIZE,
|
|
|
|
CT_WESTRESIZE,
|
|
|
|
CT_NORTHSOUTHRESIZE,
|
|
|
|
CT_EASTWESTRESIZE,
|
|
|
|
CT_NORTHEASTSOUTHWESTRESIZE,
|
|
|
|
CT_NORTHWESTSOUTHEASTRESIZE,
|
|
|
|
CT_COLUMNRESIZE,
|
|
|
|
CT_ROWRESIZE,
|
|
|
|
CT_MIDDLEPANNING,
|
|
|
|
CT_EASTPANNING,
|
|
|
|
CT_NORTHPANNING,
|
|
|
|
CT_NORTHEASTPANNING,
|
|
|
|
CT_NORTHWESTPANNING,
|
|
|
|
CT_SOUTHPANNING,
|
|
|
|
CT_SOUTHEASTPANNING,
|
|
|
|
CT_SOUTHWESTPANNING,
|
|
|
|
CT_WESTPANNING,
|
|
|
|
CT_MOVE,
|
|
|
|
CT_VERTICALTEXT,
|
|
|
|
CT_CELL,
|
|
|
|
CT_CONTEXTMENU,
|
|
|
|
CT_ALIAS,
|
|
|
|
CT_PROGRESS,
|
|
|
|
CT_NODROP,
|
|
|
|
CT_COPY,
|
|
|
|
CT_NONE,
|
|
|
|
CT_NOTALLOWED,
|
|
|
|
CT_ZOOMIN,
|
|
|
|
CT_ZOOMOUT,
|
|
|
|
CT_GRAB,
|
|
|
|
CT_GRABBING,
|
2020-03-30 22:13:42 +02:00
|
|
|
CT_MIDDLE_PANNING_VERTICAL,
|
|
|
|
CT_MIDDLE_PANNING_HORIZONTAL,
|
2014-11-24 22:56:12 +01:00
|
|
|
CT_CUSTOM,
|
2020-03-30 22:13:42 +02:00
|
|
|
CT_DND_NONE,
|
|
|
|
CT_DND_MOVE,
|
|
|
|
CT_DND_COPY,
|
|
|
|
CT_DND_LINK,
|
2014-11-24 22:56:12 +01:00
|
|
|
} cef_cursor_type_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing cursor information. |buffer| will be
|
|
|
|
/// |size.width|*|size.height|*4 bytes in size and represents a BGRA image with
|
|
|
|
/// an upper-left origin.
|
2014-11-24 22:56:12 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_cursor_info_t {
|
|
|
|
cef_point_t hotspot;
|
|
|
|
float image_scale_factor;
|
|
|
|
void* buffer;
|
|
|
|
cef_size_t size;
|
|
|
|
} cef_cursor_info_t;
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// URI unescape rules passed to CefURIDecode().
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Don't unescape anything at all.
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
|
|
|
UU_NONE = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Don't unescape anything special, but all normal unescaping will happen.
|
|
|
|
/// This is a placeholder and can't be combined with other flags (since it's
|
|
|
|
/// just the absence of them). All other unescape rules imply "normal" in
|
|
|
|
/// addition to their special meaning. Things like escaped letters, digits,
|
|
|
|
/// and most symbols will get unescaped with this mode.
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
2016-03-16 03:55:59 +01:00
|
|
|
UU_NORMAL = 1 << 0,
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Convert %20 to spaces. In some places where we're showing URLs, we may
|
|
|
|
/// want this. In places where the URL may be copied and pasted out, then
|
|
|
|
/// you wouldn't want this since it might not be interpreted in one piece
|
|
|
|
/// by other applications.
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
2016-03-16 03:55:59 +01:00
|
|
|
UU_SPACES = 1 << 1,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Unescapes '/' and '\\'. If these characters were unescaped, the resulting
|
|
|
|
/// URL won't be the same as the source one. Moreover, they are dangerous to
|
|
|
|
/// unescape in strings that will be used as file paths or names. This value
|
|
|
|
/// should only be used when slashes don't have special meaning, like data
|
|
|
|
/// URLs.
|
2016-03-16 03:55:59 +01:00
|
|
|
///
|
|
|
|
UU_PATH_SEPARATORS = 1 << 2,
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Unescapes various characters that will change the meaning of URLs,
|
|
|
|
/// including '%', '+', '&', '#'. Does not unescape path separators.
|
|
|
|
/// If these characters were unescaped, the resulting URL won't be the same
|
|
|
|
/// as the source one. This flag is used when generating final output like
|
|
|
|
/// filenames for URLs where we won't be interpreting as a URL and want to do
|
|
|
|
/// as much unescaping as possible.
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
2016-03-16 03:55:59 +01:00
|
|
|
UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 1 << 3,
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// URL queries use "+" for space. This flag controls that replacement.
|
2015-02-11 19:15:04 +01:00
|
|
|
///
|
2020-04-02 23:16:52 +02:00
|
|
|
UU_REPLACE_PLUS_WITH_SPACE = 1 << 4,
|
2015-02-11 19:15:04 +01:00
|
|
|
} cef_uri_unescape_rule_t;
|
|
|
|
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Options that can be passed to CefParseJSON.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Parses the input strictly according to RFC 4627. See comments in
|
|
|
|
/// Chromium's base/json/json_reader.h file for known limitations/
|
|
|
|
/// deviations from the RFC.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_PARSER_RFC = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Allows commas to exist after the last element in structures.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_PARSER_ALLOW_TRAILING_COMMAS = 1 << 0,
|
|
|
|
} cef_json_parser_options_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Options that can be passed to CefWriteJSON.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default behavior.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_WRITER_DEFAULT = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This option instructs the writer that if a Binary value is encountered,
|
|
|
|
/// the value (and key if within a dictionary) will be omitted from the
|
|
|
|
/// output, and success will be returned. Otherwise, if a binary value is
|
|
|
|
/// encountered, failure will be returned.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_WRITER_OMIT_BINARY_VALUES = 1 << 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// This option instructs the writer to write doubles that have no fractional
|
|
|
|
/// part as a normal integer (i.e., without using exponential notation
|
|
|
|
/// or appending a '.0') as long as the value is within the range of a
|
|
|
|
/// 64-bit int.
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 1 << 1,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a slightly nicer formatted json string (pads with whitespace to
|
|
|
|
/// help with readability).
|
2015-04-17 16:19:30 +02:00
|
|
|
///
|
|
|
|
JSON_WRITER_PRETTY_PRINT = 1 << 2,
|
|
|
|
} cef_json_writer_options_t;
|
|
|
|
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Margin type for PDF printing.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Default margins of 1cm (~0.4 inches).
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
PDF_PRINT_MARGIN_DEFAULT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No margins.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
PDF_PRINT_MARGIN_NONE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Custom margins using the |margin_*| values from cef_pdf_print_settings_t.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
PDF_PRINT_MARGIN_CUSTOM,
|
|
|
|
} cef_pdf_print_margin_type_t;
|
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Structure representing PDF print settings. These values match the parameters
|
|
|
|
/// supported by the DevTools Page.printToPDF function. See
|
|
|
|
/// https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_pdf_print_settings_t {
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Set to true (1) for landscape mode or false (0) for portrait mode.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
int landscape;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Set to true (1) to print background graphics.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
int print_background;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// The percentage to scale the PDF by before printing (e.g. .5 is 50%).
|
|
|
|
/// If this value is less than or equal to zero the default value of 1.0
|
|
|
|
/// will be used.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
double scale;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
2017-03-16 22:47:40 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Output paper size in inches. If either of these values is less than or
|
|
|
|
/// equal to zero then the default paper size (letter, 8.5 x 11 inches) will
|
|
|
|
/// be used.
|
2017-03-16 22:47:40 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
double paper_width;
|
|
|
|
double paper_height;
|
2017-03-16 22:47:40 +01:00
|
|
|
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Set to true (1) to prefer page size as defined by css. Defaults to false
|
|
|
|
/// (0), in which case the content will be scaled to fit the paper size.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
int prefer_css_page_size;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Margin type.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
|
|
|
cef_pdf_print_margin_type_t margin_type;
|
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Margins in inches. Only used if |margin_type| is set to
|
|
|
|
/// PDF_PRINT_MARGIN_CUSTOM.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
double margin_top;
|
|
|
|
double margin_right;
|
|
|
|
double margin_bottom;
|
|
|
|
double margin_left;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed
|
|
|
|
/// in the document order, not in the order specified, and no more than once.
|
|
|
|
/// Defaults to empty string, which implies the entire document is printed.
|
|
|
|
/// The page numbers are quietly capped to actual page count of the document,
|
|
|
|
/// and ranges beyond the end of the document are ignored. If this results in
|
|
|
|
/// no pages to print, an error is reported. It is an error to specify a range
|
|
|
|
/// with start greater than end.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
cef_string_t page_ranges;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// Set to true (1) to display the header and/or footer. Modify
|
|
|
|
/// |header_template| and/or |footer_template| to customize the display.
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
int display_header_footer;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// HTML template for the print header. Only displayed if
|
|
|
|
/// |display_header_footer| is true (1). Should be valid HTML markup with
|
|
|
|
/// the following classes used to inject printing values into them:
|
|
|
|
///
|
|
|
|
/// - date: formatted print date
|
|
|
|
/// - title: document title
|
|
|
|
/// - url: document location
|
|
|
|
/// - pageNumber: current page number
|
|
|
|
/// - totalPages: total pages in the document
|
2015-03-24 16:40:08 +01:00
|
|
|
///
|
2022-10-12 23:53:06 +02:00
|
|
|
/// For example, "<span class=title></span>" would generate a span containing
|
|
|
|
/// the title.
|
|
|
|
///
|
|
|
|
cef_string_t header_template;
|
2015-03-24 16:40:08 +01:00
|
|
|
|
2022-10-12 23:53:06 +02:00
|
|
|
///
|
|
|
|
/// HTML template for the print footer. Only displayed if
|
|
|
|
/// |display_header_footer| is true (1). Uses the same format as
|
|
|
|
/// |header_template|.
|
|
|
|
///
|
|
|
|
cef_string_t footer_template;
|
2015-03-24 16:40:08 +01:00
|
|
|
} cef_pdf_print_settings_t;
|
|
|
|
|
2015-09-09 16:05:39 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported UI scale factors for the platform. SCALE_FACTOR_NONE is used for
|
|
|
|
/// density independent resources such as string, html/js files or an image that
|
|
|
|
/// can be used for any scale factors (such as wallpapers).
|
2015-09-09 16:05:39 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
SCALE_FACTOR_NONE = 0,
|
|
|
|
SCALE_FACTOR_100P,
|
|
|
|
SCALE_FACTOR_125P,
|
|
|
|
SCALE_FACTOR_133P,
|
|
|
|
SCALE_FACTOR_140P,
|
|
|
|
SCALE_FACTOR_150P,
|
|
|
|
SCALE_FACTOR_180P,
|
|
|
|
SCALE_FACTOR_200P,
|
|
|
|
SCALE_FACTOR_250P,
|
|
|
|
SCALE_FACTOR_300P,
|
|
|
|
} cef_scale_factor_t;
|
|
|
|
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Policy for how the Referrer HTTP header value will be sent during
|
|
|
|
/// navigation. If the `--no-referrers` command-line flag is specified then the
|
|
|
|
/// policy value will be ignored and the Referrer value will never be sent. Must
|
|
|
|
/// be kept synchronized with net::URLRequest::ReferrerPolicy from Chromium.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2015-12-05 03:58:56 +01:00
|
|
|
typedef enum {
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Clear the referrer header if the header value is HTTPS but the request
|
|
|
|
/// destination is HTTP. This is the default behavior.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2017-07-27 01:19:27 +02:00
|
|
|
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
|
|
|
|
REFERRER_POLICY_DEFAULT =
|
|
|
|
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
|
2015-12-01 19:22:28 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// A slight variant on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE:
|
|
|
|
/// If the request destination is HTTP, an HTTPS referrer will be cleared. If
|
|
|
|
/// the request's destination is cross-origin with the referrer (but does not
|
|
|
|
/// downgrade), the referrer's granularity will be stripped down to an origin
|
|
|
|
/// rather than a full URL. Same-origin requests will send the full referrer.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2017-07-27 01:19:27 +02:00
|
|
|
REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN,
|
2015-12-01 19:22:28 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Strip the referrer down to an origin when the origin of the referrer is
|
|
|
|
/// different from the destination's origin.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2017-07-27 01:19:27 +02:00
|
|
|
REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN,
|
2015-12-01 19:22:28 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Never change the referrer.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2017-07-27 01:19:27 +02:00
|
|
|
REFERRER_POLICY_NEVER_CLEAR_REFERRER,
|
2015-12-01 19:22:28 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Strip the referrer down to the origin regardless of the redirect location.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
|
|
|
REFERRER_POLICY_ORIGIN,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Clear the referrer when the request's referrer is cross-origin with the
|
|
|
|
/// request's destination.
|
2017-07-27 01:19:27 +02:00
|
|
|
///
|
|
|
|
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Strip the referrer down to the origin, but clear it entirely if the
|
|
|
|
/// referrer value is HTTPS and the destination is HTTP.
|
2015-12-01 19:22:28 +01:00
|
|
|
///
|
2017-07-27 01:19:27 +02:00
|
|
|
REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Always clear the referrer regardless of the request destination.
|
2017-07-27 01:19:27 +02:00
|
|
|
///
|
|
|
|
REFERRER_POLICY_NO_REFERRER,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Always the last value in this enumeration.
|
2019-01-17 10:56:52 +01:00
|
|
|
REFERRER_POLICY_LAST_VALUE = REFERRER_POLICY_NO_REFERRER,
|
2015-12-01 19:22:28 +01:00
|
|
|
} cef_referrer_policy_t;
|
|
|
|
|
2015-12-05 03:58:56 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return values for CefResponseFilter::Filter().
|
2015-12-05 03:58:56 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Some or all of the pre-filter data was read successfully but more data is
|
|
|
|
/// needed in order to continue filtering (filtered output is pending).
|
2015-12-05 03:58:56 +01:00
|
|
|
///
|
|
|
|
RESPONSE_FILTER_NEED_MORE_DATA,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Some or all of the pre-filter data was read successfully and all available
|
|
|
|
/// filtered output has been written.
|
2015-12-05 03:58:56 +01:00
|
|
|
///
|
|
|
|
RESPONSE_FILTER_DONE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// An error occurred during filtering.
|
2015-12-05 03:58:56 +01:00
|
|
|
///
|
|
|
|
RESPONSE_FILTER_ERROR
|
|
|
|
} cef_response_filter_status_t;
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Describes how to interpret the components of a pixel.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// RGBA with 8 bits per pixel (32bits total).
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_COLOR_TYPE_RGBA_8888,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// BGRA with 8 bits per pixel (32bits total).
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_COLOR_TYPE_BGRA_8888,
|
|
|
|
} cef_color_type_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Describes how to interpret the alpha component of a pixel.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No transparency. The alpha component is ignored.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_ALPHA_TYPE_OPAQUE,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Transparency with pre-multiplied alpha component.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_ALPHA_TYPE_PREMULTIPLIED,
|
2017-05-17 11:29:28 +02:00
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Transparency with post-multiplied alpha component.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_ALPHA_TYPE_POSTMULTIPLIED,
|
|
|
|
} cef_alpha_type_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Text style types. Should be kepy in sync with gfx::TextStyle.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_TEXT_STYLE_BOLD,
|
|
|
|
CEF_TEXT_STYLE_ITALIC,
|
|
|
|
CEF_TEXT_STYLE_STRIKE,
|
|
|
|
CEF_TEXT_STYLE_DIAGONAL_STRIKE,
|
|
|
|
CEF_TEXT_STYLE_UNDERLINE,
|
|
|
|
} cef_text_style_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies where along the main axis the CefBoxLayout child views should be
|
|
|
|
/// laid out.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be left-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_MAIN_AXIS_ALIGNMENT_START,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be center-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_MAIN_AXIS_ALIGNMENT_CENTER,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be right-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_MAIN_AXIS_ALIGNMENT_END,
|
|
|
|
} cef_main_axis_alignment_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies where along the cross axis the CefBoxLayout child views should be
|
|
|
|
/// laid out.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be stretched to fit.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_CROSS_AXIS_ALIGNMENT_STRETCH,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be left-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_CROSS_AXIS_ALIGNMENT_START,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be center-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_CROSS_AXIS_ALIGNMENT_CENTER,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Child views will be right-aligned.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_CROSS_AXIS_ALIGNMENT_END,
|
|
|
|
} cef_cross_axis_alignment_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Settings used when initializing a CefBoxLayout.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef struct _cef_box_layout_settings_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If true (1) the layout will be horizontal, otherwise the layout will be
|
|
|
|
/// vertical.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int horizontal;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Adds additional horizontal space between the child view area and the host
|
|
|
|
/// view border.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int inside_border_horizontal_spacing;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Adds additional vertical space between the child view area and the host
|
|
|
|
/// view border.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int inside_border_vertical_spacing;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Adds additional space around the child view area.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
cef_insets_t inside_border_insets;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Adds additional space between child views.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int between_child_spacing;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies where along the main axis the child views should be laid out.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
cef_main_axis_alignment_t main_axis_alignment;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies where along the cross axis the child views should be laid out.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
cef_cross_axis_alignment_t cross_axis_alignment;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Minimum cross axis size.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int minimum_cross_axis_size;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Default flex for views when none is specified via CefBoxLayout methods.
|
|
|
|
/// Using the preferred size as the basis, free space along the main axis is
|
|
|
|
/// distributed to views in the ratio of their flex weights. Similarly, if the
|
|
|
|
/// views will overflow the parent, space is subtracted in these ratios. A
|
|
|
|
/// flex of 0 means this view is not resized. Flex values must not be
|
|
|
|
/// negative.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
int default_flex;
|
|
|
|
} cef_box_layout_settings_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies the button display state.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_BUTTON_STATE_NORMAL,
|
|
|
|
CEF_BUTTON_STATE_HOVERED,
|
|
|
|
CEF_BUTTON_STATE_PRESSED,
|
|
|
|
CEF_BUTTON_STATE_DISABLED,
|
|
|
|
} cef_button_state_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies the horizontal text alignment mode.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Align the text's left edge with that of its display area.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_HORIZONTAL_ALIGNMENT_LEFT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Align the text's center with that of its display area.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_HORIZONTAL_ALIGNMENT_CENTER,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Align the text's right edge with that of its display area.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
CEF_HORIZONTAL_ALIGNMENT_RIGHT,
|
|
|
|
} cef_horizontal_alignment_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Specifies how a menu will be anchored for non-RTL languages. The opposite
|
|
|
|
/// position will be used for RTL languages.
|
2016-01-19 21:09:01 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_MENU_ANCHOR_TOPLEFT,
|
|
|
|
CEF_MENU_ANCHOR_TOPRIGHT,
|
|
|
|
CEF_MENU_ANCHOR_BOTTOMCENTER,
|
|
|
|
} cef_menu_anchor_position_t;
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported color types for menu items.
|
2017-02-25 06:03:31 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_MENU_COLOR_TEXT,
|
|
|
|
CEF_MENU_COLOR_TEXT_HOVERED,
|
|
|
|
CEF_MENU_COLOR_TEXT_ACCELERATOR,
|
|
|
|
CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED,
|
|
|
|
CEF_MENU_COLOR_BACKGROUND,
|
|
|
|
CEF_MENU_COLOR_BACKGROUND_HOVERED,
|
|
|
|
CEF_MENU_COLOR_COUNT,
|
|
|
|
} cef_menu_color_type_t;
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported SSL version values. See net/ssl/ssl_connection_status_flags.h
|
|
|
|
/// for more information.
|
2016-09-02 12:01:33 +02:00
|
|
|
typedef enum {
|
|
|
|
SSL_CONNECTION_VERSION_UNKNOWN = 0, // Unknown SSL version.
|
|
|
|
SSL_CONNECTION_VERSION_SSL2 = 1,
|
|
|
|
SSL_CONNECTION_VERSION_SSL3 = 2,
|
|
|
|
SSL_CONNECTION_VERSION_TLS1 = 3,
|
|
|
|
SSL_CONNECTION_VERSION_TLS1_1 = 4,
|
|
|
|
SSL_CONNECTION_VERSION_TLS1_2 = 5,
|
2019-06-03 10:55:36 +02:00
|
|
|
SSL_CONNECTION_VERSION_TLS1_3 = 6,
|
2016-09-02 12:01:33 +02:00
|
|
|
SSL_CONNECTION_VERSION_QUIC = 7,
|
|
|
|
} cef_ssl_version_t;
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Supported SSL content status flags. See content/public/common/ssl_status.h
|
|
|
|
/// for more information.
|
2016-09-02 12:01:33 +02:00
|
|
|
typedef enum {
|
|
|
|
SSL_CONTENT_NORMAL_CONTENT = 0,
|
|
|
|
SSL_CONTENT_DISPLAYED_INSECURE_CONTENT = 1 << 0,
|
|
|
|
SSL_CONTENT_RAN_INSECURE_CONTENT = 1 << 1,
|
|
|
|
} cef_ssl_content_status_t;
|
|
|
|
|
2019-02-26 17:45:12 +01:00
|
|
|
//
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Configuration options for registering a custom scheme.
|
|
|
|
/// These values are used when calling AddCustomScheme.
|
2019-02-26 17:45:12 +01:00
|
|
|
//
|
|
|
|
typedef enum {
|
|
|
|
CEF_SCHEME_OPTION_NONE = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_STANDARD is set the scheme will be treated as a
|
|
|
|
/// standard scheme. Standard schemes are subject to URL canonicalization and
|
|
|
|
/// parsing rules as defined in the Common Internet Scheme Syntax RFC 1738
|
|
|
|
/// Section 3.1 available at http://www.ietf.org/rfc/rfc1738.txt
|
2019-02-26 17:45:12 +01:00
|
|
|
//
|
2022-09-01 04:03:04 +02:00
|
|
|
/// In particular, the syntax for standard scheme URLs must be of the form:
|
|
|
|
/// <pre>
|
|
|
|
/// [scheme]://[username]:[password]@[host]:[port]/[url-path]
|
|
|
|
/// </pre> Standard scheme URLs must have a host component that is a fully
|
|
|
|
/// qualified domain name as defined in Section 3.5 of RFC 1034 [13] and
|
|
|
|
/// Section 2.1 of RFC 1123. These URLs will be canonicalized to
|
|
|
|
/// "scheme://host/path" in the simplest case and
|
|
|
|
/// "scheme://username:password@host:port/path" in the most explicit case. For
|
|
|
|
/// example, "scheme:host/path" and "scheme:///host/path" will both be
|
|
|
|
/// canonicalized to "scheme://host/path". The origin of a standard scheme URL
|
|
|
|
/// is the combination of scheme, host and port (i.e., "scheme://host:port" in
|
|
|
|
/// the most explicit case).
|
2019-02-26 17:45:12 +01:00
|
|
|
//
|
2022-09-01 04:03:04 +02:00
|
|
|
/// For non-standard scheme URLs only the "scheme:" component is parsed and
|
|
|
|
/// canonicalized. The remainder of the URL will be passed to the handler as-
|
|
|
|
/// is. For example, "scheme:///some%20text" will remain the same.
|
|
|
|
/// Non-standard scheme URLs cannot be used as a target for form submission.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_STANDARD = 1 << 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_LOCAL is set the scheme will be treated with the same
|
|
|
|
/// security rules as those applied to "file" URLs. Normal pages cannot link
|
|
|
|
/// to or access local URLs. Also, by default, local URLs can only perform
|
|
|
|
/// XMLHttpRequest calls to the same URL (origin + path) that originated the
|
|
|
|
/// request. To allow XMLHttpRequest calls from a local URL to other URLs with
|
|
|
|
/// the same origin set the CefSettings.file_access_from_file_urls_allowed
|
|
|
|
/// value to true (1). To allow XMLHttpRequest calls from a local URL to all
|
|
|
|
/// origins set the CefSettings.universal_access_from_file_urls_allowed value
|
|
|
|
/// to true (1).
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_LOCAL = 1 << 1,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_DISPLAY_ISOLATED is set the scheme can only be
|
|
|
|
/// displayed from other content hosted with the same scheme. For example,
|
|
|
|
/// pages in other origins cannot create iframes or hyperlinks to URLs with
|
|
|
|
/// the scheme. For schemes that must be accessible from other schemes don't
|
|
|
|
/// set this, set CEF_SCHEME_OPTION_CORS_ENABLED, and use CORS
|
|
|
|
/// "Access-Control-Allow-Origin" headers to further restrict access.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 1 << 2,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_SECURE is set the scheme will be treated with the
|
|
|
|
/// same security rules as those applied to "https" URLs. For example, loading
|
|
|
|
/// this scheme from other secure schemes will not trigger mixed content
|
|
|
|
/// warnings.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_SECURE = 1 << 3,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_CORS_ENABLED is set the scheme can be sent CORS
|
|
|
|
/// requests. This value should be set in most cases where
|
|
|
|
/// CEF_SCHEME_OPTION_STANDARD is set.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_CORS_ENABLED = 1 << 4,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_CSP_BYPASSING is set the scheme can bypass Content-
|
|
|
|
/// Security-Policy (CSP) checks. This value should not be set in most cases
|
|
|
|
/// where CEF_SCHEME_OPTION_STANDARD is set.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_CSP_BYPASSING = 1 << 5,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// If CEF_SCHEME_OPTION_FETCH_ENABLED is set the scheme can perform Fetch API
|
|
|
|
/// requests.
|
2019-02-26 17:45:12 +01:00
|
|
|
///
|
|
|
|
CEF_SCHEME_OPTION_FETCH_ENABLED = 1 << 6,
|
|
|
|
} cef_scheme_options_t;
|
|
|
|
|
2021-09-27 10:48:30 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing a range.
|
2021-09-27 10:48:30 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_range_t {
|
2023-05-16 12:22:17 +02:00
|
|
|
uint32_t from;
|
|
|
|
uint32_t to;
|
2021-09-27 10:48:30 +02:00
|
|
|
} cef_range_t;
|
|
|
|
|
2020-03-04 01:29:39 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Composition underline style.
|
2020-03-04 01:29:39 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_CUS_SOLID,
|
|
|
|
CEF_CUS_DOT,
|
|
|
|
CEF_CUS_DASH,
|
|
|
|
CEF_CUS_NONE,
|
|
|
|
} cef_composition_underline_style_t;
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing IME composition underline information. This is a thin
|
|
|
|
/// wrapper around Blink's WebCompositionUnderline class and should be kept in
|
|
|
|
/// sync with that.
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_composition_underline_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Underline character range.
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
|
|
|
cef_range_t range;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Text color.
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
|
|
|
cef_color_t color;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Background color.
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
|
|
|
cef_color_t background_color;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set to true (1) for thick underline.
|
2016-10-28 18:11:24 +02:00
|
|
|
///
|
|
|
|
int thick;
|
2020-03-04 01:29:39 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Style.
|
2020-03-04 01:29:39 +01:00
|
|
|
///
|
|
|
|
cef_composition_underline_style_t style;
|
2016-10-28 18:11:24 +02:00
|
|
|
} cef_composition_underline_t;
|
|
|
|
|
2020-05-01 20:18:18 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Enumerates the various representations of the ordering of audio channels.
|
|
|
|
/// Must be kept synchronized with media::ChannelLayout from Chromium.
|
|
|
|
/// See media\base\channel_layout.h
|
2020-05-01 20:18:18 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_CHANNEL_LAYOUT_NONE = 0,
|
|
|
|
CEF_CHANNEL_LAYOUT_UNSUPPORTED = 1,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_MONO = 2,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_STEREO = 3,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Back C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_2_1 = 4,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_SURROUND = 5,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Back C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_4_0 = 6,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Side L, Side R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_2_2 = 7,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Back L, Back R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_QUAD = 8,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Side L, Side R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_5_0 = 9,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Side L, Side R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_5_1 = 10,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Back L, Back R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_5_0_BACK = 11,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Back L, Back R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_5_1_BACK = 12,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Side L, Side R, Back L, Back R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_7_0 = 13,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Side L, Side R, Back L, Back R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_7_1 = 14,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Side L, Side R, Front LofC, Front RofC
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_7_1_WIDE = 15,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX = 16,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, LFE
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_2POINT1 = 17,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, LFE
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_3_1 = 18,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, Rear C, LFE
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_4_1 = 19,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, Side L, Side R, Back C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_6_0 = 20,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Side L, Side R, Front LofC, Front RofC
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_6_0_FRONT = 21,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, Rear L, Rear R, Rear C
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_HEXAGONAL = 22,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, LFE, Side L, Side R, Rear Center
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_6_1 = 23,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Front C, LFE, Back L, Back R, Rear Center
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_6_1_BACK = 24,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Stereo L, Stereo R, Side L, Side R, Front LofC, Front RofC, LFE
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_6_1_FRONT = 25,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Side L, Side R, Front LofC, Front RofC
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_7_0_FRONT = 26,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Back L, Back R, Front LofC, Front RofC
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK = 27,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, Side L, Side R, Rear L, Back R, Back C.
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_OCTAGONAL = 28,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Channels are not explicitly mapped to speakers.
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_DISCRETE = 29,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C. Front C contains the keyboard mic audio. This
|
|
|
|
/// layout is only intended for input for WebRTC. The Front C channel
|
|
|
|
/// is stripped away in the WebRTC audio input pipeline and never seen outside
|
|
|
|
/// of that.
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC = 30,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Side L, Side R, LFE
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE = 31,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Actual channel layout is specified in the bitstream and the actual channel
|
|
|
|
/// count is unknown at Chromium media pipeline level (useful for audio
|
|
|
|
/// pass-through mode).
|
2020-05-01 20:18:18 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_BITSTREAM = 32,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Front L, Front R, Front C, LFE, Side L, Side R,
|
|
|
|
/// Front Height L, Front Height R, Rear Height L, Rear Height R
|
|
|
|
/// Will be represented as six channels (5.1) due to eight channel limit
|
|
|
|
/// kMaxConcurrentChannels
|
2022-04-21 20:58:48 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX = 33,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Max value, must always equal the largest entry ever logged.
|
2022-04-21 20:58:48 +02:00
|
|
|
CEF_CHANNEL_LAYOUT_MAX = CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX
|
2020-05-01 20:18:18 +02:00
|
|
|
} cef_channel_layout_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure representing the audio parameters for setting up the audio
|
|
|
|
/// handler.
|
2020-05-01 20:18:18 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_audio_parameters_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Layout of the audio channels
|
2020-05-01 20:18:18 +02:00
|
|
|
///
|
|
|
|
cef_channel_layout_t channel_layout;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Sample rate
|
2020-05-01 20:18:18 +02:00
|
|
|
//
|
|
|
|
int sample_rate;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Number of frames per buffer
|
2020-05-01 20:18:18 +02:00
|
|
|
///
|
|
|
|
int frames_per_buffer;
|
|
|
|
} cef_audio_parameters_t;
|
|
|
|
|
2020-03-19 16:34:15 +01:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Result codes for CefMediaRouter::CreateRoute. Should be kept in sync with
|
|
|
|
/// Chromium's media_router::mojom::RouteRequestResultCode type.
|
2020-03-19 16:34:15 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_MRCR_UNKNOWN_ERROR = 0,
|
|
|
|
CEF_MRCR_OK = 1,
|
|
|
|
CEF_MRCR_TIMED_OUT = 2,
|
|
|
|
CEF_MRCR_ROUTE_NOT_FOUND = 3,
|
|
|
|
CEF_MRCR_SINK_NOT_FOUND = 4,
|
|
|
|
CEF_MRCR_INVALID_ORIGIN = 5,
|
|
|
|
CEF_MRCR_NO_SUPPORTED_PROVIDER = 7,
|
|
|
|
CEF_MRCR_CANCELLED = 8,
|
|
|
|
CEF_MRCR_ROUTE_ALREADY_EXISTS = 9,
|
2021-01-28 00:13:12 +01:00
|
|
|
CEF_MRCR_ROUTE_ALREADY_TERMINATED = 11,
|
2020-03-19 16:34:15 +01:00
|
|
|
} cef_media_route_create_result_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Connection state for a MediaRoute object.
|
2020-03-19 16:34:15 +01:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_MRCS_UNKNOWN,
|
|
|
|
CEF_MRCS_CONNECTING,
|
|
|
|
CEF_MRCS_CONNECTED,
|
|
|
|
CEF_MRCS_CLOSED,
|
|
|
|
CEF_MRCS_TERMINATED,
|
|
|
|
} cef_media_route_connection_state_t;
|
|
|
|
|
2020-04-29 21:01:09 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Icon types for a MediaSink object. Should be kept in sync with Chromium's
|
|
|
|
/// media_router::SinkIconType type.
|
2020-04-29 21:01:09 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_MSIT_CAST,
|
|
|
|
CEF_MSIT_CAST_AUDIO_GROUP,
|
|
|
|
CEF_MSIT_CAST_AUDIO,
|
|
|
|
CEF_MSIT_MEETING,
|
|
|
|
CEF_MSIT_HANGOUT,
|
|
|
|
CEF_MSIT_EDUCATION,
|
|
|
|
CEF_MSIT_WIRED_DISPLAY,
|
|
|
|
CEF_MSIT_GENERIC,
|
|
|
|
|
|
|
|
CEF_MSIT_TOTAL_COUNT, // The total number of values.
|
|
|
|
} cef_media_sink_icon_type_t;
|
|
|
|
|
2020-07-14 22:43:57 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Device information for a MediaSink object.
|
2020-07-14 22:43:57 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_media_sink_device_info_t {
|
|
|
|
cef_string_t ip_address;
|
|
|
|
int port;
|
|
|
|
cef_string_t model_name;
|
|
|
|
} cef_media_sink_device_info_t;
|
|
|
|
|
2020-06-09 19:48:00 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Represents commands available to TextField.
|
2020-06-09 19:48:00 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_TFC_CUT = 1,
|
|
|
|
CEF_TFC_COPY,
|
|
|
|
CEF_TFC_PASTE,
|
|
|
|
CEF_TFC_UNDO,
|
|
|
|
CEF_TFC_DELETE,
|
|
|
|
CEF_TFC_SELECT_ALL,
|
|
|
|
} cef_text_field_commands_t;
|
|
|
|
|
2021-04-11 22:10:11 +02:00
|
|
|
///
|
2023-03-07 00:21:57 +01:00
|
|
|
/// Chrome toolbar types.
|
2021-04-11 22:10:11 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_CTT_NONE = 1,
|
|
|
|
CEF_CTT_NORMAL,
|
|
|
|
CEF_CTT_LOCATION,
|
|
|
|
} cef_chrome_toolbar_type_t;
|
|
|
|
|
2023-03-07 00:21:57 +01:00
|
|
|
///
|
|
|
|
/// Chrome page action icon types. Should be kept in sync with Chromium's
|
|
|
|
/// PageActionIconType type.
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_CPAIT_BOOKMARK_STAR = 0,
|
|
|
|
CEF_CPAIT_CLICK_TO_CALL,
|
|
|
|
CEF_CPAIT_COOKIE_CONTROLS,
|
|
|
|
CEF_CPAIT_FILE_SYSTEM_ACCESS,
|
|
|
|
CEF_CPAIT_FIND,
|
|
|
|
CEF_CPAIT_HIGH_EFFICIENCY,
|
|
|
|
CEF_CPAIT_INTENT_PICKER,
|
|
|
|
CEF_CPAIT_LOCAL_CARD_MIGRATION,
|
|
|
|
CEF_CPAIT_MANAGE_PASSWORDS,
|
|
|
|
CEF_CPAIT_PAYMENTS_OFFER_NOTIFICATION,
|
|
|
|
CEF_CPAIT_PRICE_TRACKING,
|
|
|
|
CEF_CPAIT_PWA_INSTALL,
|
|
|
|
CEF_CPAIT_QR_CODE_GENERATOR,
|
|
|
|
CEF_CPAIT_READER_MODE,
|
|
|
|
CEF_CPAIT_SAVE_AUTOFILL_ADDRESS,
|
|
|
|
CEF_CPAIT_SAVE_CARD,
|
|
|
|
CEF_CPAIT_SEND_TAB_TO_SELF,
|
|
|
|
CEF_CPAIT_SHARING_HUB,
|
|
|
|
CEF_CPAIT_SIDE_SEARCH,
|
|
|
|
CEF_CPAIT_SMS_REMOTE_FETCHER,
|
|
|
|
CEF_CPAIT_TRANSLATE,
|
|
|
|
CEF_CPAIT_VIRTUAL_CARD_ENROLL,
|
|
|
|
CEF_CPAIT_VIRTUAL_CARD_MANUAL_FALLBACK,
|
|
|
|
CEF_CPAIT_ZOOM,
|
|
|
|
CEF_CPAIT_SAVE_IBAN,
|
2023-05-30 10:55:32 +02:00
|
|
|
CEF_CPAIT_MANDATORY_REAUTH,
|
|
|
|
CEF_CPAIT_MAX_VALUE = CEF_CPAIT_MANDATORY_REAUTH,
|
2023-03-07 00:21:57 +01:00
|
|
|
} cef_chrome_page_action_icon_type_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Chrome toolbar button types. Should be kept in sync with CEF's internal
|
|
|
|
/// ToolbarButtonType type.
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_CTBT_CAST = 0,
|
|
|
|
CEF_CTBT_DOWNLOAD,
|
|
|
|
CEF_CTBT_SEND_TAB_TO_SELF,
|
|
|
|
CEF_CTBT_SIDE_PANEL,
|
|
|
|
CEF_CTBT_MAX_VALUE = CEF_CTBT_SIDE_PANEL,
|
|
|
|
} cef_chrome_toolbar_button_type_t;
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Docking modes supported by CefWindow::AddOverlay.
|
2021-08-28 03:55:15 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_DOCKING_MODE_TOP_LEFT = 1,
|
|
|
|
CEF_DOCKING_MODE_TOP_RIGHT,
|
|
|
|
CEF_DOCKING_MODE_BOTTOM_LEFT,
|
|
|
|
CEF_DOCKING_MODE_BOTTOM_RIGHT,
|
|
|
|
CEF_DOCKING_MODE_CUSTOM,
|
|
|
|
} cef_docking_mode_t;
|
|
|
|
|
2021-09-07 16:04:55 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Show states supported by CefWindowDelegate::GetInitialShowState.
|
2021-09-07 16:04:55 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_SHOW_STATE_NORMAL = 1,
|
|
|
|
CEF_SHOW_STATE_MINIMIZED,
|
|
|
|
CEF_SHOW_STATE_MAXIMIZED,
|
|
|
|
CEF_SHOW_STATE_FULLSCREEN,
|
|
|
|
} cef_show_state_t;
|
|
|
|
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Values indicating what state of the touch handle is set.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_THS_FLAG_NONE = 0,
|
|
|
|
CEF_THS_FLAG_ENABLED = 1 << 0,
|
|
|
|
CEF_THS_FLAG_ORIENTATION = 1 << 1,
|
|
|
|
CEF_THS_FLAG_ORIGIN = 1 << 2,
|
|
|
|
CEF_THS_FLAG_ALPHA = 1 << 3,
|
|
|
|
} cef_touch_handle_state_flags_t;
|
|
|
|
|
|
|
|
typedef struct _cef_touch_handle_state_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Touch handle id. Increments for each new touch handle.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
int touch_handle_id;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Combination of cef_touch_handle_state_flags_t values indicating what state
|
|
|
|
/// is set.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
2023-06-01 16:06:15 +02:00
|
|
|
uint32_t flags;
|
2022-05-27 11:03:31 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Enabled state. Only set if |flags| contains CEF_THS_FLAG_ENABLED.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
int enabled;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Orientation state. Only set if |flags| contains CEF_THS_FLAG_ORIENTATION.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
cef_horizontal_alignment_t orientation;
|
|
|
|
int mirror_vertical;
|
|
|
|
int mirror_horizontal;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Origin state. Only set if |flags| contains CEF_THS_FLAG_ORIGIN.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
cef_point_t origin;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Alpha state. Only set if |flags| contains CEF_THS_FLAG_ALPHA.
|
2022-05-27 11:03:31 +02:00
|
|
|
///
|
|
|
|
float alpha;
|
|
|
|
} cef_touch_handle_state_t;
|
|
|
|
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Media access permissions used by OnRequestMediaAccessPermission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// No permission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
CEF_MEDIA_PERMISSION_NONE = 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Device audio capture permission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
CEF_MEDIA_PERMISSION_DEVICE_AUDIO_CAPTURE = 1 << 0,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Device video capture permission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
CEF_MEDIA_PERMISSION_DEVICE_VIDEO_CAPTURE = 1 << 1,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Desktop audio capture permission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
CEF_MEDIA_PERMISSION_DESKTOP_AUDIO_CAPTURE = 1 << 2,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Desktop video capture permission.
|
2022-06-30 09:31:18 +02:00
|
|
|
///
|
|
|
|
CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE = 1 << 3,
|
|
|
|
} cef_media_access_permission_types_t;
|
|
|
|
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Permission types used with OnShowPermissionPrompt. Some types are
|
|
|
|
/// platform-specific or only supported with the Chrome runtime. Should be kept
|
|
|
|
/// in sync with Chromium's permissions::RequestType type.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_PERMISSION_TYPE_NONE = 0,
|
|
|
|
CEF_PERMISSION_TYPE_ACCESSIBILITY_EVENTS = 1 << 0,
|
|
|
|
CEF_PERMISSION_TYPE_AR_SESSION = 1 << 1,
|
|
|
|
CEF_PERMISSION_TYPE_CAMERA_PAN_TILT_ZOOM = 1 << 2,
|
|
|
|
CEF_PERMISSION_TYPE_CAMERA_STREAM = 1 << 3,
|
|
|
|
CEF_PERMISSION_TYPE_CLIPBOARD = 1 << 4,
|
2023-01-30 18:43:54 +01:00
|
|
|
CEF_PERMISSION_TYPE_TOP_LEVEL_STORAGE_ACCESS = 1 << 5,
|
|
|
|
CEF_PERMISSION_TYPE_DISK_QUOTA = 1 << 6,
|
|
|
|
CEF_PERMISSION_TYPE_LOCAL_FONTS = 1 << 7,
|
|
|
|
CEF_PERMISSION_TYPE_GEOLOCATION = 1 << 8,
|
|
|
|
CEF_PERMISSION_TYPE_IDLE_DETECTION = 1 << 9,
|
|
|
|
CEF_PERMISSION_TYPE_MIC_STREAM = 1 << 10,
|
|
|
|
CEF_PERMISSION_TYPE_MIDI_SYSEX = 1 << 11,
|
|
|
|
CEF_PERMISSION_TYPE_MULTIPLE_DOWNLOADS = 1 << 12,
|
|
|
|
CEF_PERMISSION_TYPE_NOTIFICATIONS = 1 << 13,
|
|
|
|
CEF_PERMISSION_TYPE_PROTECTED_MEDIA_IDENTIFIER = 1 << 14,
|
|
|
|
CEF_PERMISSION_TYPE_REGISTER_PROTOCOL_HANDLER = 1 << 15,
|
|
|
|
CEF_PERMISSION_TYPE_SECURITY_ATTESTATION = 1 << 16,
|
|
|
|
CEF_PERMISSION_TYPE_STORAGE_ACCESS = 1 << 17,
|
|
|
|
CEF_PERMISSION_TYPE_U2F_API_REQUEST = 1 << 18,
|
|
|
|
CEF_PERMISSION_TYPE_VR_SESSION = 1 << 19,
|
|
|
|
CEF_PERMISSION_TYPE_WINDOW_MANAGEMENT = 1 << 20,
|
2022-07-07 12:01:24 +02:00
|
|
|
} cef_permission_request_types_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Permission request results.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Accept the permission request as an explicit user action.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
CEF_PERMISSION_RESULT_ACCEPT,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Deny the permission request as an explicit user action.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
CEF_PERMISSION_RESULT_DENY,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Dismiss the permission request as an explicit user action.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
CEF_PERMISSION_RESULT_DISMISS,
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Ignore the permission request. If the prompt remains unhandled (e.g.
|
|
|
|
/// OnShowPermissionPrompt returns false and there is no default permissions
|
|
|
|
/// UI) then any related promises may remain unresolved.
|
2022-07-07 12:01:24 +02:00
|
|
|
///
|
|
|
|
CEF_PERMISSION_RESULT_IGNORE,
|
|
|
|
} cef_permission_request_result_t;
|
|
|
|
|
2022-08-04 18:37:12 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Certificate types supported by CefTestServer::CreateAndStart. The matching
|
|
|
|
/// certificate file must exist in the "net/data/ssl/certificates" directory.
|
|
|
|
/// See CefSetDataDirectoryForTests() for related configuration.
|
2022-08-04 18:37:12 +02:00
|
|
|
///
|
|
|
|
typedef enum {
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Valid certificate using the IP (127.0.0.1). Loads the "ok_cert.pem" file.
|
2022-08-04 18:37:12 +02:00
|
|
|
CEF_TEST_CERT_OK_IP,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Valid certificate using the domain ("localhost"). Loads the
|
|
|
|
/// "localhost_cert.pem" file.
|
2022-08-04 18:37:12 +02:00
|
|
|
CEF_TEST_CERT_OK_DOMAIN,
|
|
|
|
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Expired certificate. Loads the "expired_cert.pem" file.
|
2022-08-04 18:37:12 +02:00
|
|
|
CEF_TEST_CERT_EXPIRED,
|
|
|
|
} cef_test_cert_type_t;
|
|
|
|
|
2022-10-26 00:50:29 +02:00
|
|
|
///
|
|
|
|
/// Preferences type passed to
|
|
|
|
/// CefBrowserProcessHandler::OnRegisterCustomPreferences.
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
/// Global preferences registered a single time at application startup.
|
|
|
|
CEF_PREFERENCES_TYPE_GLOBAL,
|
|
|
|
|
|
|
|
/// Request context preferences registered each time a new CefRequestContext
|
|
|
|
/// is created.
|
|
|
|
CEF_PREFERENCES_TYPE_REQUEST_CONTEXT,
|
|
|
|
} cef_preferences_type_t;
|
|
|
|
|
2023-04-21 06:15:08 +02:00
|
|
|
///
|
|
|
|
/// Download interrupt reasons. Should be kept in sync with
|
|
|
|
/// Chromium's download::DownloadInterruptReason type.
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NONE = 0,
|
|
|
|
|
|
|
|
/// Generic file operation failure.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED = 1,
|
|
|
|
|
|
|
|
/// The file cannot be accessed due to security restrictions.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED = 2,
|
|
|
|
|
|
|
|
/// There is not enough room on the drive.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE = 3,
|
|
|
|
|
|
|
|
/// The directory or file name is too long.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG = 5,
|
|
|
|
|
|
|
|
/// The file is too large for the file system to handle.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE = 6,
|
|
|
|
|
|
|
|
/// The file contains a virus.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED = 7,
|
|
|
|
|
|
|
|
/// The file was in use. Too many files are opened at once. We have run out of
|
|
|
|
/// memory.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR = 10,
|
|
|
|
|
|
|
|
/// The file was blocked due to local policy.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED = 11,
|
|
|
|
|
|
|
|
/// An attempt to check the safety of the download failed due to unexpected
|
|
|
|
/// reasons. See http://crbug.com/153212.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED = 12,
|
|
|
|
|
|
|
|
/// An attempt was made to seek past the end of a file in opening
|
|
|
|
/// a file (as part of resuming a previously interrupted download).
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT = 13,
|
|
|
|
|
|
|
|
/// The partial file didn't match the expected hash.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH = 14,
|
|
|
|
|
|
|
|
/// The source and the target of the download were the same.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SAME_AS_SOURCE = 15,
|
|
|
|
|
|
|
|
// Network errors.
|
|
|
|
|
|
|
|
/// Generic network failure.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED = 20,
|
|
|
|
|
|
|
|
/// The network operation timed out.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT = 21,
|
|
|
|
|
|
|
|
/// The network connection has been lost.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED = 22,
|
|
|
|
|
|
|
|
/// The server has gone down.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN = 23,
|
|
|
|
|
|
|
|
/// The network request was invalid. This may be due to the original URL or a
|
|
|
|
/// redirected URL:
|
|
|
|
/// - Having an unsupported scheme.
|
|
|
|
/// - Being an invalid URL.
|
|
|
|
/// - Being disallowed by policy.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST = 24,
|
|
|
|
|
|
|
|
// Server responses.
|
|
|
|
|
|
|
|
/// The server indicates that the operation has failed (generic).
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED = 30,
|
|
|
|
|
|
|
|
/// The server does not support range requests.
|
|
|
|
/// Internal use only: must restart from the beginning.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE = 31,
|
|
|
|
|
|
|
|
/// The server does not have the requested data.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT = 33,
|
|
|
|
|
|
|
|
/// Server didn't authorize access to resource.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED = 34,
|
|
|
|
|
|
|
|
/// Server certificate problem.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM = 35,
|
|
|
|
|
|
|
|
/// Server access forbidden.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN = 36,
|
|
|
|
|
|
|
|
/// Unexpected server response. This might indicate that the responding server
|
|
|
|
/// may not be the intended server.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNREACHABLE = 37,
|
|
|
|
|
|
|
|
/// The server sent fewer bytes than the content-length header. It may
|
|
|
|
/// indicate that the connection was closed prematurely, or the Content-Length
|
|
|
|
/// header was invalid. The download is only interrupted if strong validators
|
|
|
|
/// are present. Otherwise, it is treated as finished.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH = 38,
|
|
|
|
|
|
|
|
/// An unexpected cross-origin redirect happened.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT = 39,
|
|
|
|
|
|
|
|
// User input.
|
|
|
|
|
|
|
|
/// The user canceled the download.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED = 40,
|
|
|
|
|
|
|
|
/// The user shut down the browser.
|
|
|
|
/// Internal use only: resume pending downloads if possible.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN = 41,
|
|
|
|
|
|
|
|
// Crash.
|
|
|
|
|
|
|
|
/// The browser crashed.
|
|
|
|
/// Internal use only: resume pending downloads if possible.
|
|
|
|
CEF_DOWNLOAD_INTERRUPT_REASON_CRASH = 50,
|
|
|
|
} cef_download_interrupt_reason_t;
|
|
|
|
|
2023-05-26 11:05:33 +02:00
|
|
|
///
|
|
|
|
/// Specifies the gesture commands.
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
CEF_GESTURE_COMMAND_BACK,
|
|
|
|
CEF_GESTURE_COMMAND_FORWARD,
|
|
|
|
} cef_gesture_command_t;
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_H_
|