2017-01-27 16:37:51 +01:00
|
|
|
|
// ************************************************************************
|
|
|
|
|
// ***************************** CEF4Delphi *******************************
|
|
|
|
|
// ************************************************************************
|
|
|
|
|
//
|
2019-10-19 10:58:34 +02:00
|
|
|
|
// CEF4Delphi is based on DCEF3 which uses CEF to embed a chromium-based
|
2017-01-27 16:37:51 +01:00
|
|
|
|
// 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
|
|
|
|
|
//
|
2019-01-08 19:15:25 +01:00
|
|
|
|
// Copyright <20> 2019 Salvador Diaz Fau. All rights reserved.
|
2017-01-27 16:37:51 +01:00
|
|
|
|
//
|
|
|
|
|
// ************************************************************************
|
|
|
|
|
// ************ 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 uCEFLibFunctions;
|
|
|
|
|
|
2018-05-12 14:50:54 +02:00
|
|
|
|
{$IFDEF FPC}
|
|
|
|
|
{$MODE OBJFPC}{$H+}
|
|
|
|
|
{$ENDIF}
|
|
|
|
|
|
2018-11-22 15:02:21 +01:00
|
|
|
|
{$IFNDEF CPUX64}{$ALIGN ON}{$ENDIF}
|
|
|
|
|
{$MINENUMSIZE 4}
|
2017-01-27 16:37:51 +01:00
|
|
|
|
|
2017-02-05 20:56:46 +01:00
|
|
|
|
{$I cef.inc}
|
|
|
|
|
|
2017-01-27 16:37:51 +01:00
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
2017-02-05 20:56:46 +01:00
|
|
|
|
{$IFDEF DELPHI16_UP}
|
2018-06-03 17:18:54 +02:00
|
|
|
|
{$IFDEF MSWINDOWS}WinApi.Windows,{$ENDIF} System.Math,
|
2017-02-05 20:56:46 +01:00
|
|
|
|
{$ELSE}
|
2018-06-03 17:18:54 +02:00
|
|
|
|
{$IFDEF MSWINDOWS}Windows,{$ENDIF} Math,
|
2017-02-05 20:56:46 +01:00
|
|
|
|
{$ENDIF}
|
2017-01-27 16:37:51 +01:00
|
|
|
|
uCEFTypes;
|
|
|
|
|
|
2017-02-04 18:53:29 +01:00
|
|
|
|
var
|
|
|
|
|
// /include/capi/cef_app_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_initialize : function(const args: PCefMainArgs; const settings: PCefSettings; application: PCefApp; windows_sandbox_info: Pointer): Integer; cdecl;
|
|
|
|
|
cef_shutdown : procedure; cdecl;
|
|
|
|
|
cef_execute_process : function(const args: PCefMainArgs; application: PCefApp; windows_sandbox_info: Pointer): Integer; cdecl;
|
|
|
|
|
cef_do_message_loop_work : procedure; cdecl;
|
|
|
|
|
cef_run_message_loop : procedure; cdecl;
|
|
|
|
|
cef_quit_message_loop : procedure; cdecl;
|
|
|
|
|
cef_set_osmodal_loop : procedure(osModalLoop: Integer); cdecl;
|
|
|
|
|
cef_enable_highdpi_support : procedure; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_browser_capi.h
|
2019-06-16 10:31:13 +02:00
|
|
|
|
cef_browser_host_create_browser : function(const windowInfo: PCefWindowInfo; client: PCefClient; const url: PCefString; const settings: PCefBrowserSettings; extra_info: PCefDictionaryValue; request_context: PCefRequestContext): Integer; cdecl;
|
|
|
|
|
cef_browser_host_create_browser_sync : function(const windowInfo: PCefWindowInfo; client: PCefClient; const url: PCefString; const settings: PCefBrowserSettings; extra_info: PCefDictionaryValue; request_context: PCefRequestContext): PCefBrowser; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_command_line_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_command_line_create : function : PCefCommandLine; cdecl;
|
|
|
|
|
cef_command_line_get_global : function : PCefCommandLine; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_cookie_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_cookie_manager_get_global_manager : function(callback: PCefCompletionCallback): PCefCookieManager; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_crash_util.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_crash_reporting_enabled : function : integer; cdecl;
|
|
|
|
|
cef_set_crash_key_value : procedure(const key, value : PCefString); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_drag_data_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_drag_data_create : function : PCefDragData; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_file_util_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_create_directory : function(const full_path : PCefString): Integer; cdecl;
|
|
|
|
|
cef_get_temp_directory : function(temp_dir : PCefString): Integer; cdecl;
|
|
|
|
|
cef_create_new_temp_directory : function(const prefix : PCefString; new_temp_path: PCefString): Integer; cdecl;
|
|
|
|
|
cef_create_temp_directory_in_directory : function(const base_dir, prefix : PCefString; new_dir : PCefString): Integer; cdecl;
|
|
|
|
|
cef_directory_exists : function(const path : PCefString): Integer; cdecl;
|
|
|
|
|
cef_delete_file : function(const path : PCefString; recursive : integer): Integer; cdecl;
|
|
|
|
|
cef_zip_directory : function(const src_dir, dest_file : PCefString; include_hidden_files : integer): Integer; cdecl;
|
|
|
|
|
cef_load_crlsets_file : procedure(const path : PCefString); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_image_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_image_create : function : PCefImage; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_menu_model_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_menu_model_create : function(delegate: PCefMenuModelDelegate): PCefMenuModel; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_origin_whitelist_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_add_cross_origin_whitelist_entry : function(const source_origin, target_protocol, target_domain: PCefString; allow_target_subdomains: Integer): Integer; cdecl;
|
|
|
|
|
cef_remove_cross_origin_whitelist_entry : function(const source_origin, target_protocol, target_domain: PCefString; allow_target_subdomains: Integer): Integer; cdecl;
|
|
|
|
|
cef_clear_cross_origin_whitelist : function : Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_parser_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_parse_url : function(const url: PCefString; var parts: TCefUrlParts): Integer; cdecl;
|
|
|
|
|
cef_create_url : function(const parts: PCefUrlParts; url: PCefString): Integer; cdecl;
|
|
|
|
|
cef_format_url_for_security_display : function(const origin_url: PCefString): PCefStringUserFree; cdecl;
|
|
|
|
|
cef_get_mime_type : function(const extension: PCefString): PCefStringUserFree; cdecl;
|
|
|
|
|
cef_get_extensions_for_mime_type : procedure(const mime_type: PCefString; extensions: TCefStringList); cdecl;
|
|
|
|
|
cef_base64encode : function(const data: Pointer; data_size: NativeUInt): PCefStringUserFree; cdecl;
|
|
|
|
|
cef_base64decode : function(const data: PCefString): PCefBinaryValue; cdecl;
|
|
|
|
|
cef_uriencode : function(const text: PCefString; use_plus: Integer): PCefStringUserFree; cdecl;
|
|
|
|
|
cef_uridecode : function(const text: PCefString; convert_to_utf8: Integer; unescape_rule: TCefUriUnescapeRule): PCefStringUserFree; cdecl;
|
|
|
|
|
cef_parse_json : function(const json_string: PCefString; options: TCefJsonParserOptions): PCefValue; cdecl;
|
|
|
|
|
cef_parse_jsonand_return_error : function(const json_string: PCefString; options: TCefJsonParserOptions; error_code_out: PCefJsonParserError; error_msg_out: PCefString): PCefValue; cdecl;
|
|
|
|
|
cef_write_json : function(node: PCefValue; options: TCefJsonWriterOptions): PCefStringUserFree; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_path_util_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_get_path : function(key: TCefPathKey; path: PCefString): Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_print_settings_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_print_settings_create : function : PCefPrintSettings; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_process_message_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_process_message_create : function(const name: PCefString): PCefProcessMessage; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_process_util_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_launch_process : function(command_line: PCefCommandLine): Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_request_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_request_create : function : PCefRequest; cdecl;
|
|
|
|
|
cef_post_data_create : function : PCefPostData; cdecl;
|
|
|
|
|
cef_post_data_element_create : function : PCefPostDataElement; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_request_context_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_request_context_get_global_context : function : PCefRequestContext; cdecl;
|
|
|
|
|
cef_request_context_create_context : function(const settings: PCefRequestContextSettings; handler: PCefRequestContextHandler): PCefRequestContext; cdecl;
|
|
|
|
|
cef_create_context_shared : function(other: PCefRequestContext; handler: PCefRequestContextHandler): PCefRequestContext; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_resource_bundle_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_resource_bundle_get_global : function : PCefResourceBundle; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_response_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_response_create : function : PCefResponse; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_scheme_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_register_scheme_handler_factory : function(const scheme_name, domain_name: PCefString; factory: PCefSchemeHandlerFactory): Integer; cdecl;
|
|
|
|
|
cef_clear_scheme_handler_factories : function : Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
2017-12-07 10:49:51 +01:00
|
|
|
|
// /include/capi/cef_server_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_server_create : procedure(const address: PCefString; port: uint16; backlog: Integer; handler: PCefServerHandler); cdecl;
|
2017-12-07 10:49:51 +01:00
|
|
|
|
|
2017-02-04 18:53:29 +01:00
|
|
|
|
// /include/capi/cef_ssl_info_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_is_cert_status_error : function(status : TCefCertStatus) : integer; cdecl;
|
|
|
|
|
cef_is_cert_status_minor_error : function(status : TCefCertStatus) : integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_stream_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_stream_reader_create_for_file : function(const fileName: PCefString): PCefStreamReader; cdecl;
|
|
|
|
|
cef_stream_reader_create_for_data : function(data: Pointer; size: NativeUInt): PCefStreamReader; cdecl;
|
|
|
|
|
cef_stream_reader_create_for_handler : function(handler: PCefReadHandler): PCefStreamReader; cdecl;
|
|
|
|
|
cef_stream_writer_create_for_file : function(const fileName: PCefString): PCefStreamWriter; cdecl;
|
|
|
|
|
cef_stream_writer_create_for_handler : function(handler: PCefWriteHandler): PCefStreamWriter; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_task_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_task_runner_get_for_current_thread : function : PCefTaskRunner; cdecl;
|
|
|
|
|
cef_task_runner_get_for_thread : function(threadId: TCefThreadId): PCefTaskRunner; cdecl;
|
|
|
|
|
cef_currently_on : function(threadId: TCefThreadId): Integer; cdecl;
|
|
|
|
|
cef_post_task : function(threadId: TCefThreadId; task: PCefTask): Integer; cdecl;
|
|
|
|
|
cef_post_delayed_task : function(threadId: TCefThreadId; task: PCefTask; delay_ms: Int64): Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_thread_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_thread_create : function(const display_name: PCefString; priority: TCefThreadPriority; message_loop_type: TCefMessageLoopType; stoppable: integer; com_init_mode: TCefCOMInitMode): PCefThread; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_trace_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_begin_tracing : function(const categories: PCefString; callback: PCefCompletionCallback): Integer; cdecl;
|
|
|
|
|
cef_end_tracing : function(const tracing_file: PCefString; callback: PCefEndTracingCallback): Integer; cdecl;
|
|
|
|
|
cef_now_from_system_trace_time : function : int64; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_urlrequest_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_urlrequest_create : function(request: PCefRequest; client: PCefUrlRequestClient; request_context: PCefRequestContext): PCefUrlRequest; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_v8_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_v8context_get_current_context : function : PCefv8Context; cdecl;
|
|
|
|
|
cef_v8context_get_entered_context : function : PCefv8Context; cdecl;
|
|
|
|
|
cef_v8context_in_context : function : Integer; cdecl;
|
|
|
|
|
cef_v8value_create_undefined : function : PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_null : function : PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_bool : function(value: Integer): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_int : function(value: Integer): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_uint : function(value: Cardinal): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_double : function(value: Double): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_date : function(const value: PCefTime): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_string : function(const value: PCefString): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_object : function(accessor: PCefV8Accessor; interceptor: PCefV8Interceptor): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_array : function(length: Integer): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_array_buffer : function(buffer : Pointer; length: NativeUInt; release_callback : PCefv8ArrayBufferReleaseCallback): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8value_create_function : function(const name: PCefString; handler: PCefv8Handler): PCefv8Value; cdecl;
|
|
|
|
|
cef_v8stack_trace_get_current : function(frame_limit: Integer): PCefV8StackTrace; cdecl;
|
|
|
|
|
cef_register_extension : function(const extension_name, javascript_code: PCefString; handler: PCefv8Handler): Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_values_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_value_create : function : PCefValue; cdecl;
|
|
|
|
|
cef_binary_value_create : function(const data: Pointer; data_size: NativeUInt): PCefBinaryValue; cdecl;
|
|
|
|
|
cef_dictionary_value_create : function : PCefDictionaryValue; cdecl;
|
|
|
|
|
cef_list_value_create : function : PCefListValue; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_waitable_event_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_waitable_event_create : function(automatic_reset, initially_signaled : integer): PCefWaitableEvent; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_web_plugin_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_visit_web_plugin_info : procedure(visitor: PCefWebPluginInfoVisitor); cdecl;
|
|
|
|
|
cef_refresh_web_plugins : procedure; cdecl;
|
|
|
|
|
cef_unregister_internal_web_plugin : procedure(const path: PCefString); cdecl;
|
|
|
|
|
cef_register_web_plugin_crash : procedure(const path: PCefString); cdecl;
|
|
|
|
|
cef_is_web_plugin_unstable : procedure(const path: PCefString; callback: PCefWebPluginUnstableCallback); cdecl;
|
|
|
|
|
cef_register_widevine_cdm : procedure(const path: PCefString; callback: PCefRegisterCDMCallback); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_xml_reader_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_xml_reader_create : function(stream: PCefStreamReader; encodingType: TCefXmlEncodingType; const URI: PCefString): PCefXmlReader; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/capi/cef_zip_reader_capi.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_zip_reader_create : function(stream: PCefStreamReader): PCefZipReader; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
2018-05-24 19:15:41 +02:00
|
|
|
|
// /include/capi/views/cef_browser_view_capi.h
|
2019-06-16 10:31:13 +02:00
|
|
|
|
cef_browser_view_create : function(client: PCefClient; const url: PCefString; const settings: PCefBrowserSettings; extra_info: PCefDictionaryValue; request_context: PCefRequestContext; delegate: PCefBrowserViewDelegate): PCefBrowserView; cdecl;
|
2018-05-24 19:15:41 +02:00
|
|
|
|
cef_browser_view_get_for_browser : function(browser: PCefBrowser): PCefBrowserView; cdecl;
|
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_display_capi.h
|
|
|
|
|
cef_display_get_primary : function : PCefDisplay; cdecl;
|
|
|
|
|
cef_display_get_nearest_point : function(const point: PCefPoint; input_pixel_coords: Integer): PCefDisplay; cdecl;
|
|
|
|
|
cef_display_get_matching_bounds : function(const bounds: PCefRect; input_pixel_coords: Integer): PCefDisplay; cdecl;
|
|
|
|
|
cef_display_get_count : function : NativeUInt; cdecl;
|
|
|
|
|
cef_display_get_alls : procedure(var displaysCount: NativeUInt; var displays: PCefDisplay); cdecl;
|
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_label_button_capi.h
|
2019-08-01 18:20:42 +02:00
|
|
|
|
cef_label_button_create : function(delegate: PCefButtonDelegate; const text: PCefString): PCefLabelButton; cdecl;
|
2018-05-24 19:15:41 +02:00
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_menu_button_capi.h
|
2019-08-01 18:20:42 +02:00
|
|
|
|
cef_menu_button_create : function(delegate: PCefMenuButtonDelegate; const text: PCefString): PCefMenuButton; cdecl;
|
2018-05-24 19:15:41 +02:00
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_panel_capi.h
|
|
|
|
|
cef_panel_create : function(delegate: PCefPanelDelegate): PCefPanel; cdecl;
|
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_scroll_view_capi.h
|
|
|
|
|
cef_scroll_view_create : function(delegate: PCefViewDelegate): PCefScrollView; cdecl;
|
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_textfield_capi.h
|
|
|
|
|
cef_textfield_create : function(delegate: PCefTextfieldDelegate): PCefTextfield; cdecl;
|
|
|
|
|
|
|
|
|
|
// /include/capi/views/cef_window_capi.h
|
|
|
|
|
cef_window_create_top_level : function(delegate: PCefWindowDelegate): PCefWindow; cdecl;
|
|
|
|
|
|
2017-02-04 18:53:29 +01:00
|
|
|
|
// /include/internal/cef_logging_internal.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_get_min_log_level : function : Integer; cdecl;
|
|
|
|
|
cef_get_vlog_level : function(const file_start: PAnsiChar; N: NativeInt): Integer; cdecl;
|
|
|
|
|
cef_log : procedure(const file_: PAnsiChar; line, severity: Integer; const message: PAnsiChar); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_string_list.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_string_list_alloc : function : TCefStringList; cdecl;
|
|
|
|
|
cef_string_list_size : function(list: TCefStringList): NativeUInt; cdecl;
|
|
|
|
|
cef_string_list_value : function(list: TCefStringList; index: NativeUInt; value: PCefString): Integer; cdecl;
|
|
|
|
|
cef_string_list_append : procedure(list: TCefStringList; const value: PCefString); cdecl;
|
|
|
|
|
cef_string_list_clear : procedure(list: TCefStringList); cdecl;
|
|
|
|
|
cef_string_list_free : procedure(list: TCefStringList); cdecl;
|
|
|
|
|
cef_string_list_copy : function(list: TCefStringList): TCefStringList; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_string_map.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_string_map_alloc : function : TCefStringMap; cdecl;
|
|
|
|
|
cef_string_map_size : function(map: TCefStringMap): NativeUInt; cdecl;
|
|
|
|
|
cef_string_map_find : function(map: TCefStringMap; const key: PCefString; var value: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_map_key : function(map: TCefStringMap; index: NativeUInt; var key: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_map_value : function(map: TCefStringMap; index: NativeUInt; var value: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_map_append : function(map: TCefStringMap; const key, value: PCefString): Integer; cdecl;
|
|
|
|
|
cef_string_map_clear : procedure(map: TCefStringMap); cdecl;
|
|
|
|
|
cef_string_map_free : procedure(map: TCefStringMap); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_string_multimap.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_string_multimap_alloc : function : TCefStringMultimap; cdecl;
|
|
|
|
|
cef_string_multimap_size : function(map: TCefStringMultimap): NativeUInt; cdecl;
|
|
|
|
|
cef_string_multimap_find_count : function(map: TCefStringMultimap; const key: PCefString): NativeUInt; cdecl;
|
|
|
|
|
cef_string_multimap_enumerate : function(map: TCefStringMultimap; const key: PCefString; value_index: NativeUInt; var value: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_multimap_key : function(map: TCefStringMultimap; index: NativeUInt; var key: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_multimap_value : function(map: TCefStringMultimap; index: NativeUInt; var value: TCefString): Integer; cdecl;
|
|
|
|
|
cef_string_multimap_append : function(map: TCefStringMultimap; const key, value: PCefString): Integer; cdecl;
|
|
|
|
|
cef_string_multimap_clear : procedure(map: TCefStringMultimap); cdecl;
|
|
|
|
|
cef_string_multimap_free : procedure(map: TCefStringMultimap); cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_string_types.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_string_wide_set : function(const src: PWideChar; src_len: NativeUInt; output: PCefStringWide; copy: Integer): Integer; cdecl;
|
|
|
|
|
cef_string_utf8_set : function(const src: PAnsiChar; src_len: NativeUInt; output: PCefStringUtf8; copy: Integer): Integer; cdecl;
|
|
|
|
|
cef_string_utf16_set : function(const src: PChar16; src_len: NativeUInt; output: PCefStringUtf16; copy: Integer): Integer; cdecl;
|
|
|
|
|
cef_string_wide_clear : procedure(str: PCefStringWide); cdecl;
|
|
|
|
|
cef_string_utf8_clear : procedure(str: PCefStringUtf8); cdecl;
|
|
|
|
|
cef_string_utf16_clear : procedure(str: PCefStringUtf16); cdecl;
|
|
|
|
|
cef_string_wide_cmp : function(const str1, str2: PCefStringWide): Integer; cdecl;
|
|
|
|
|
cef_string_utf8_cmp : function(const str1, str2: PCefStringUtf8): Integer; cdecl;
|
|
|
|
|
cef_string_utf16_cmp : function(const str1, str2: PCefStringUtf16): Integer; cdecl;
|
|
|
|
|
cef_string_wide_to_utf8 : function(const src: PWideChar; src_len: NativeUInt; output: PCefStringUtf8): Integer; cdecl;
|
|
|
|
|
cef_string_utf8_to_wide : function(const src: PAnsiChar; src_len: NativeUInt; output: PCefStringWide): Integer; cdecl;
|
|
|
|
|
cef_string_wide_to_utf16 : function(const src: PWideChar; src_len: NativeUInt; output: PCefStringUtf16): Integer; cdecl;
|
|
|
|
|
cef_string_utf16_to_wide : function(const src: PChar16; src_len: NativeUInt; output: PCefStringWide): Integer; cdecl;
|
|
|
|
|
cef_string_utf8_to_utf16 : function(const src: PAnsiChar; src_len: NativeUInt; output: PCefStringUtf16): Integer; cdecl;
|
|
|
|
|
cef_string_utf16_to_utf8 : function(const src: PChar16; src_len: NativeUInt; output: PCefStringUtf8): Integer; cdecl;
|
|
|
|
|
cef_string_ascii_to_wide : function(const src: PAnsiChar; src_len: NativeUInt; output: PCefStringWide): Integer; cdecl;
|
|
|
|
|
cef_string_ascii_to_utf16 : function(const src: PAnsiChar; src_len: NativeUInt; output: PCefStringUtf16): Integer; cdecl;
|
|
|
|
|
cef_string_userfree_wide_alloc : function : PCefStringUserFreeWide; cdecl;
|
|
|
|
|
cef_string_userfree_utf8_alloc : function : PCefStringUserFreeUtf8; cdecl;
|
|
|
|
|
cef_string_userfree_utf16_alloc : function : PCefStringUserFreeUtf16; cdecl;
|
|
|
|
|
cef_string_userfree_wide_free : procedure(str: PCefStringUserFreeWide); cdecl;
|
|
|
|
|
cef_string_userfree_utf8_free : procedure(str: PCefStringUserFreeUtf8); cdecl;
|
|
|
|
|
cef_string_userfree_utf16_free : procedure(str: PCefStringUserFreeUtf16); cdecl;
|
|
|
|
|
cef_string_utf16_to_lower : function(const src: PChar16; src_len: NativeUInt; output: PCefStringUtf16): Integer; cdecl;
|
|
|
|
|
cef_string_utf16_to_upper : function(const src: PChar16; src_len: NativeUInt; output: PCefStringUtf16): Integer; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_thread_internal.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_get_current_platform_thread_id : function : TCefPlatformThreadId; cdecl;
|
|
|
|
|
cef_get_current_platform_thread_handle : function : TCefPlatformThreadHandle; cdecl;
|
2017-02-04 18:53:29 +01:00
|
|
|
|
|
|
|
|
|
// /include/internal/cef_trace_event_internal.h
|
2018-05-12 14:50:54 +02:00
|
|
|
|
cef_trace_event_instant : procedure(const category, name, arg1_name: PAnsiChar; arg1_val: uint64; const arg2_name: PAnsiChar; arg2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_begin : procedure(const category, name, arg1_name: PAnsiChar; arg1_val: UInt64; const arg2_name: PAnsiChar; arg2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_end : procedure(const category, name, arg1_name: PAnsiChar; arg1_val: UInt64; const arg2_name: PAnsiChar; arg2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_counter : procedure(const category, name, value1_name: PAnsiChar; value1_val: UInt64; const value2_name: PAnsiChar; value2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_counter_id : procedure(const category, name: PAnsiChar; id: UInt64; const value1_name: PAnsiChar; value1_val: UInt64; const value2_name: PAnsiChar; value2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_async_begin : procedure(const category, name: PAnsiChar; id: UInt64; const arg1_name: PAnsiChar; arg1_val: UInt64; const arg2_name: PAnsiChar; arg2_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_async_step_into : procedure(const category, name: PAnsiChar; id, step: UInt64; const arg1_name: PAnsiChar; arg1_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_async_step_past : procedure(const category, name: PAnsiChar; id, step: UInt64; const arg1_name: PAnsiChar; arg1_val: UInt64; copy: Integer); cdecl;
|
|
|
|
|
cef_trace_event_async_end : procedure(const category, name: PAnsiChar; id: UInt64; const arg1_name: PAnsiChar; arg1_val: UInt64; const arg2_name: PAnsiChar; arg2_val: UInt64; copy: Integer); cdecl;
|
2017-01-27 16:37:51 +01:00
|
|
|
|
|
2018-05-24 19:15:41 +02:00
|
|
|
|
{$IFDEF LINUX}
|
|
|
|
|
// /include/internal/cef_types_linux.h
|
|
|
|
|
cef_get_xdisplay : function : PXDisplay; cdecl;
|
|
|
|
|
{$ENDIF}
|
2017-01-27 16:37:51 +01:00
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
end.
|