1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-12-04 09:26:52 +02:00
CEF4Delphi/source/uCEFConstants.pas
2020-07-18 19:12:01 +02:00

659 lines
30 KiB
ObjectPascal

// ************************************************************************
// ***************************** CEF4Delphi *******************************
// ************************************************************************
//
// CEF4Delphi is based on DCEF3 which uses CEF to embed a chromium-based
// browser in Delphi applications.
//
// The original license of DCEF3 still applies to CEF4Delphi.
//
// For more information about CEF4Delphi visit :
// https://www.briskbard.com/index.php?lang=en&pageid=cef
//
// Copyright © 2020 Salvador Diaz Fau. All rights reserved.
//
// ************************************************************************
// ************ vvvv Original license and comments below vvvv *************
// ************************************************************************
(*
* Delphi Chromium Embedded 3
*
* Usage allowed under the restrictions of the Lesser GNU General Public License
* or alternatively the restrictions of the Mozilla Public License 1.1
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* Unit owner : Henri Gourvest <hgourvest@gmail.com>
* Web site : http://www.progdigy.com
* Repository : http://code.google.com/p/delphichromiumembedded/
* Group : http://groups.google.com/group/delphichromiumembedded
*
* Embarcadero Technologies, Inc is not permitted to use or redistribute
* this source code without explicit permission.
*
*)
unit uCEFConstants;
{$IFDEF FPC}
{$MODE OBJFPC}{$H+}
{$ENDIF}
{$IFNDEF CPUX64}{$ALIGN ON}{$ENDIF}
{$MINENUMSIZE 4}
{$I cef.inc}
interface
{$IFDEF MSWINDOWS}
uses
{$IFDEF DELPHI16_UP}
Winapi.Messages;
{$ELSE}
Messages;
{$ENDIF}
{$ENDIF}
const
// Error list defined in /include/internal/cef_types.h (cef_errorcode_t)
// which includes this file /include/base/internal/cef_net_error_list.h
// which includes this Chromium source file /net/base/net_error_list.h
// available here in the master branch -> https://chromium.googlesource.com/chromium/src/+/master/net/base/net_error_list.h
// compare the values in the right Chromium branch.
ERR_NONE = 0;
ERR_IO_PENDING = -1;
ERR_FAILED = -2;
ERR_ABORTED = -3;
ERR_INVALID_ARGUMENT = -4;
ERR_INVALID_HANDLE = -5;
ERR_FILE_NOT_FOUND = -6;
ERR_TIMED_OUT = -7;
ERR_FILE_TOO_BIG = -8;
ERR_UNEXPECTED = -9;
ERR_ACCESS_DENIED = -10;
ERR_NOT_IMPLEMENTED = -11;
ERR_INSUFFICIENT_RESOURCES = -12;
ERR_OUT_OF_MEMORY = -13;
ERR_UPLOAD_FILE_CHANGED = -14;
ERR_SOCKET_NOT_CONNECTED = -15;
ERR_FILE_EXISTS = -16;
ERR_FILE_PATH_TOO_LONG = -17;
ERR_FILE_NO_SPACE = -18;
ERR_FILE_VIRUS_INFECTED = -19;
ERR_BLOCKED_BY_CLIENT = -20;
ERR_NETWORK_CHANGED = -21;
ERR_BLOCKED_BY_ADMINISTRATOR = -22;
ERR_SOCKET_IS_CONNECTED = -23;
ERR_BLOCKED_ENROLLMENT_CHECK_PENDING = -24;
ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25;
ERR_CONTEXT_SHUT_DOWN = -26;
ERR_BLOCKED_BY_RESPONSE = -27;
ERR_BLOCKED_BY_XSS_AUDITOR = -28;
ERR_CLEARTEXT_NOT_PERMITTED = -29;
ERR_CONNECTION_CLOSED = -100;
ERR_CONNECTION_RESET = -101;
ERR_CONNECTION_REFUSED = -102;
ERR_CONNECTION_ABORTED = -103;
ERR_CONNECTION_FAILED = -104;
ERR_NAME_NOT_RESOLVED = -105;
ERR_INTERNET_DISCONNECTED = -106;
ERR_SSL_PROTOCOL_ERROR = -107;
ERR_ADDRESS_INVALID = -108;
ERR_ADDRESS_UNREACHABLE = -109;
ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110;
ERR_TUNNEL_CONNECTION_FAILED = -111;
ERR_NO_SSL_VERSIONS_ENABLED = -112;
ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113;
ERR_SSL_RENEGOTIATION_REQUESTED = -114;
ERR_PROXY_AUTH_UNSUPPORTED = -115;
ERR_CERT_ERROR_IN_SSL_RENEGOTIATION = -116;
ERR_BAD_SSL_CLIENT_AUTH_CERT = -117;
ERR_CONNECTION_TIMED_OUT = -118;
ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119;
ERR_SOCKS_CONNECTION_FAILED = -120;
ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121;
ERR_ALPN_NEGOTIATION_FAILED = -122;
ERR_SSL_NO_RENEGOTIATION = -123;
ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124;
ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125;
ERR_SSL_BAD_RECORD_MAC_ALERT = -126;
ERR_PROXY_AUTH_REQUESTED = -127;
ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY = -129;
ERR_PROXY_CONNECTION_FAILED = -130;
ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131;
ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133;
ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134;
ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135;
ERR_PROXY_CERTIFICATE_INVALID = -136;
ERR_NAME_RESOLUTION_FAILED = -137;
ERR_NETWORK_ACCESS_DENIED = -138;
ERR_TEMPORARILY_THROTTLED = -139;
ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT = -140;
ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141;
ERR_MSG_TOO_BIG = -142;
ERR_SPDY_SESSION_ALREADY_EXISTS = -143;
ERR_WS_PROTOCOL_ERROR = -145;
ERR_ADDRESS_IN_USE = -147;
ERR_SSL_HANDSHAKE_NOT_COMPLETED = -148;
ERR_SSL_BAD_PEER_PUBLIC_KEY = -149;
ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150;
ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151;
ERR_ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH = -152;
ERR_SSL_DECRYPT_ERROR_ALERT = -153;
ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154;
ERR_SSL_SERVER_CERT_CHANGED = -156;
ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159;
ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160;
ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161;
ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162;
ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163;
ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164;
ERR_ICANN_NAME_COLLISION = -166;
ERR_SSL_SERVER_CERT_BAD_FORMAT = -167;
ERR_CT_STH_PARSING_FAILED = -168;
ERR_CT_STH_INCOMPLETE = -169;
ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170;
ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171;
ERR_SSL_OBSOLETE_CIPHER = -172;
ERR_WS_UPGRADE = -173;
ERR_READ_IF_READY_NOT_IMPLEMENTED = -174;
ERR_SSL_VERSION_INTERFERENCE = -175;
ERR_NO_BUFFER_SPACE = -176;
ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177;
ERR_EARLY_DATA_REJECTED = -178;
ERR_WRONG_VERSION_ON_EARLY_DATA = -179;
ERR_TLS13_DOWNGRADE_DETECTED = -180;
ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181;
ERR_CERT_COMMON_NAME_INVALID = -200;
ERR_CERT_DATE_INVALID = -201;
ERR_CERT_AUTHORITY_INVALID = -202;
ERR_CERT_CONTAINS_ERRORS = -203;
ERR_CERT_NO_REVOCATION_MECHANISM = -204;
ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205;
ERR_CERT_REVOKED = -206;
ERR_CERT_INVALID = -207;
ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208;
ERR_CERT_NON_UNIQUE_NAME = -210;
ERR_CERT_WEAK_KEY = -211;
ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212;
ERR_CERT_VALIDITY_TOO_LONG = -213;
ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214;
ERR_CERT_SYMANTEC_LEGACY = -215;
ERR_CERT_END = -216;
ERR_INVALID_URL = -300;
ERR_DISALLOWED_URL_SCHEME = -301;
ERR_UNKNOWN_URL_SCHEME = -302;
ERR_INVALID_REDIRECT = -303;
ERR_TOO_MANY_REDIRECTS = -310;
ERR_UNSAFE_REDIRECT = -311;
ERR_UNSAFE_PORT = -312;
ERR_INVALID_RESPONSE = -320;
ERR_INVALID_CHUNKED_ENCODING = -321;
ERR_METHOD_NOT_SUPPORTED = -322;
ERR_UNEXPECTED_PROXY_AUTH = -323;
ERR_EMPTY_RESPONSE = -324;
ERR_RESPONSE_HEADERS_TOO_BIG = -325;
ERR_PAC_STATUS_NOT_OK = -326;
ERR_PAC_SCRIPT_FAILED = -327;
ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328;
ERR_MALFORMED_IDENTITY = -329;
ERR_CONTENT_DECODING_FAILED = -330;
ERR_NETWORK_IO_SUSPENDED = -331;
ERR_SYN_REPLY_NOT_RECEIVED = -332;
ERR_ENCODING_CONVERSION_FAILED = -333;
ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT = -334;
ERR_NO_SUPPORTED_PROXIES = -336;
ERR_SPDY_PROTOCOL_ERROR = -337;
ERR_INVALID_AUTH_CREDENTIALS = -338;
ERR_UNSUPPORTED_AUTH_SCHEME = -339;
ERR_ENCODING_DETECTION_FAILED = -340;
ERR_MISSING_AUTH_CREDENTIALS = -341;
ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342;
ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343;
ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344;
ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345;
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346;
ERR_INCOMPLETE_SPDY_HEADERS = -347;
ERR_PAC_NOT_IN_DHCP = -348;
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349;
ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350;
ERR_SPDY_SERVER_REFUSED_STREAM = -351;
ERR_SPDY_PING_FAILED = -352;
ERR_CONTENT_LENGTH_MISMATCH = -354;
ERR_INCOMPLETE_CHUNKED_ENCODING = -355;
ERR_QUIC_PROTOCOL_ERROR = -356;
ERR_RESPONSE_HEADERS_TRUNCATED = -357;
ERR_QUIC_HANDSHAKE_FAILED = -358;
ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY = -360;
ERR_SPDY_FLOW_CONTROL_ERROR = -361;
ERR_SPDY_FRAME_SIZE_ERROR = -362;
ERR_SPDY_COMPRESSION_ERROR = -363;
ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364;
ERR_HTTP_1_1_REQUIRED = -365;
ERR_PROXY_HTTP_1_1_REQUIRED = -366;
ERR_PAC_SCRIPT_TERMINATED = -367;
ERR_INVALID_HTTP_RESPONSE = -370;
ERR_CONTENT_DECODING_INIT_FAILED = -371;
ERR_SPDY_RST_STREAM_NO_ERROR_RECEIVED = -372;
ERR_SPDY_PUSHED_STREAM_NOT_AVAILABLE = -373;
ERR_SPDY_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER = -374;
ERR_TOO_MANY_RETRIES = -375;
ERR_SPDY_STREAM_CLOSED = -376;
ERR_SPDY_CLIENT_REFUSED_STREAM = -377;
ERR_SPDY_PUSHED_RESPONSE_DOES_NOT_MATCH = -378;
ERR_CACHE_MISS = -400;
ERR_CACHE_READ_FAILURE = -401;
ERR_CACHE_WRITE_FAILURE = -402;
ERR_CACHE_OPERATION_NOT_SUPPORTED = -403;
ERR_CACHE_OPEN_FAILURE = -404;
ERR_CACHE_CREATE_FAILURE = -405;
ERR_CACHE_RACE = -406;
ERR_CACHE_CHECKSUM_READ_FAILURE = -407;
ERR_CACHE_CHECKSUM_MISMATCH = -408;
ERR_CACHE_LOCK_TIMEOUT = -409;
ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410;
ERR_CACHE_ENTRY_NOT_SUITABLE = -411;
ERR_CACHE_DOOM_FAILURE = -412;
ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413;
ERR_INSECURE_RESPONSE = -501;
ERR_NO_PRIVATE_KEY_FOR_CERT = -502;
ERR_ADD_USER_CERT_FAILED = -503;
ERR_INVALID_SIGNED_EXCHANGE = -504;
ERR_FTP_FAILED = -601;
ERR_FTP_SERVICE_UNAVAILABLE = -602;
ERR_FTP_TRANSFER_ABORTED = -603;
ERR_FTP_FILE_BUSY = -604;
ERR_FTP_SYNTAX_ERROR = -605;
ERR_FTP_COMMAND_NOT_SUPPORTED = -606;
ERR_FTP_BAD_COMMAND_SEQUENCE = -607;
ERR_PKCS12_IMPORT_BAD_PASSWORD = -701;
ERR_PKCS12_IMPORT_FAILED = -702;
ERR_IMPORT_CA_CERT_NOT_CA = -703;
ERR_IMPORT_CERT_ALREADY_EXISTS = -704;
ERR_IMPORT_CA_CERT_FAILED = -705;
ERR_IMPORT_SERVER_CERT_FAILED = -706;
ERR_PKCS12_IMPORT_INVALID_MAC = -707;
ERR_PKCS12_IMPORT_INVALID_FILE = -708;
ERR_PKCS12_IMPORT_UNSUPPORTED = -709;
ERR_KEY_GENERATION_FAILED = -710;
ERR_PRIVATE_KEY_EXPORT_FAILED = -712;
ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713;
ERR_CERT_DATABASE_CHANGED = -714;
ERR_DNS_MALFORMED_RESPONSE = -800;
ERR_DNS_SERVER_REQUIRES_TCP = -801;
ERR_DNS_SERVER_FAILED = -802;
ERR_DNS_TIMED_OUT = -803;
ERR_NS_CACHE_MISS = -804;
ERR_DNS_SEARCH_EMPTY = -805;
ERR_DNS_SORT_ERROR = -806;
ERR_DNS_HTTP_FAILED = -807;
// /include/internal/cef_types.h (cef_cert_status_t)
CERT_STATUS_NONE = 0;
CERT_STATUS_COMMON_NAME_INVALID = 1 shl 0;
CERT_STATUS_DATE_INVALID = 1 shl 1;
CERT_STATUS_AUTHORITY_INVALID = 1 shl 2;
CERT_STATUS_NO_REVOCATION_MECHANISM = 1 shl 4;
CERT_STATUS_UNABLE_TO_CHECK_REVOCATION = 1 shl 5;
CERT_STATUS_REVOKED = 1 shl 6;
CERT_STATUS_INVALID = 1 shl 7;
CERT_STATUS_WEAK_SIGNATURE_ALGORITHM = 1 shl 8;
CERT_STATUS_NON_UNIQUE_NAME = 1 shl 10;
CERT_STATUS_WEAK_KEY = 1 shl 11;
CERT_STATUS_PINNED_KEY_MISSING = 1 shl 13;
CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 1 shl 14;
CERT_STATUS_VALIDITY_TOO_LONG = 1 shl 15;
CERT_STATUS_IS_EV = 1 shl 16;
CERT_STATUS_REV_CHECKING_ENABLED = 1 shl 17;
CERT_STATUS_SHA1_SIGNATURE_PRESENT = 1 shl 19;
CERT_STATUS_CT_COMPLIANCE_FAILED = 1 shl 20;
CERT_STATUS_FIRST_ERROR = CERT_STATUS_COMMON_NAME_INVALID;
CERT_STATUS_LAST_ERROR = CERT_STATUS_VALIDITY_TOO_LONG;
// /include/internal/cef_types.h (cef_v8_accesscontrol_t)
V8_ACCESS_CONTROL_DEFAULT = 0;
V8_ACCESS_CONTROL_ALL_CAN_READ = 1 shl 0;
V8_ACCESS_CONTROL_ALL_CAN_WRITE = 1 shl 1;
V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING = 1 shl 2;
// /include/internal/cef_types.h (cef_v8_propertyattribute_t)
V8_PROPERTY_ATTRIBUTE_NONE = 0;
V8_PROPERTY_ATTRIBUTE_READONLY = 1 shl 0;
V8_PROPERTY_ATTRIBUTE_DONTENUM = 1 shl 1;
V8_PROPERTY_ATTRIBUTE_DONTDELETE = 1 shl 2;
// /include/internal/cef_types.h (cef_transition_type_t)
TT_LINK = 0;
TT_EXPLICIT = 1;
TT_AUTO_SUBFRAME = 3;
TT_MANUAL_SUBFRAME = 4;
TT_FORM_SUBMIT = 7;
TT_RELOAD = 8;
TT_SOURCE_MASK = $000000FF;
TT_BLOCKED_FLAG = $00800000;
TT_FORWARD_BACK_FLAG = $01000000;
TT_DIRECT_LOAD_FLAG = $02000000;
TT_CHAIN_START_FLAG = $10000000;
TT_CHAIN_END_FLAG = $20000000;
TT_CLIENT_REDIRECT_FLAG = $40000000;
TT_SERVER_REDIRECT_FLAG = $80000000;
TT_IS_REDIRECT_MASK = $C0000000;
TT_QUALIFIER_MASK = $FFFFFF00;
// /include/internal/cef_types.h (cef_urlrequest_flags_t)
UR_FLAG_NONE = 0;
UR_FLAG_SKIP_CACHE = 1 shl 0;
UR_FLAG_ONLY_FROM_CACHE = 1 shl 1;
UR_FLAG_DISABLE_CACHE = 1 shl 2;
UR_FLAG_ALLOW_STORED_CREDENTIALS = 1 shl 3;
UR_FLAG_REPORT_UPLOAD_PROGRESS = 1 shl 4;
UR_FLAG_NO_DOWNLOAD_DATA = 1 shl 5;
UR_FLAG_NO_RETRY_ON_5XX = 1 shl 6;
UR_FLAG_STOP_ON_REDIRECT = 1 shl 7;
// /include/internal/cef_types.h (cef_scheme_options_t)
CEF_SCHEME_OPTION_NONE = 0;
CEF_SCHEME_OPTION_STANDARD = 1 shl 0;
CEF_SCHEME_OPTION_LOCAL = 1 shl 1;
CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 1 shl 2;
CEF_SCHEME_OPTION_SECURE = 1 shl 3;
CEF_SCHEME_OPTION_CORS_ENABLED = 1 shl 4;
CEF_SCHEME_OPTION_CSP_BYPASSING = 1 shl 5;
CEF_SCHEME_OPTION_FETCH_ENABLED = 1 shl 6;
// /include/internal/cef_types.h (cef_dom_event_category_t)
DOM_EVENT_CATEGORY_UNKNOWN = 0;
DOM_EVENT_CATEGORY_UI = 1 shl 0;
DOM_EVENT_CATEGORY_MOUSE = 1 shl 1;
DOM_EVENT_CATEGORY_MUTATION = 1 shl 2;
DOM_EVENT_CATEGORY_KEYBOARD = 1 shl 3;
DOM_EVENT_CATEGORY_TEXT = 1 shl 4;
DOM_EVENT_CATEGORY_COMPOSITION = 1 shl 5;
DOM_EVENT_CATEGORY_DRAG = 1 shl 6;
DOM_EVENT_CATEGORY_CLIPBOARD = 1 shl 7;
DOM_EVENT_CATEGORY_MESSAGE = 1 shl 8;
DOM_EVENT_CATEGORY_WHEEL = 1 shl 9;
DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED = 1 shl 10;
DOM_EVENT_CATEGORY_OVERFLOW = 1 shl 11;
DOM_EVENT_CATEGORY_PAGE_TRANSITION = 1 shl 12;
DOM_EVENT_CATEGORY_POPSTATE = 1 shl 13;
DOM_EVENT_CATEGORY_PROGRESS = 1 shl 14;
DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS = 1 shl 15;
// /include/internal/cef_types.h (cef_event_flags_t)
EVENTFLAG_NONE = 0;
EVENTFLAG_CAPS_LOCK_ON = 1 shl 0;
EVENTFLAG_SHIFT_DOWN = 1 shl 1;
EVENTFLAG_CONTROL_DOWN = 1 shl 2;
EVENTFLAG_ALT_DOWN = 1 shl 3;
EVENTFLAG_LEFT_MOUSE_BUTTON = 1 shl 4;
EVENTFLAG_MIDDLE_MOUSE_BUTTON = 1 shl 5;
EVENTFLAG_RIGHT_MOUSE_BUTTON = 1 shl 6;
EVENTFLAG_COMMAND_DOWN = 1 shl 7;
EVENTFLAG_NUM_LOCK_ON = 1 shl 8;
EVENTFLAG_IS_KEY_PAD = 1 shl 9;
EVENTFLAG_IS_LEFT = 1 shl 10;
EVENTFLAG_IS_RIGHT = 1 shl 11;
EVENTFLAG_ALTGR_DOWN = 1 shl 12;
// /include/internal/cef_types.h (cef_drag_operations_mask_t)
DRAG_OPERATION_NONE = 0;
DRAG_OPERATION_COPY = 1 shl 0;
DRAG_OPERATION_LINK = 1 shl 1;
DRAG_OPERATION_GENERIC = 1 shl 2;
DRAG_OPERATION_PRIVATE = 1 shl 3;
DRAG_OPERATION_MOVE = 1 shl 4;
DRAG_OPERATION_DELETE = 1 shl 5;
DRAG_OPERATION_EVERY = $FFFFFFFF;
// /include/internal/cef_types.h (cef_file_dialog_mode_t)
FILE_DIALOG_OPEN = $00000000;
FILE_DIALOG_OPEN_MULTIPLE = $00000001;
FILE_DIALOG_OPEN_FOLDER = $00000002;
FILE_DIALOG_SAVE = $00000003;
FILE_DIALOG_TYPE_MASK = $000000FF;
FILE_DIALOG_OVERWRITEPROMPT_FLAG = $01000000;
FILE_DIALOG_HIDEREADONLY_FLAG = $02000000;
// /include/internal/cef_types.h (cef_uri_unescape_rule_t)
UU_NONE = 0;
UU_NORMAL = 1 shl 0;
UU_SPACES = 1 shl 1;
UU_PATH_SEPARATORS = 1 shl 2;
UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 1 shl 3;
UU_REPLACE_PLUS_WITH_SPACE = 1 shl 4;
// /include/internal/cef_types.h (cef_menu_id_t)
MENU_ID_BACK = 100;
MENU_ID_FORWARD = 101;
MENU_ID_RELOAD = 102;
MENU_ID_RELOAD_NOCACHE = 103;
MENU_ID_STOPLOAD = 104;
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;
MENU_ID_FIND = 130;
MENU_ID_PRINT = 131;
MENU_ID_VIEW_SOURCE = 132;
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;
MENU_ID_CUSTOM_FIRST = 220;
MENU_ID_CUSTOM_LAST = 250;
MENU_ID_USER_FIRST = 26500;
MENU_ID_USER_LAST = 28500;
// /include/internal/cef_types.h (cef_context_menu_type_flags_t)
CM_TYPEFLAG_NONE = 0;
CM_TYPEFLAG_PAGE = 1 shl 0;
CM_TYPEFLAG_FRAME = 1 shl 1;
CM_TYPEFLAG_LINK = 1 shl 2;
CM_TYPEFLAG_MEDIA = 1 shl 3;
CM_TYPEFLAG_SELECTION = 1 shl 4;
CM_TYPEFLAG_EDITABLE = 1 shl 5;
// /include/internal/cef_types.h (cef_context_menu_media_state_flags_t)
CM_MEDIAFLAG_NONE = 0;
CM_MEDIAFLAG_ERROR = 1 shl 0;
CM_MEDIAFLAG_PAUSED = 1 shl 1;
CM_MEDIAFLAG_MUTED = 1 shl 2;
CM_MEDIAFLAG_LOOP = 1 shl 3;
CM_MEDIAFLAG_CAN_SAVE = 1 shl 4;
CM_MEDIAFLAG_HAS_AUDIO = 1 shl 5;
CM_MEDIAFLAG_HAS_VIDEO = 1 shl 6;
CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT = 1 shl 7;
CM_MEDIAFLAG_CAN_PRINT = 1 shl 8;
CM_MEDIAFLAG_CAN_ROTATE = 1 shl 9;
// /include/internal/cef_types.h (cef_context_menu_edit_state_flags_t)
CM_EDITFLAG_NONE = 0;
CM_EDITFLAG_CAN_UNDO = 1 shl 0;
CM_EDITFLAG_CAN_REDO = 1 shl 1;
CM_EDITFLAG_CAN_CUT = 1 shl 2;
CM_EDITFLAG_CAN_COPY = 1 shl 3;
CM_EDITFLAG_CAN_PASTE = 1 shl 4;
CM_EDITFLAG_CAN_DELETE = 1 shl 5;
CM_EDITFLAG_CAN_SELECT_ALL = 1 shl 6;
CM_EDITFLAG_CAN_TRANSLATE = 1 shl 7;
// /include/internal/cef_types.h (cef_ssl_version_t)
SSL_CONNECTION_VERSION_UNKNOWN = 0;
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;
SSL_CONNECTION_VERSION_TLS1_3 = 6;
SSL_CONNECTION_VERSION_QUIC = 7;
// /include/internal/cef_types.h (cef_ssl_content_status_t)
SSL_CONTENT_NORMAL_CONTENT = 0;
SSL_CONTENT_DISPLAYED_INSECURE_CONTENT = 1 shl 0;
SSL_CONTENT_RAN_INSECURE_CONTENT = 1 shl 1;
// /include/internal/cef_types.h (cef_json_writer_options_t)
JSON_WRITER_DEFAULT = 0;
JSON_WRITER_OMIT_BINARY_VALUES = 1 shl 0;
JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 1 shl 1;
JSON_WRITER_PRETTY_PRINT = 1 shl 2;
// /include/internal/cef_types.h (cef_log_severity_t)
LOGSEVERITY_DEFAULT = 0;
LOGSEVERITY_VERBOSE = 1;
LOGSEVERITY_DEBUG = LOGSEVERITY_VERBOSE;
LOGSEVERITY_INFO = 2;
LOGSEVERITY_WARNING = 3;
LOGSEVERITY_ERROR = 4;
LOGSEVERITY_FATAL = 5;
LOGSEVERITY_DISABLE = 99;
// /include/internal/cef_types.h (cef_duplex_mode_t)
DUPLEX_MODE_UNKNOWN = -1;
DUPLEX_MODE_SIMPLEX = 0;
DUPLEX_MODE_LONG_EDGE = 1;
DUPLEX_MODE_SHORT_EDGE = 2;
// /include/internal/cef_types.h (cef_media_route_create_result_t)
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;
CEF_MRCR_TOTAL_COUNT = 11;
// /include/internal/cef_types.h (cef_cookie_priority_t)
CEF_COOKIE_PRIORITY_LOW = -1;
CEF_COOKIE_PRIORITY_MEDIUM = 0;
CEF_COOKIE_PRIORITY_HIGH = 1;
// /include/internal/cef_types.h (cef_text_field_commands_t)
CEF_TFC_CUT = 1;
CEF_TFC_COPY = 2;
CEF_TFC_PASTE = 3;
CEF_TFC_UNDO = 4;
CEF_TFC_DELETE = 5;
CEF_TFC_SELECT_ALL = 6;
//******************************************************
//****************** OTHER CONSTANTS *******************
//******************************************************
DEVTOOLS_WINDOWNAME = 'DevTools';
CEF_PROXYTYPE_DIRECT = 0;
CEF_PROXYTYPE_AUTODETECT = 1;
CEF_PROXYTYPE_SYSTEM = 2;
CEF_PROXYTYPE_FIXED_SERVERS = 3;
CEF_PROXYTYPE_PAC_SCRIPT = 4;
// Used in the severity parameter in the 'cef_log' function, also known as 'CefLog' in CEF4Delphi.
CEF_LOG_SEVERITY_INFO = 0;
CEF_LOG_SEVERITY_WARNING = 1;
CEF_LOG_SEVERITY_ERROR = 2;
CEF_MAX_CONNECTIONS_PER_PROXY_DEFAULT_VALUE = 32;
CEF_MAX_CONNECTIONS_PER_PROXY_MIN_VALUE = 7;
CEF_MAX_CONNECTIONS_PER_PROXY_MAX_VALUE = 99;
CEF_COOKIE_PREF_DEFAULT = 0;
CEF_COOKIE_PREF_ALLOW = 1;
CEF_COOKIE_PREF_BLOCK = 2;
// https://chromium.googlesource.com/chromium/src/+/refs/tags/77.0.3865.90/chrome/common/net/safe_search_util.h (YouTubeRestrictMode)
// https://www.chromium.org/administrators/policy-list-3#ForceYouTubeRestrict
YOUTUBE_RESTRICT_OFF = 0;
YOUTUBE_RESTRICT_MODERATE = 1;
YOUTUBE_RESTRICT_STRICT = 2;
ZOOM_STEP_25 = 0;
ZOOM_STEP_33 = 1;
ZOOM_STEP_50 = 2;
ZOOM_STEP_67 = 3;
ZOOM_STEP_75 = 4;
ZOOM_STEP_90 = 5;
ZOOM_STEP_100 = 6;
ZOOM_STEP_110 = 7;
ZOOM_STEP_125 = 8;
ZOOM_STEP_150 = 9;
ZOOM_STEP_175 = 10;
ZOOM_STEP_200 = 11;
ZOOM_STEP_250 = 12;
ZOOM_STEP_300 = 13;
ZOOM_STEP_400 = 14;
ZOOM_STEP_500 = 15;
ZOOM_STEP_UNK = 16;
ZOOM_STEP_MIN = ZOOM_STEP_25;
ZOOM_STEP_MAX = ZOOM_STEP_500;
ZOOM_STEP_DEF = ZOOM_STEP_100;
ZOOM_PCT_DELTA = 5;
ZoomStepValues : array[ZOOM_STEP_MIN..ZOOM_STEP_MAX] of integer = (25, 33, 50, 67, 75, 90, 100, 110, 125, 150, 175, 200, 250, 300, 400, 500);
CEF_PREFERENCES_SAVED = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A00;
CEF_DOONCLOSE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A01;
CEF_STARTDRAGGING = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A02;
CEF_AFTERCREATED = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A03;
CEF_PENDINGRESIZE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A04;
CEF_PUMPHAVEWORK = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A05;
CEF_DESTROY = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A06;
CEF_DOONBEFORECLOSE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A07;
CEF_PENDINGINVALIDATE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A08;
CEF_IMERANGECHANGED = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A09;
CEF_SENTINEL_START = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A0A;
CEF_SENTINEL_DOCLOSE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A0B;
CEF_BEFORECLOSE = {$IFDEF MSWINDOWS}WM_APP +{$ENDIF} $A0C;
// Lazarus and some old Delphi versions don't have these message contants
{$IF NOT DECLARED(WM_TOUCH)}
WM_TOUCH = $0240;
{$IFEND}
{$IF NOT DECLARED(WM_POINTERUPDATE)}
WM_POINTERUPDATE = $0245;
WM_POINTERDOWN = $0246;
WM_POINTERUP = $0247;
{$IFEND}
CEF_TIMER_MINIMUM = $0000000A;
CEF_TIMER_MAXIMUM = $7FFFFFFF;
CEF_TIMER_MAXDELAY = 1000 div 30; // 30fps
CEF_TIMER_DEPLETEWORK_CYCLES = 10;
CEF_TIMER_DEPLETEWORK_DELAY = 50;
CEF4DELPHI_URL = 'https://github.com/salvadordf/CEF4Delphi';
CRLF = #13 + #10;
// These contants are declared in the "Windows" unit but
// some old Delphi versions don't have them.
// We have to add "CEF_" to be compatible with C++ Builder.
CEF_IMAGE_FILE_MACHINE_I386 = $014C;
CEF_IMAGE_FILE_MACHINE_AMD64 = $8664;
{$IF NOT DECLARED(USER_DEFAULT_SCREEN_DPI)}
USER_DEFAULT_SCREEN_DPI = 96;
{$IFEND}
implementation
end.