From e612af95289957719ac52ee1a2b9ccbe871ea3f2 Mon Sep 17 00:00:00 2001 From: Andrew McWatters Date: Fri, 13 Jan 2017 17:57:49 -0700 Subject: [PATCH] Create cef_app_capi.h --- cef_app_capi.h | 8666 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 8666 insertions(+) create mode 100644 cef_app_capi.h diff --git a/cef_app_capi.h b/cef_app_capi.h new file mode 100644 index 0000000..e2125c1 --- /dev/null +++ b/cef_app_capi.h @@ -0,0 +1,8666 @@ + #include + + #include + + #include + #include +typedef long long int64; +typedef unsigned long long uint64; + + + + + + +typedef int int32; + + + + + + +typedef unsigned int uint32; +typedef unsigned short char16; +typedef struct _cef_string_wide_t { + wchar_t* str; + size_t length; + void (*dtor)(wchar_t* str); +} cef_string_wide_t; + +typedef struct _cef_string_utf8_t { + char* str; + size_t length; + void (*dtor)(char* str); +} cef_string_utf8_t; + +typedef struct _cef_string_utf16_t { + char16* str; + size_t length; + void (*dtor)(char16* str); +} cef_string_utf16_t; +__attribute__ ((visibility("default"))) int cef_string_wide_set(const wchar_t* src, size_t src_len, + cef_string_wide_t* output, int copy); +__attribute__ ((visibility("default"))) int cef_string_utf8_set(const char* src, size_t src_len, + cef_string_utf8_t* output, int copy); +__attribute__ ((visibility("default"))) int cef_string_utf16_set(const char16* src, size_t src_len, + cef_string_utf16_t* output, int copy); +__attribute__ ((visibility("default"))) void cef_string_wide_clear(cef_string_wide_t* str); +__attribute__ ((visibility("default"))) void cef_string_utf8_clear(cef_string_utf8_t* str); +__attribute__ ((visibility("default"))) void cef_string_utf16_clear(cef_string_utf16_t* str); + + + + + + +__attribute__ ((visibility("default"))) int cef_string_wide_cmp(const cef_string_wide_t* str1, + const cef_string_wide_t* str2); +__attribute__ ((visibility("default"))) int cef_string_utf8_cmp(const cef_string_utf8_t* str1, + const cef_string_utf8_t* str2); +__attribute__ ((visibility("default"))) int cef_string_utf16_cmp(const cef_string_utf16_t* str1, + const cef_string_utf16_t* str2); +__attribute__ ((visibility("default"))) int cef_string_wide_to_utf8(const wchar_t* src, size_t src_len, + cef_string_utf8_t* output); +__attribute__ ((visibility("default"))) int cef_string_utf8_to_wide(const char* src, size_t src_len, + cef_string_wide_t* output); + +__attribute__ ((visibility("default"))) int cef_string_wide_to_utf16(const wchar_t* src, size_t src_len, + cef_string_utf16_t* output); +__attribute__ ((visibility("default"))) int cef_string_utf16_to_wide(const char16* src, size_t src_len, + cef_string_wide_t* output); + +__attribute__ ((visibility("default"))) int cef_string_utf8_to_utf16(const char* src, size_t src_len, + cef_string_utf16_t* output); +__attribute__ ((visibility("default"))) int cef_string_utf16_to_utf8(const char16* src, size_t src_len, + cef_string_utf8_t* output); +__attribute__ ((visibility("default"))) int cef_string_ascii_to_wide(const char* src, size_t src_len, + cef_string_wide_t* output); +__attribute__ ((visibility("default"))) int cef_string_ascii_to_utf16(const char* src, size_t src_len, + cef_string_utf16_t* output); +typedef cef_string_wide_t* cef_string_userfree_wide_t; +typedef cef_string_utf8_t* cef_string_userfree_utf8_t; +typedef cef_string_utf16_t* cef_string_userfree_utf16_t; + + + + + + + +__attribute__ ((visibility("default"))) cef_string_userfree_wide_t cef_string_userfree_wide_alloc(); +__attribute__ ((visibility("default"))) cef_string_userfree_utf8_t cef_string_userfree_utf8_alloc(); +__attribute__ ((visibility("default"))) cef_string_userfree_utf16_t cef_string_userfree_utf16_alloc(); + + + + + + + +__attribute__ ((visibility("default"))) void cef_string_userfree_wide_free(cef_string_userfree_wide_t str); +__attribute__ ((visibility("default"))) void cef_string_userfree_utf8_free(cef_string_userfree_utf8_t str); +__attribute__ ((visibility("default"))) void cef_string_userfree_utf16_free(cef_string_userfree_utf16_t str); +typedef char16 cef_char_t; +typedef cef_string_userfree_utf16_t cef_string_userfree_t; +typedef cef_string_utf16_t cef_string_t; +typedef void* cef_string_list_t; + + + + +__attribute__ ((visibility("default"))) cef_string_list_t cef_string_list_alloc(); + + + + +__attribute__ ((visibility("default"))) size_t cef_string_list_size(cef_string_list_t list); + + + + + +__attribute__ ((visibility("default"))) int cef_string_list_value(cef_string_list_t list, + size_t index, cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) void cef_string_list_append(cef_string_list_t list, + const cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) void cef_string_list_clear(cef_string_list_t list); + + + + +__attribute__ ((visibility("default"))) void cef_string_list_free(cef_string_list_t list); + + + + +__attribute__ ((visibility("default"))) cef_string_list_t cef_string_list_copy(cef_string_list_t list); +typedef void* cef_string_map_t; + + + + +__attribute__ ((visibility("default"))) cef_string_map_t cef_string_map_alloc(); + + + + +__attribute__ ((visibility("default"))) size_t cef_string_map_size(cef_string_map_t map); + + + + +__attribute__ ((visibility("default"))) int cef_string_map_find(cef_string_map_t map, + const cef_string_t* key, + cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) int cef_string_map_key(cef_string_map_t map, size_t index, + cef_string_t* key); + + + + +__attribute__ ((visibility("default"))) int cef_string_map_value(cef_string_map_t map, size_t index, + cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) int cef_string_map_append(cef_string_map_t map, + const cef_string_t* key, + const cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) void cef_string_map_clear(cef_string_map_t map); + + + + +__attribute__ ((visibility("default"))) void cef_string_map_free(cef_string_map_t map); +typedef void* cef_string_multimap_t; + + + + +__attribute__ ((visibility("default"))) cef_string_multimap_t cef_string_multimap_alloc(); + + + + +__attribute__ ((visibility("default"))) size_t cef_string_multimap_size(cef_string_multimap_t map); + + + + +__attribute__ ((visibility("default"))) size_t cef_string_multimap_find_count(cef_string_multimap_t map, + const cef_string_t* key); + + + + +__attribute__ ((visibility("default"))) int cef_string_multimap_enumerate(cef_string_multimap_t map, + const cef_string_t* key, + size_t value_index, + cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) int cef_string_multimap_key(cef_string_multimap_t map, size_t index, + cef_string_t* key); + + + + +__attribute__ ((visibility("default"))) int cef_string_multimap_value(cef_string_multimap_t map, size_t index, + cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) int cef_string_multimap_append(cef_string_multimap_t map, + const cef_string_t* key, + const cef_string_t* value); + + + + +__attribute__ ((visibility("default"))) void cef_string_multimap_clear(cef_string_multimap_t map); + + + + +__attribute__ ((visibility("default"))) void cef_string_multimap_free(cef_string_multimap_t map); + #include + + + + +typedef struct _cef_time_t { + int year; + + int month; + int day_of_week; + int day_of_month; + int hour; + int minute; + int second; + + int millisecond; +} cef_time_t; + + + + + +__attribute__ ((visibility("default"))) int cef_time_to_timet(const cef_time_t* cef_time, time_t* time); +__attribute__ ((visibility("default"))) int cef_time_from_timet(time_t time, cef_time_t* cef_time); + + + + + + + +__attribute__ ((visibility("default"))) int cef_time_to_doublet(const cef_time_t* cef_time, double* time); +__attribute__ ((visibility("default"))) int cef_time_from_doublet(double time, cef_time_t* cef_time); + + + + +__attribute__ ((visibility("default"))) int cef_time_now(cef_time_t* cef_time); + + + + +__attribute__ ((visibility("default"))) int cef_time_delta(const cef_time_t* cef_time1, + const cef_time_t* cef_time2, + long long* delta); + + + + + +typedef struct _cef_main_args_t { + int argc; + char** argv; +} cef_main_args_t; + + + + +typedef struct _cef_window_info_t { + cef_string_t window_name; + int x; + int y; + int width; + int height; + + + + + int hidden; + + + + + void* parent_view; + int windowless_rendering_enabled; + + + + + + + + int transparent_painting_enabled; + + + + + void* view; +} cef_window_info_t; + + + + + + +typedef uint32 cef_color_t; +typedef enum { + + + + LOGSEVERITY_DEFAULT, + + + + + LOGSEVERITY_VERBOSE, + + + + + LOGSEVERITY_INFO, + + + + + LOGSEVERITY_WARNING, + + + + + LOGSEVERITY_ERROR, + + + + + LOGSEVERITY_DISABLE = 99 +} cef_log_severity_t; + + + + +typedef enum { + + + + STATE_DEFAULT = 0, + + + + + STATE_ENABLED, + + + + + STATE_DISABLED, +} cef_state_t; + + + + + + +typedef struct _cef_settings_t { + + + + size_t size; + + + + + + + + int single_process; + + + + + + + int no_sandbox; + + + + + + + + cef_string_t browser_subprocess_path; + + + + + + + + int multi_threaded_message_loop; + int external_message_pump; + + + + + + + int windowless_rendering_enabled; + + + + + + + + int command_line_args_disabled; + cef_string_t cache_path; + cef_string_t user_data_path; + int persist_session_cookies; + int persist_user_preferences; + + + + + + + cef_string_t user_agent; + + + + + + + + cef_string_t product_version; + cef_string_t locale; + cef_string_t log_file; + + + + + + + + cef_log_severity_t log_severity; + + + + + + + cef_string_t javascript_flags; + cef_string_t resources_dir_path; + cef_string_t locales_dir_path; + int pack_loading_disabled; + int remote_debugging_port; + int uncaught_exception_stack_size; + int context_safety_implementation; + int ignore_certificate_errors; + int enable_net_security_expiration; + + + + + + + + cef_color_t background_color; + cef_string_t accept_language_list; +} cef_settings_t; + + + + + +typedef struct _cef_request_context_settings_t { + + + + size_t size; + cef_string_t cache_path; + int persist_session_cookies; + + + + + + + + int persist_user_preferences; + int ignore_certificate_errors; + int enable_net_security_expiration; + cef_string_t accept_language_list; +} cef_request_context_settings_t; + + + + + + + +typedef struct _cef_browser_settings_t { + + + + size_t size; + int windowless_frame_rate; + + + + + + + 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; + + + + + + cef_string_t default_encoding; + + + + + + cef_state_t remote_fonts; + + + + + + cef_state_t javascript; + + + + + + + cef_state_t javascript_open_windows; + cef_state_t javascript_close_windows; + + + + + + cef_state_t javascript_access_clipboard; + + + + + + + + cef_state_t javascript_dom_paste; + + + + + + cef_state_t caret_browsing; + + + + + + cef_state_t plugins; + + + + + + cef_state_t universal_access_from_file_urls; + + + + + + cef_state_t file_access_from_file_urls; + + + + + + + + cef_state_t web_security; + + + + + + + cef_state_t image_loading; + + + + + + + cef_state_t image_shrink_standalone_to_fit; + + + + + + cef_state_t text_area_resize; + + + + + + cef_state_t tab_to_links; + + + + + + cef_state_t local_storage; + + + + + + cef_state_t databases; + + + + + + cef_state_t application_cache; + + + + + + + cef_state_t webgl; + cef_color_t background_color; + + + + + + + + cef_string_t accept_language_list; +} cef_browser_settings_t; + + + + +typedef enum { + + + + RV_CANCEL = 0, + + + + + RV_CONTINUE, + + + + + RV_CONTINUE_ASYNC, +} cef_return_value_t; + + + + +typedef struct _cef_urlparts_t { + + + + cef_string_t spec; + + + + + cef_string_t scheme; + + + + + cef_string_t username; + + + + + cef_string_t password; + + + + + + cef_string_t host; + + + + + cef_string_t port; + + + + + + + + cef_string_t origin; + + + + + cef_string_t path; + + + + + cef_string_t query; +} cef_urlparts_t; + + + + +typedef struct _cef_cookie_t { + + + + cef_string_t name; + + + + + cef_string_t value; + + + + + + + cef_string_t domain; + + + + + + cef_string_t path; + + + + + int secure; + + + + + int httponly; + + + + + + cef_time_t creation; + + + + + + cef_time_t last_access; + + + + + int has_expires; + cef_time_t expires; +} cef_cookie_t; + + + + +typedef enum { + + + + TS_ABNORMAL_TERMINATION, + + + + + TS_PROCESS_WAS_KILLED, + + + + + TS_PROCESS_CRASHED, +} cef_termination_status_t; + + + + +typedef enum { + + + + PK_DIR_CURRENT, + + + + + PK_DIR_EXE, + + + + + PK_DIR_MODULE, + + + + + PK_DIR_TEMP, + + + + + PK_FILE_EXE, + + + + + + PK_FILE_MODULE, + + + + + + PK_LOCAL_APP_DATA, + + + + + + PK_USER_DATA, +} cef_path_key_t; + + + + +typedef enum { + ST_LOCALSTORAGE = 0, + ST_SESSIONSTORAGE, +} cef_storage_type_t; + + + + + +typedef enum { + ERR_NONE = 0, + 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_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_CERT_COMMON_NAME_INVALID = -200, + ERR_CERT_BEGIN = ERR_CERT_COMMON_NAME_INVALID, + 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_CERT_END = ERR_CERT_VALIDITY_TOO_LONG, + ERR_INVALID_URL = -300, + ERR_DISALLOWED_URL_SCHEME = -301, + ERR_UNKNOWN_URL_SCHEME = -302, + 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_CACHE_MISS = -400, + ERR_INSECURE_RESPONSE = -501, +} cef_errorcode_t; + + + + + + +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, + + 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, + + CERT_STATUS_NON_UNIQUE_NAME = 1 << 10, + CERT_STATUS_WEAK_KEY = 1 << 11, + + CERT_STATUS_PINNED_KEY_MISSING = 1 << 13, + CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 1 << 14, + CERT_STATUS_VALIDITY_TOO_LONG = 1 << 15, + + + CERT_STATUS_IS_EV = 1 << 16, + CERT_STATUS_REV_CHECKING_ENABLED = 1 << 17, + + CERT_STATUS_SHA1_SIGNATURE_PRESENT = 1 << 19, + CERT_STATUS_CT_COMPLIANCE_FAILED = 1 << 20, +} cef_cert_status_t; + + + + + + +typedef enum { + WOD_UNKNOWN, + WOD_CURRENT_TAB, + WOD_SINGLETON_TAB, + WOD_NEW_FOREGROUND_TAB, + WOD_NEW_BACKGROUND_TAB, + WOD_NEW_POPUP, + WOD_NEW_WINDOW, + WOD_SAVE_TO_DISK, + WOD_OFF_THE_RECORD, + WOD_IGNORE_ACTION +} cef_window_open_disposition_t; + + + + + + +typedef enum { + 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 +} cef_drag_operations_mask_t; + + + + +typedef enum { + V8_ACCESS_CONTROL_DEFAULT = 0, + V8_ACCESS_CONTROL_ALL_CAN_READ = 1, + V8_ACCESS_CONTROL_ALL_CAN_WRITE = 1 << 1, + V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING = 1 << 2 +} cef_v8_accesscontrol_t; + + + + +typedef enum { + V8_PROPERTY_ATTRIBUTE_NONE = 0, + + V8_PROPERTY_ATTRIBUTE_READONLY = 1 << 0, + V8_PROPERTY_ATTRIBUTE_DONTENUM = 1 << 1, + V8_PROPERTY_ATTRIBUTE_DONTDELETE = 1 << 2 +} cef_v8_propertyattribute_t; + + + + +typedef enum { + PDE_TYPE_EMPTY = 0, + PDE_TYPE_BYTES, + PDE_TYPE_FILE, +} cef_postdataelement_type_t; + + + + +typedef enum { + + + + RT_MAIN_FRAME = 0, + + + + + RT_SUB_FRAME, + + + + + RT_STYLESHEET, + + + + + RT_SCRIPT, + + + + + RT_IMAGE, + + + + + RT_FONT_RESOURCE, + + + + + + RT_SUB_RESOURCE, + + + + + RT_OBJECT, + + + + + RT_MEDIA, + + + + + RT_WORKER, + + + + + RT_SHARED_WORKER, + + + + + RT_PREFETCH, + + + + + RT_FAVICON, + + + + + RT_XHR, + + + + + RT_PING, + + + + + RT_SERVICE_WORKER, + + + + + RT_CSP_REPORT, + + + + + RT_PLUGIN_RESOURCE, +} cef_resource_type_t; + + + + + +typedef enum { + + + + + + TT_LINK = 0, + + + + + + + TT_EXPLICIT = 1, + TT_AUTO_SUBFRAME = 3, + TT_MANUAL_SUBFRAME = 4, + + + + + + + TT_FORM_SUBMIT = 7, + + + + + + + TT_RELOAD = 8, + + + + + TT_SOURCE_MASK = 0xFF, + TT_BLOCKED_FLAG = 0x00800000, + + + + + TT_FORWARD_BACK_FLAG = 0x01000000, + + + + + TT_CHAIN_START_FLAG = 0x10000000, + + + + + TT_CHAIN_END_FLAG = 0x20000000, + + + + + TT_CLIENT_REDIRECT_FLAG = 0x40000000, + + + + + TT_SERVER_REDIRECT_FLAG = 0x80000000, + + + + + TT_IS_REDIRECT_MASK = 0xC0000000, + + + + + TT_QUALIFIER_MASK = 0xFFFFFF00, +} cef_transition_type_t; + + + + +typedef enum { + + + + UR_FLAG_NONE = 0, + + + + + UR_FLAG_SKIP_CACHE = 1 << 0, + + + + + + UR_FLAG_ALLOW_CACHED_CREDENTIALS = 1 << 1, + + + + + UR_FLAG_REPORT_UPLOAD_PROGRESS = 1 << 3, + + + + + UR_FLAG_NO_DOWNLOAD_DATA = 1 << 6, + + + + + + + UR_FLAG_NO_RETRY_ON_5XX = 1 << 7, +} cef_urlrequest_flags_t; + + + + +typedef enum { + + + + UR_UNKNOWN = 0, + + + + + UR_SUCCESS, + + + + + + UR_IO_PENDING, + + + + + UR_CANCELED, + + + + + UR_FAILED, +} cef_urlrequest_status_t; + + + + +typedef struct _cef_point_t { + int x; + int y; +} cef_point_t; + + + + +typedef struct _cef_rect_t { + int x; + int y; + int width; + int height; +} cef_rect_t; + + + + +typedef struct _cef_size_t { + int width; + int height; +} cef_size_t; + + + + +typedef struct _cef_range_t { + int from; + int to; +} cef_range_t; + + + + +typedef struct _cef_insets_t { + int top; + int left; + int bottom; + int right; +} cef_insets_t; + + + + +typedef struct _cef_draggable_region_t { + + + + cef_rect_t bounds; + + + + + int draggable; +} cef_draggable_region_t; + + + + +typedef enum { + + + + PID_BROWSER, + + + + PID_RENDERER, +} cef_process_id_t; + + + + +typedef enum { + + + + + + + + TID_UI, + + + + + TID_DB, + + + + + TID_FILE, + + + + + + TID_FILE_USER_BLOCKING, + + + + + TID_PROCESS_LAUNCHER, + + + + + TID_CACHE, + + + + + TID_IO, + + + + + + + TID_RENDERER, +} cef_thread_id_t; + + + + +typedef enum { + + + + TP_BACKGROUND, + + + + + TP_NORMAL, + + + + + TP_DISPLAY, + + + + + TP_REALTIME_AUDIO, +} cef_thread_priority_t; + + + + + +typedef enum { + + + + ML_TYPE_DEFAULT, + + + + + ML_TYPE_UI, + + + + + ML_TYPE_IO, +} cef_message_loop_type_t; + + + + + +typedef enum { + + + + COM_INIT_MODE_NONE, + + + + + COM_INIT_MODE_STA, + + + + + COM_INIT_MODE_MTA, +} cef_com_init_mode_t; + + + + +typedef enum { + VTYPE_INVALID = 0, + VTYPE_NULL, + VTYPE_BOOL, + VTYPE_INT, + VTYPE_DOUBLE, + VTYPE_STRING, + VTYPE_BINARY, + VTYPE_DICTIONARY, + VTYPE_LIST, +} cef_value_type_t; + + + + +typedef enum { + JSDIALOGTYPE_ALERT = 0, + JSDIALOGTYPE_CONFIRM, + JSDIALOGTYPE_PROMPT, +} cef_jsdialog_type_t; + + + + + + +typedef struct _cef_screen_info_t { + + + + + float device_scale_factor; + + + + + int depth; + + + + + + int depth_per_component; + + + + + int is_monochrome; + cef_rect_t rect; + cef_rect_t available_rect; +} cef_screen_info_t; + + + + + +typedef enum { + + 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, +} cef_menu_id_t; + + + + +typedef enum { + MBT_LEFT = 0, + MBT_MIDDLE, + MBT_RIGHT, +} cef_mouse_button_type_t; + + + + +typedef struct _cef_mouse_event_t { + + + + int x; + + + + + int y; + + + + + + uint32 modifiers; +} cef_mouse_event_t; + + + + +typedef enum { + PET_VIEW = 0, + PET_POPUP, +} cef_paint_element_type_t; + + + + +typedef enum { + 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, + EVENTFLAG_MIDDLE_MOUSE_BUTTON = 1 << 5, + EVENTFLAG_RIGHT_MOUSE_BUTTON = 1 << 6, + + 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, +} cef_event_flags_t; + + + + +typedef enum { + MENUITEMTYPE_NONE, + MENUITEMTYPE_COMMAND, + MENUITEMTYPE_CHECK, + MENUITEMTYPE_RADIO, + MENUITEMTYPE_SEPARATOR, + MENUITEMTYPE_SUBMENU, +} cef_menu_item_type_t; + + + + +typedef enum { + + + + CM_TYPEFLAG_NONE = 0, + + + + CM_TYPEFLAG_PAGE = 1 << 0, + + + + CM_TYPEFLAG_FRAME = 1 << 1, + + + + CM_TYPEFLAG_LINK = 1 << 2, + + + + CM_TYPEFLAG_MEDIA = 1 << 3, + + + + CM_TYPEFLAG_SELECTION = 1 << 4, + + + + CM_TYPEFLAG_EDITABLE = 1 << 5, +} cef_context_menu_type_flags_t; + + + + +typedef enum { + + + + CM_MEDIATYPE_NONE, + + + + CM_MEDIATYPE_IMAGE, + + + + CM_MEDIATYPE_VIDEO, + + + + CM_MEDIATYPE_AUDIO, + + + + CM_MEDIATYPE_FILE, + + + + CM_MEDIATYPE_PLUGIN, +} cef_context_menu_media_type_t; + + + + +typedef enum { + CM_MEDIAFLAG_NONE = 0, + CM_MEDIAFLAG_ERROR = 1 << 0, + 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, + CM_MEDIAFLAG_HAS_VIDEO = 1 << 6, + CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT = 1 << 7, + CM_MEDIAFLAG_CAN_PRINT = 1 << 8, + CM_MEDIAFLAG_CAN_ROTATE = 1 << 9, +} cef_context_menu_media_state_flags_t; + + + + +typedef enum { + 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, +} cef_context_menu_edit_state_flags_t; + + + + +typedef enum { + + + + KEYEVENT_RAWKEYDOWN = 0, + + + + + + + KEYEVENT_KEYDOWN, + + + + + KEYEVENT_KEYUP, + + + + + + + KEYEVENT_CHAR +} cef_key_event_type_t; + + + + +typedef struct _cef_key_event_t { + + + + cef_key_event_type_t type; + + + + + + uint32 modifiers; + + + + + + + + int windows_key_code; + + + + + int native_key_code; + + + + + + + int is_system_key; + + + + + char16 character; + + + + + + char16 unmodified_character; + + + + + + int focus_on_editable_field; +} cef_key_event_t; + + + + +typedef enum { + + + + FOCUS_SOURCE_NAVIGATION = 0, + + + + FOCUS_SOURCE_SYSTEM, +} cef_focus_source_t; + + + + +typedef enum { + NAVIGATION_LINK_CLICKED = 0, + NAVIGATION_FORM_SUBMITTED, + NAVIGATION_BACK_FORWARD, + NAVIGATION_RELOAD, + NAVIGATION_FORM_RESUBMITTED, + NAVIGATION_OTHER, +} cef_navigation_type_t; + + + + + + + +typedef enum { + XML_ENCODING_NONE = 0, + XML_ENCODING_UTF8, + XML_ENCODING_UTF16LE, + XML_ENCODING_UTF16BE, + XML_ENCODING_ASCII, +} cef_xml_encoding_type_t; + + + + +typedef enum { + 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, +} cef_xml_node_type_t; + + + + +typedef struct _cef_popup_features_t { + int x; + int xSet; + int y; + int ySet; + int width; + int widthSet; + int height; + int heightSet; + + int menuBarVisible; + int statusBarVisible; + int toolBarVisible; + int locationBarVisible; + int scrollbarsVisible; + int resizable; + + int fullscreen; + int dialog; + cef_string_list_t additionalFeatures; +} cef_popup_features_t; + + + + +typedef enum { + DOM_DOCUMENT_TYPE_UNKNOWN = 0, + DOM_DOCUMENT_TYPE_HTML, + DOM_DOCUMENT_TYPE_XHTML, + DOM_DOCUMENT_TYPE_PLUGIN, +} cef_dom_document_type_t; + + + + +typedef enum { + 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, +} cef_dom_event_category_t; + + + + +typedef enum { + DOM_EVENT_PHASE_UNKNOWN = 0, + DOM_EVENT_PHASE_CAPTURING, + DOM_EVENT_PHASE_AT_TARGET, + DOM_EVENT_PHASE_BUBBLING, +} cef_dom_event_phase_t; + + + + +typedef enum { + 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, +} cef_dom_node_type_t; + + + + +typedef enum { + + + + FILE_DIALOG_OPEN = 0, + + + + + FILE_DIALOG_OPEN_MULTIPLE, + + + + + FILE_DIALOG_OPEN_FOLDER, + + + + + + FILE_DIALOG_SAVE, + + + + + FILE_DIALOG_TYPE_MASK = 0xFF, + FILE_DIALOG_OVERWRITEPROMPT_FLAG = 0x01000000, + + + + + FILE_DIALOG_HIDEREADONLY_FLAG = 0x02000000, +} cef_file_dialog_mode_t; + + + + +typedef enum { + GEOPOSITON_ERROR_NONE = 0, + GEOPOSITON_ERROR_PERMISSION_DENIED, + GEOPOSITON_ERROR_POSITION_UNAVAILABLE, + GEOPOSITON_ERROR_TIMEOUT, +} cef_geoposition_error_code_t; + + + + + + +typedef struct _cef_geoposition_t { + + + + double latitude; + + + + + double longitude; + + + + + double altitude; + + + + + double accuracy; + + + + + double altitude_accuracy; + + + + + double heading; + + + + + double speed; + + + + + + cef_time_t timestamp; + + + + + cef_geoposition_error_code_t error_code; + + + + + cef_string_t error_message; +} cef_geoposition_t; + + + + +typedef enum { + COLOR_MODEL_UNKNOWN, + COLOR_MODEL_GRAY, + COLOR_MODEL_COLOR, + COLOR_MODEL_CMYK, + COLOR_MODEL_CMY, + COLOR_MODEL_KCMY, + COLOR_MODEL_CMY_K, + COLOR_MODEL_BLACK, + COLOR_MODEL_GRAYSCALE, + COLOR_MODEL_RGB, + COLOR_MODEL_RGB16, + COLOR_MODEL_RGBA, + COLOR_MODEL_COLORMODE_COLOR, + COLOR_MODEL_COLORMODE_MONOCHROME, + COLOR_MODEL_HP_COLOR_COLOR, + COLOR_MODEL_HP_COLOR_BLACK, + COLOR_MODEL_PRINTOUTMODE_NORMAL, + COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY, + COLOR_MODEL_PROCESSCOLORMODEL_CMYK, + COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE, + COLOR_MODEL_PROCESSCOLORMODEL_RGB, +} cef_color_model_t; + + + + +typedef enum { + DUPLEX_MODE_UNKNOWN = -1, + DUPLEX_MODE_SIMPLEX, + DUPLEX_MODE_LONG_EDGE, + DUPLEX_MODE_SHORT_EDGE, +} cef_duplex_mode_t; + + + + +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, + CT_CUSTOM, +} cef_cursor_type_t; + + + + + + +typedef struct _cef_cursor_info_t { + cef_point_t hotspot; + float image_scale_factor; + void* buffer; + cef_size_t size; +} cef_cursor_info_t; + + + + +typedef enum { + + + + UU_NONE = 0, + UU_NORMAL = 1 << 0, + + + + + + + + UU_SPACES = 1 << 1, + UU_PATH_SEPARATORS = 1 << 2, + UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 1 << 3, + UU_SPOOFING_AND_CONTROL_CHARS = 1 << 4, + + + + + UU_REPLACE_PLUS_WITH_SPACE = 1 << 5, +} cef_uri_unescape_rule_t; + + + + +typedef enum { + + + + + JSON_PARSER_RFC = 0, + + + + + JSON_PARSER_ALLOW_TRAILING_COMMAS = 1 << 0, +} cef_json_parser_options_t; + + + + +typedef enum { + JSON_NO_ERROR = 0, + JSON_INVALID_ESCAPE, + JSON_SYNTAX_ERROR, + JSON_UNEXPECTED_TOKEN, + JSON_TRAILING_COMMA, + JSON_TOO_MUCH_NESTING, + JSON_UNEXPECTED_DATA_AFTER_ROOT, + JSON_UNSUPPORTED_ENCODING, + JSON_UNQUOTED_DICTIONARY_KEY, + JSON_PARSE_ERROR_COUNT +} cef_json_parser_error_t; + + + + +typedef enum { + + + + JSON_WRITER_DEFAULT = 0, + + + + + + + + JSON_WRITER_OMIT_BINARY_VALUES = 1 << 0, + + + + + + + + JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 1 << 1, + + + + + + JSON_WRITER_PRETTY_PRINT = 1 << 2, +} cef_json_writer_options_t; + + + + +typedef enum { + + + + PDF_PRINT_MARGIN_DEFAULT, + + + + + PDF_PRINT_MARGIN_NONE, + + + + + PDF_PRINT_MARGIN_MINIMUM, + + + + + PDF_PRINT_MARGIN_CUSTOM, +} cef_pdf_print_margin_type_t; + + + + +typedef struct _cef_pdf_print_settings_t { + + + + + cef_string_t header_footer_title; + + + + + + cef_string_t header_footer_url; + + + + + + int page_width; + int page_height; + + + + + + double margin_top; + double margin_right; + double margin_bottom; + double margin_left; + + + + + cef_pdf_print_margin_type_t margin_type; + + + + + + int header_footer_enabled; + + + + + int selection_only; + + + + + int landscape; + + + + + + int backgrounds_enabled; + +} cef_pdf_print_settings_t; + + + + + + +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; + + + + +typedef enum { + + + + PLUGIN_POLICY_ALLOW, + + + + + + PLUGIN_POLICY_DETECT_IMPORTANT, + + + + + PLUGIN_POLICY_BLOCK, + + + + + PLUGIN_POLICY_DISABLE, +} cef_plugin_policy_t; + + + + + + +typedef enum { + + + + REFERRER_POLICY_ALWAYS, + + + + + + + + REFERRER_POLICY_DEFAULT, + + + + + + REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE, + + + + + REFERRER_POLICY_NEVER, + + + + + REFERRER_POLICY_ORIGIN, + + + + + + REFERRER_POLICY_ORIGIN_WHEN_CROSS_ORIGIN, +} cef_referrer_policy_t; + + + + +typedef enum { + + + + + RESPONSE_FILTER_NEED_MORE_DATA, + + + + + + RESPONSE_FILTER_DONE, + + + + + RESPONSE_FILTER_ERROR +} cef_response_filter_status_t; + + + + +typedef enum { + + + + CEF_COLOR_TYPE_RGBA_8888, + + + + + CEF_COLOR_TYPE_BGRA_8888, +} cef_color_type_t; + + + + +typedef enum { + + + + CEF_ALPHA_TYPE_OPAQUE, + + + + + CEF_ALPHA_TYPE_PREMULTIPLIED, + + + + + CEF_ALPHA_TYPE_POSTMULTIPLIED, +} cef_alpha_type_t; + + + + +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; + + + + + +typedef enum { + + + + CEF_MAIN_AXIS_ALIGNMENT_START, + + + + + CEF_MAIN_AXIS_ALIGNMENT_CENTER, + + + + + CEF_MAIN_AXIS_ALIGNMENT_END, +} cef_main_axis_alignment_t; + + + + + +typedef enum { + + + + CEF_CROSS_AXIS_ALIGNMENT_STRETCH, + + + + + CEF_CROSS_AXIS_ALIGNMENT_START, + + + + + CEF_CROSS_AXIS_ALIGNMENT_CENTER, + + + + + CEF_CROSS_AXIS_ALIGNMENT_END, +} cef_cross_axis_alignment_t; + + + + +typedef struct _cef_box_layout_settings_t { + + + + + int horizontal; + + + + + + int inside_border_horizontal_spacing; + + + + + + int inside_border_vertical_spacing; + + + + + cef_insets_t inside_border_insets; + + + + + int between_child_spacing; + + + + + cef_main_axis_alignment_t main_axis_alignment; + + + + + cef_cross_axis_alignment_t cross_axis_alignment; + + + + + int minimum_cross_axis_size; + int default_flex; +} cef_box_layout_settings_t; + + + + +typedef enum { + CEF_BUTTON_STATE_NORMAL, + CEF_BUTTON_STATE_HOVERED, + CEF_BUTTON_STATE_PRESSED, + CEF_BUTTON_STATE_DISABLED, +} cef_button_state_t; + + + + +typedef enum { + + + + CEF_HORIZONTAL_ALIGNMENT_LEFT, + + + + + CEF_HORIZONTAL_ALIGNMENT_CENTER, + + + + + CEF_HORIZONTAL_ALIGNMENT_RIGHT, +} cef_horizontal_alignment_t; + + + + + +typedef enum { + CEF_MENU_ANCHOR_TOPLEFT, + CEF_MENU_ANCHOR_TOPRIGHT, + CEF_MENU_ANCHOR_BOTTOMCENTER, +} cef_menu_anchor_position_t; + + + +typedef enum { + 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_QUIC = 7, +} cef_ssl_version_t; + + + +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; + + + + +typedef enum { + + + + CEF_CDM_REGISTRATION_ERROR_NONE, + + + + + CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS, + + + + + CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE, + + + + + CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED, +} cef_cdm_registration_error_t; + + + + + + +typedef struct _cef_composition_underline_t { + + + + cef_range_t range; + + + + + cef_color_t color; + + + + + cef_color_t background_color; + + + + + int thick; +} cef_composition_underline_t; +typedef struct _cef_base_t { + + + + size_t size; + + + + + + void ( *add_ref)(struct _cef_base_t* self); + + + + + + + int ( *release)(struct _cef_base_t* self); + + + + + int ( *has_one_ref)(struct _cef_base_t* self); +} cef_base_t; +typedef struct _cef_command_line_t { + + + + cef_base_t base; + + + + + + int ( *is_valid)(struct _cef_command_line_t* self); + + + + + + int ( *is_read_only)(struct _cef_command_line_t* self); + + + + + struct _cef_command_line_t* ( *copy)( + struct _cef_command_line_t* self); + + + + + + + void ( *init_from_argv)(struct _cef_command_line_t* self, + int argc, const char* const* argv); + + + + + + void ( *init_from_string)(struct _cef_command_line_t* self, + const cef_string_t* command_line); + + + + + + void ( *reset)(struct _cef_command_line_t* self); + + + + + + void ( *get_argv)(struct _cef_command_line_t* self, + cef_string_list_t argv); + + + + + + + cef_string_userfree_t ( *get_command_line_string)( + struct _cef_command_line_t* self); + + + + + + cef_string_userfree_t ( *get_program)( + struct _cef_command_line_t* self); + + + + + void ( *set_program)(struct _cef_command_line_t* self, + const cef_string_t* program); + + + + + int ( *has_switches)(struct _cef_command_line_t* self); + + + + + int ( *has_switch)(struct _cef_command_line_t* self, + const cef_string_t* name); + + + + + + + cef_string_userfree_t ( *get_switch_value)( + struct _cef_command_line_t* self, const cef_string_t* name); + + + + + + void ( *get_switches)(struct _cef_command_line_t* self, + cef_string_map_t switches); + + + + + + void ( *append_switch)(struct _cef_command_line_t* self, + const cef_string_t* name); + + + + + void ( *append_switch_with_value)( + struct _cef_command_line_t* self, const cef_string_t* name, + const cef_string_t* value); + + + + + int ( *has_arguments)(struct _cef_command_line_t* self); + + + + + void ( *get_arguments)(struct _cef_command_line_t* self, + cef_string_list_t arguments); + + + + + void ( *append_argument)(struct _cef_command_line_t* self, + const cef_string_t* argument); + + + + + + void ( *prepend_wrapper)(struct _cef_command_line_t* self, + const cef_string_t* wrapper); +} cef_command_line_t; + + + + + +__attribute__ ((visibility("default"))) cef_command_line_t* cef_command_line_create(); + + + + + +__attribute__ ((visibility("default"))) cef_command_line_t* cef_command_line_get_global(); +typedef struct _cef_read_handler_t { + + + + cef_base_t base; + + + + + size_t ( *read)(struct _cef_read_handler_t* self, void* ptr, + size_t size, size_t n); + + + + + + int ( *seek)(struct _cef_read_handler_t* self, int64 offset, + int whence); + + + + + int64 ( *tell)(struct _cef_read_handler_t* self); + + + + + int ( *eof)(struct _cef_read_handler_t* self); + + + + + + + int ( *may_block)(struct _cef_read_handler_t* self); +} cef_read_handler_t; + + + + + + +typedef struct _cef_stream_reader_t { + + + + cef_base_t base; + + + + + size_t ( *read)(struct _cef_stream_reader_t* self, void* ptr, + size_t size, size_t n); + + + + + + int ( *seek)(struct _cef_stream_reader_t* self, int64 offset, + int whence); + + + + + int64 ( *tell)(struct _cef_stream_reader_t* self); + + + + + int ( *eof)(struct _cef_stream_reader_t* self); + + + + + + + int ( *may_block)(struct _cef_stream_reader_t* self); +} cef_stream_reader_t; + + + + + +__attribute__ ((visibility("default"))) cef_stream_reader_t* cef_stream_reader_create_for_file( + const cef_string_t* fileName); + + + + +__attribute__ ((visibility("default"))) cef_stream_reader_t* cef_stream_reader_create_for_data(void* data, + size_t size); + + + + +__attribute__ ((visibility("default"))) cef_stream_reader_t* cef_stream_reader_create_for_handler( + cef_read_handler_t* handler); + + + + + + +typedef struct _cef_write_handler_t { + + + + cef_base_t base; + + + + + size_t ( *write)(struct _cef_write_handler_t* self, + const void* ptr, size_t size, size_t n); + + + + + + int ( *seek)(struct _cef_write_handler_t* self, int64 offset, + int whence); + + + + + int64 ( *tell)(struct _cef_write_handler_t* self); + + + + + int ( *flush)(struct _cef_write_handler_t* self); + + + + + + + int ( *may_block)(struct _cef_write_handler_t* self); +} cef_write_handler_t; + + + + + + +typedef struct _cef_stream_writer_t { + + + + cef_base_t base; + + + + + size_t ( *write)(struct _cef_stream_writer_t* self, + const void* ptr, size_t size, size_t n); + + + + + + int ( *seek)(struct _cef_stream_writer_t* self, int64 offset, + int whence); + + + + + int64 ( *tell)(struct _cef_stream_writer_t* self); + + + + + int ( *flush)(struct _cef_stream_writer_t* self); + + + + + + + int ( *may_block)(struct _cef_stream_writer_t* self); +} cef_stream_writer_t; + + + + + +__attribute__ ((visibility("default"))) cef_stream_writer_t* cef_stream_writer_create_for_file( + const cef_string_t* fileName); + + + + +__attribute__ ((visibility("default"))) cef_stream_writer_t* cef_stream_writer_create_for_handler( + cef_write_handler_t* handler); +typedef struct _cef_drag_data_t { + + + + cef_base_t base; + + + + + struct _cef_drag_data_t* ( *clone)(struct _cef_drag_data_t* self); + + + + + int ( *is_read_only)(struct _cef_drag_data_t* self); + + + + + int ( *is_link)(struct _cef_drag_data_t* self); + + + + + int ( *is_fragment)(struct _cef_drag_data_t* self); + + + + + int ( *is_file)(struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_link_url)( + struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_link_title)( + struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_link_metadata)( + struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_fragment_text)( + struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_fragment_html)( + struct _cef_drag_data_t* self); + + + + + + + cef_string_userfree_t ( *get_fragment_base_url)( + struct _cef_drag_data_t* self); + + + + + + cef_string_userfree_t ( *get_file_name)( + struct _cef_drag_data_t* self); + + + + + + + + size_t ( *get_file_contents)(struct _cef_drag_data_t* self, + struct _cef_stream_writer_t* writer); + + + + + + int ( *get_file_names)(struct _cef_drag_data_t* self, + cef_string_list_t names); + + + + + void ( *set_link_url)(struct _cef_drag_data_t* self, + const cef_string_t* url); + + + + + void ( *set_link_title)(struct _cef_drag_data_t* self, + const cef_string_t* title); + + + + + void ( *set_link_metadata)(struct _cef_drag_data_t* self, + const cef_string_t* data); + + + + + void ( *set_fragment_text)(struct _cef_drag_data_t* self, + const cef_string_t* text); + + + + + void ( *set_fragment_html)(struct _cef_drag_data_t* self, + const cef_string_t* html); + + + + + void ( *set_fragment_base_url)(struct _cef_drag_data_t* self, + const cef_string_t* base_url); + + + + + + + void ( *reset_file_contents)(struct _cef_drag_data_t* self); + + + + + void ( *add_file)(struct _cef_drag_data_t* self, + const cef_string_t* path, const cef_string_t* display_name); +} cef_drag_data_t; + + + + + +__attribute__ ((visibility("default"))) cef_drag_data_t* cef_drag_data_create(); +struct _cef_domdocument_t; +struct _cef_domnode_t; + + + + + +typedef struct _cef_domvisitor_t { + + + + cef_base_t base; + void ( *visit)(struct _cef_domvisitor_t* self, + struct _cef_domdocument_t* document); +} cef_domvisitor_t; + + + + + + +typedef struct _cef_domdocument_t { + + + + cef_base_t base; + + + + + cef_dom_document_type_t ( *get_type)( + struct _cef_domdocument_t* self); + + + + + struct _cef_domnode_t* ( *get_document)( + struct _cef_domdocument_t* self); + + + + + struct _cef_domnode_t* ( *get_body)( + struct _cef_domdocument_t* self); + + + + + struct _cef_domnode_t* ( *get_head)( + struct _cef_domdocument_t* self); + + + + + + cef_string_userfree_t ( *get_title)( + struct _cef_domdocument_t* self); + + + + + struct _cef_domnode_t* ( *get_element_by_id)( + struct _cef_domdocument_t* self, const cef_string_t* id); + + + + + struct _cef_domnode_t* ( *get_focused_node)( + struct _cef_domdocument_t* self); + + + + + int ( *has_selection)(struct _cef_domdocument_t* self); + + + + + int ( *get_selection_start_offset)( + struct _cef_domdocument_t* self); + + + + + int ( *get_selection_end_offset)(struct _cef_domdocument_t* self); + + + + + + cef_string_userfree_t ( *get_selection_as_markup)( + struct _cef_domdocument_t* self); + + + + + + cef_string_userfree_t ( *get_selection_as_text)( + struct _cef_domdocument_t* self); + + + + + + cef_string_userfree_t ( *get_base_url)( + struct _cef_domdocument_t* self); + + + + + + + cef_string_userfree_t ( *get_complete_url)( + struct _cef_domdocument_t* self, const cef_string_t* partialURL); +} cef_domdocument_t; + + + + + + +typedef struct _cef_domnode_t { + + + + cef_base_t base; + + + + + cef_dom_node_type_t ( *get_type)(struct _cef_domnode_t* self); + + + + + int ( *is_text)(struct _cef_domnode_t* self); + + + + + int ( *is_element)(struct _cef_domnode_t* self); + + + + + int ( *is_editable)(struct _cef_domnode_t* self); + + + + + int ( *is_form_control_element)(struct _cef_domnode_t* self); + + + + + + cef_string_userfree_t ( *get_form_control_element_type)( + struct _cef_domnode_t* self); + + + + + + int ( *is_same)(struct _cef_domnode_t* self, + struct _cef_domnode_t* that); + + + + + + cef_string_userfree_t ( *get_name)(struct _cef_domnode_t* self); + + + + + + cef_string_userfree_t ( *get_value)(struct _cef_domnode_t* self); + + + + + int ( *set_value)(struct _cef_domnode_t* self, + const cef_string_t* value); + + + + + + cef_string_userfree_t ( *get_as_markup)( + struct _cef_domnode_t* self); + + + + + struct _cef_domdocument_t* ( *get_document)( + struct _cef_domnode_t* self); + + + + + struct _cef_domnode_t* ( *get_parent)( + struct _cef_domnode_t* self); + + + + + struct _cef_domnode_t* ( *get_previous_sibling)( + struct _cef_domnode_t* self); + + + + + struct _cef_domnode_t* ( *get_next_sibling)( + struct _cef_domnode_t* self); + + + + + int ( *has_children)(struct _cef_domnode_t* self); + + + + + struct _cef_domnode_t* ( *get_first_child)( + struct _cef_domnode_t* self); + + + + + struct _cef_domnode_t* ( *get_last_child)( + struct _cef_domnode_t* self); + cef_string_userfree_t ( *get_element_tag_name)( + struct _cef_domnode_t* self); + + + + + int ( *has_element_attributes)(struct _cef_domnode_t* self); + + + + + int ( *has_element_attribute)(struct _cef_domnode_t* self, + const cef_string_t* attrName); + + + + + + cef_string_userfree_t ( *get_element_attribute)( + struct _cef_domnode_t* self, const cef_string_t* attrName); + + + + + void ( *get_element_attributes)(struct _cef_domnode_t* self, + cef_string_map_t attrMap); + + + + + + int ( *set_element_attribute)(struct _cef_domnode_t* self, + const cef_string_t* attrName, const cef_string_t* value); + + + + + + cef_string_userfree_t ( *get_element_inner_text)( + struct _cef_domnode_t* self); + + + + + cef_rect_t ( *get_element_bounds)(struct _cef_domnode_t* self); +} cef_domnode_t; +struct _cef_post_data_element_t; +struct _cef_post_data_t; + + + + + +typedef struct _cef_request_t { + + + + cef_base_t base; + + + + + int ( *is_read_only)(struct _cef_request_t* self); + + + + + + cef_string_userfree_t ( *get_url)(struct _cef_request_t* self); + + + + + void ( *set_url)(struct _cef_request_t* self, + const cef_string_t* url); + + + + + + + cef_string_userfree_t ( *get_method)(struct _cef_request_t* self); + + + + + void ( *set_method)(struct _cef_request_t* self, + const cef_string_t* method); + + + + + + + void ( *set_referrer)(struct _cef_request_t* self, + const cef_string_t* referrer_url, cef_referrer_policy_t policy); + + + + + + cef_string_userfree_t ( *get_referrer_url)( + struct _cef_request_t* self); + + + + + cef_referrer_policy_t ( *get_referrer_policy)( + struct _cef_request_t* self); + + + + + struct _cef_post_data_t* ( *get_post_data)( + struct _cef_request_t* self); + + + + + void ( *set_post_data)(struct _cef_request_t* self, + struct _cef_post_data_t* postData); + + + + + void ( *get_header_map)(struct _cef_request_t* self, + cef_string_multimap_t headerMap); + + + + + + void ( *set_header_map)(struct _cef_request_t* self, + cef_string_multimap_t headerMap); + + + + + void ( *set)(struct _cef_request_t* self, const cef_string_t* url, + const cef_string_t* method, struct _cef_post_data_t* postData, + cef_string_multimap_t headerMap); + + + + + + int ( *get_flags)(struct _cef_request_t* self); + + + + + + void ( *set_flags)(struct _cef_request_t* self, int flags); + + + + + + + cef_string_userfree_t ( *get_first_party_for_cookies)( + struct _cef_request_t* self); + + + + + + void ( *set_first_party_for_cookies)(struct _cef_request_t* self, + const cef_string_t* url); + + + + + + cef_resource_type_t ( *get_resource_type)( + struct _cef_request_t* self); + + + + + + + cef_transition_type_t ( *get_transition_type)( + struct _cef_request_t* self); + + + + + + + uint64 ( *get_identifier)(struct _cef_request_t* self); +} cef_request_t; + + + + + +__attribute__ ((visibility("default"))) cef_request_t* cef_request_create(); + + + + + + +typedef struct _cef_post_data_t { + + + + cef_base_t base; + + + + + int ( *is_read_only)(struct _cef_post_data_t* self); + + + + + + + + int ( *has_excluded_elements)(struct _cef_post_data_t* self); + + + + + size_t ( *get_element_count)(struct _cef_post_data_t* self); + + + + + void ( *get_elements)(struct _cef_post_data_t* self, + size_t* elementsCount, struct _cef_post_data_element_t** elements); + + + + + + int ( *remove_element)(struct _cef_post_data_t* self, + struct _cef_post_data_element_t* element); + + + + + int ( *add_element)(struct _cef_post_data_t* self, + struct _cef_post_data_element_t* element); + + + + + void ( *remove_elements)(struct _cef_post_data_t* self); +} cef_post_data_t; + + + + + +__attribute__ ((visibility("default"))) cef_post_data_t* cef_post_data_create(); + + + + + + +typedef struct _cef_post_data_element_t { + + + + cef_base_t base; + + + + + int ( *is_read_only)(struct _cef_post_data_element_t* self); + + + + + void ( *set_to_empty)(struct _cef_post_data_element_t* self); + + + + + void ( *set_to_file)(struct _cef_post_data_element_t* self, + const cef_string_t* fileName); + + + + + + void ( *set_to_bytes)(struct _cef_post_data_element_t* self, + size_t size, const void* bytes); + + + + + cef_postdataelement_type_t ( *get_type)( + struct _cef_post_data_element_t* self); + + + + + + cef_string_userfree_t ( *get_file)( + struct _cef_post_data_element_t* self); + + + + + size_t ( *get_bytes_count)(struct _cef_post_data_element_t* self); + + + + + + size_t ( *get_bytes)(struct _cef_post_data_element_t* self, + size_t size, void* bytes); +} cef_post_data_element_t; + + + + + +__attribute__ ((visibility("default"))) cef_post_data_element_t* cef_post_data_element_create(); + +typedef struct _cef_string_visitor_t { + + + + cef_base_t base; + + + + + void ( *visit)(struct _cef_string_visitor_t* self, + const cef_string_t* string); +} cef_string_visitor_t; + + + + + +struct _cef_browser_t; +struct _cef_v8context_t; + + + + + + + +typedef struct _cef_frame_t { + + + + cef_base_t base; + + + + + int ( *is_valid)(struct _cef_frame_t* self); + + + + + void ( *undo)(struct _cef_frame_t* self); + + + + + void ( *redo)(struct _cef_frame_t* self); + + + + + void ( *cut)(struct _cef_frame_t* self); + + + + + void ( *copy)(struct _cef_frame_t* self); + + + + + void ( *paste)(struct _cef_frame_t* self); + + + + + void ( *del)(struct _cef_frame_t* self); + + + + + void ( *select_all)(struct _cef_frame_t* self); + + + + + + + void ( *view_source)(struct _cef_frame_t* self); + + + + + + void ( *get_source)(struct _cef_frame_t* self, + struct _cef_string_visitor_t* visitor); + + + + + + void ( *get_text)(struct _cef_frame_t* self, + struct _cef_string_visitor_t* visitor); + + + + + void ( *load_request)(struct _cef_frame_t* self, + struct _cef_request_t* request); + + + + + void ( *load_url)(struct _cef_frame_t* self, + const cef_string_t* url); + + + + + + + void ( *load_string)(struct _cef_frame_t* self, + const cef_string_t* string_val, const cef_string_t* url); + void ( *execute_java_script)(struct _cef_frame_t* self, + const cef_string_t* code, const cef_string_t* script_url, + int start_line); + + + + + int ( *is_main)(struct _cef_frame_t* self); + + + + + int ( *is_focused)(struct _cef_frame_t* self); + cef_string_userfree_t ( *get_name)(struct _cef_frame_t* self); + + + + + + int64 ( *get_identifier)(struct _cef_frame_t* self); + + + + + + struct _cef_frame_t* ( *get_parent)(struct _cef_frame_t* self); + + + + + + cef_string_userfree_t ( *get_url)(struct _cef_frame_t* self); + + + + + struct _cef_browser_t* ( *get_browser)(struct _cef_frame_t* self); + + + + + + struct _cef_v8context_t* ( *get_v8context)( + struct _cef_frame_t* self); + + + + + + void ( *visit_dom)(struct _cef_frame_t* self, + struct _cef_domvisitor_t* visitor); +} cef_frame_t; +struct _cef_binary_value_t; +struct _cef_dictionary_value_t; +struct _cef_list_value_t; + + + + + + +typedef struct _cef_value_t { + + + + cef_base_t base; + int ( *is_valid)(struct _cef_value_t* self); + + + + + int ( *is_owned)(struct _cef_value_t* self); + + + + + + int ( *is_read_only)(struct _cef_value_t* self); + + + + + + + int ( *is_same)(struct _cef_value_t* self, + struct _cef_value_t* that); + + + + + + int ( *is_equal)(struct _cef_value_t* self, + struct _cef_value_t* that); + + + + + struct _cef_value_t* ( *copy)(struct _cef_value_t* self); + + + + + cef_value_type_t ( *get_type)(struct _cef_value_t* self); + + + + + int ( *get_bool)(struct _cef_value_t* self); + + + + + int ( *get_int)(struct _cef_value_t* self); + + + + + double ( *get_double)(struct _cef_value_t* self); + + + + + + cef_string_userfree_t ( *get_string)(struct _cef_value_t* self); + struct _cef_binary_value_t* ( *get_binary)( + struct _cef_value_t* self); + struct _cef_dictionary_value_t* ( *get_dictionary)( + struct _cef_value_t* self); + struct _cef_list_value_t* ( *get_list)(struct _cef_value_t* self); + + + + + + int ( *set_null)(struct _cef_value_t* self); + + + + + + int ( *set_bool)(struct _cef_value_t* self, int value); + + + + + + int ( *set_int)(struct _cef_value_t* self, int value); + + + + + + int ( *set_double)(struct _cef_value_t* self, double value); + + + + + + int ( *set_string)(struct _cef_value_t* self, + const cef_string_t* value); + + + + + + + int ( *set_binary)(struct _cef_value_t* self, + struct _cef_binary_value_t* value); + + + + + + + int ( *set_dictionary)(struct _cef_value_t* self, + struct _cef_dictionary_value_t* value); + + + + + + + int ( *set_list)(struct _cef_value_t* self, + struct _cef_list_value_t* value); +} cef_value_t; + + + + + +__attribute__ ((visibility("default"))) cef_value_t* cef_value_create(); + + + + + +typedef struct _cef_binary_value_t { + + + + cef_base_t base; + + + + + + + + int ( *is_valid)(struct _cef_binary_value_t* self); + + + + + int ( *is_owned)(struct _cef_binary_value_t* self); + + + + + + int ( *is_same)(struct _cef_binary_value_t* self, + struct _cef_binary_value_t* that); + + + + + + int ( *is_equal)(struct _cef_binary_value_t* self, + struct _cef_binary_value_t* that); + + + + + struct _cef_binary_value_t* ( *copy)( + struct _cef_binary_value_t* self); + + + + + size_t ( *get_size)(struct _cef_binary_value_t* self); + + + + + + size_t ( *get_data)(struct _cef_binary_value_t* self, + void* buffer, size_t buffer_size, size_t data_offset); +} cef_binary_value_t; + + + + + + +__attribute__ ((visibility("default"))) cef_binary_value_t* cef_binary_value_create(const void* data, + size_t data_size); + + + + + + +typedef struct _cef_dictionary_value_t { + + + + cef_base_t base; + + + + + + + + int ( *is_valid)(struct _cef_dictionary_value_t* self); + + + + + int ( *is_owned)(struct _cef_dictionary_value_t* self); + + + + + + int ( *is_read_only)(struct _cef_dictionary_value_t* self); + + + + + + + int ( *is_same)(struct _cef_dictionary_value_t* self, + struct _cef_dictionary_value_t* that); + + + + + + int ( *is_equal)(struct _cef_dictionary_value_t* self, + struct _cef_dictionary_value_t* that); + + + + + + struct _cef_dictionary_value_t* ( *copy)( + struct _cef_dictionary_value_t* self, int exclude_empty_children); + + + + + size_t ( *get_size)(struct _cef_dictionary_value_t* self); + + + + + int ( *clear)(struct _cef_dictionary_value_t* self); + + + + + int ( *has_key)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + int ( *get_keys)(struct _cef_dictionary_value_t* self, + cef_string_list_t keys); + + + + + + int ( *remove)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + cef_value_type_t ( *get_type)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + struct _cef_value_t* ( *get_value)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + + + + + int ( *get_bool)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + int ( *get_int)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + double ( *get_double)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + + cef_string_userfree_t ( *get_string)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + + + + + + struct _cef_binary_value_t* ( *get_binary)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + + + + + + + struct _cef_dictionary_value_t* ( *get_dictionary)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + + + + + + + struct _cef_list_value_t* ( *get_list)( + struct _cef_dictionary_value_t* self, const cef_string_t* key); + int ( *set_value)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, struct _cef_value_t* value); + + + + + + int ( *set_null)(struct _cef_dictionary_value_t* self, + const cef_string_t* key); + + + + + + int ( *set_bool)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, int value); + + + + + + int ( *set_int)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, int value); + + + + + + int ( *set_double)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, double value); + + + + + + int ( *set_string)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, const cef_string_t* value); + int ( *set_binary)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, struct _cef_binary_value_t* value); + int ( *set_dictionary)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, struct _cef_dictionary_value_t* value); + int ( *set_list)(struct _cef_dictionary_value_t* self, + const cef_string_t* key, struct _cef_list_value_t* value); +} cef_dictionary_value_t; + + + + + +__attribute__ ((visibility("default"))) cef_dictionary_value_t* cef_dictionary_value_create(); + + + + + +typedef struct _cef_list_value_t { + + + + cef_base_t base; + + + + + + + + int ( *is_valid)(struct _cef_list_value_t* self); + + + + + int ( *is_owned)(struct _cef_list_value_t* self); + + + + + + int ( *is_read_only)(struct _cef_list_value_t* self); + + + + + + + int ( *is_same)(struct _cef_list_value_t* self, + struct _cef_list_value_t* that); + + + + + + int ( *is_equal)(struct _cef_list_value_t* self, + struct _cef_list_value_t* that); + + + + + struct _cef_list_value_t* ( *copy)( + struct _cef_list_value_t* self); + + + + + + int ( *set_size)(struct _cef_list_value_t* self, size_t size); + + + + + size_t ( *get_size)(struct _cef_list_value_t* self); + + + + + int ( *clear)(struct _cef_list_value_t* self); + + + + + int ( *remove)(struct _cef_list_value_t* self, size_t index); + + + + + cef_value_type_t ( *get_type)(struct _cef_list_value_t* self, + size_t index); + struct _cef_value_t* ( *get_value)(struct _cef_list_value_t* self, + size_t index); + + + + + int ( *get_bool)(struct _cef_list_value_t* self, size_t index); + + + + + int ( *get_int)(struct _cef_list_value_t* self, size_t index); + + + + + double ( *get_double)(struct _cef_list_value_t* self, + size_t index); + + + + + + cef_string_userfree_t ( *get_string)( + struct _cef_list_value_t* self, size_t index); + + + + + + struct _cef_binary_value_t* ( *get_binary)( + struct _cef_list_value_t* self, size_t index); + + + + + + + struct _cef_dictionary_value_t* ( *get_dictionary)( + struct _cef_list_value_t* self, size_t index); + + + + + + + struct _cef_list_value_t* ( *get_list)( + struct _cef_list_value_t* self, size_t index); + int ( *set_value)(struct _cef_list_value_t* self, size_t index, + struct _cef_value_t* value); + + + + + + int ( *set_null)(struct _cef_list_value_t* self, size_t index); + + + + + + int ( *set_bool)(struct _cef_list_value_t* self, size_t index, + int value); + + + + + + int ( *set_int)(struct _cef_list_value_t* self, size_t index, + int value); + + + + + + int ( *set_double)(struct _cef_list_value_t* self, size_t index, + double value); + + + + + + int ( *set_string)(struct _cef_list_value_t* self, size_t index, + const cef_string_t* value); + int ( *set_binary)(struct _cef_list_value_t* self, size_t index, + struct _cef_binary_value_t* value); + int ( *set_dictionary)(struct _cef_list_value_t* self, + size_t index, struct _cef_dictionary_value_t* value); + int ( *set_list)(struct _cef_list_value_t* self, size_t index, + struct _cef_list_value_t* value); +} cef_list_value_t; + + + + + +__attribute__ ((visibility("default"))) cef_list_value_t* cef_list_value_create(); +typedef struct _cef_image_t { + + + + cef_base_t base; + + + + + int ( *is_empty)(struct _cef_image_t* self); + + + + + + int ( *is_same)(struct _cef_image_t* self, + struct _cef_image_t* that); + int ( *add_bitmap)(struct _cef_image_t* self, float scale_factor, + int pixel_width, int pixel_height, cef_color_type_t color_type, + cef_alpha_type_t alpha_type, const void* pixel_data, + size_t pixel_data_size); + + + + + + + int ( *add_png)(struct _cef_image_t* self, float scale_factor, + const void* png_data, size_t png_data_size); + + + + + + + int ( *add_jpeg)(struct _cef_image_t* self, float scale_factor, + const void* jpeg_data, size_t jpeg_data_size); + + + + + size_t ( *get_width)(struct _cef_image_t* self); + + + + + size_t ( *get_height)(struct _cef_image_t* self); + + + + + + int ( *has_representation)(struct _cef_image_t* self, + float scale_factor); + + + + + int ( *remove_representation)(struct _cef_image_t* self, + float scale_factor); + + + + + + + + int ( *get_representation_info)(struct _cef_image_t* self, + float scale_factor, float* actual_scale_factor, int* pixel_width, + int* pixel_height); + struct _cef_binary_value_t* ( *get_as_bitmap)( + struct _cef_image_t* self, float scale_factor, + cef_color_type_t color_type, cef_alpha_type_t alpha_type, + int* pixel_width, int* pixel_height); + struct _cef_binary_value_t* ( *get_as_png)( + struct _cef_image_t* self, float scale_factor, int with_transparency, + int* pixel_width, int* pixel_height); + struct _cef_binary_value_t* ( *get_as_jpeg)( + struct _cef_image_t* self, float scale_factor, int quality, + int* pixel_width, int* pixel_height); +} cef_image_t; + + + + + + +__attribute__ ((visibility("default"))) cef_image_t* cef_image_create(); +typedef struct _cef_x509cert_principal_t { + + + + cef_base_t base; + + + + + + + + cef_string_userfree_t ( *get_display_name)( + struct _cef_x509cert_principal_t* self); + + + + + + cef_string_userfree_t ( *get_common_name)( + struct _cef_x509cert_principal_t* self); + + + + + + cef_string_userfree_t ( *get_locality_name)( + struct _cef_x509cert_principal_t* self); + + + + + + cef_string_userfree_t ( *get_state_or_province_name)( + struct _cef_x509cert_principal_t* self); + + + + + + cef_string_userfree_t ( *get_country_name)( + struct _cef_x509cert_principal_t* self); + + + + + void ( *get_street_addresses)( + struct _cef_x509cert_principal_t* self, cef_string_list_t addresses); + + + + + void ( *get_organization_names)( + struct _cef_x509cert_principal_t* self, cef_string_list_t names); + + + + + void ( *get_organization_unit_names)( + struct _cef_x509cert_principal_t* self, cef_string_list_t names); + + + + + void ( *get_domain_components)( + struct _cef_x509cert_principal_t* self, cef_string_list_t components); +} cef_x509cert_principal_t; + + + + + +typedef struct _cef_x509certificate_t { + + + + cef_base_t base; + + + + + + + struct _cef_x509cert_principal_t* ( *get_subject)( + struct _cef_x509certificate_t* self); + + + + + struct _cef_x509cert_principal_t* ( *get_issuer)( + struct _cef_x509certificate_t* self); + + + + + + struct _cef_binary_value_t* ( *get_serial_number)( + struct _cef_x509certificate_t* self); + + + + + + cef_time_t ( *get_valid_start)( + struct _cef_x509certificate_t* self); + + + + + + cef_time_t ( *get_valid_expiry)( + struct _cef_x509certificate_t* self); + + + + + struct _cef_binary_value_t* ( *get_derencoded)( + struct _cef_x509certificate_t* self); + + + + + struct _cef_binary_value_t* ( *get_pemencoded)( + struct _cef_x509certificate_t* self); + + + + + + size_t ( *get_issuer_chain_size)( + struct _cef_x509certificate_t* self); + + + + + + + void ( *get_derencoded_issuer_chain)( + struct _cef_x509certificate_t* self, size_t* chainCount, + struct _cef_binary_value_t** chain); + + + + + + + void ( *get_pemencoded_issuer_chain)( + struct _cef_x509certificate_t* self, size_t* chainCount, + struct _cef_binary_value_t** chain); +} cef_x509certificate_t; +typedef struct _cef_sslstatus_t { + + + + cef_base_t base; + + + + + int ( *is_secure_connection)(struct _cef_sslstatus_t* self); + + + + + + cef_cert_status_t ( *get_cert_status)( + struct _cef_sslstatus_t* self); + + + + + cef_ssl_version_t ( *get_sslversion)( + struct _cef_sslstatus_t* self); + + + + + cef_ssl_content_status_t ( *get_content_status)( + struct _cef_sslstatus_t* self); + + + + + struct _cef_x509certificate_t* ( *get_x509certificate)( + struct _cef_sslstatus_t* self); +} cef_sslstatus_t; +typedef struct _cef_navigation_entry_t { + + + + cef_base_t base; + + + + + + int ( *is_valid)(struct _cef_navigation_entry_t* self); + + + + + + + cef_string_userfree_t ( *get_url)( + struct _cef_navigation_entry_t* self); + + + + + + cef_string_userfree_t ( *get_display_url)( + struct _cef_navigation_entry_t* self); + + + + + + cef_string_userfree_t ( *get_original_url)( + struct _cef_navigation_entry_t* self); + + + + + + cef_string_userfree_t ( *get_title)( + struct _cef_navigation_entry_t* self); + + + + + + cef_transition_type_t ( *get_transition_type)( + struct _cef_navigation_entry_t* self); + + + + + int ( *has_post_data)(struct _cef_navigation_entry_t* self); + + + + + + + cef_time_t ( *get_completion_time)( + struct _cef_navigation_entry_t* self); + + + + + + + int ( *get_http_status_code)( + struct _cef_navigation_entry_t* self); + + + + + struct _cef_sslstatus_t* ( *get_sslstatus)( + struct _cef_navigation_entry_t* self); +} cef_navigation_entry_t; +typedef struct _cef_process_message_t { + + + + cef_base_t base; + + + + + + int ( *is_valid)(struct _cef_process_message_t* self); + + + + + + int ( *is_read_only)(struct _cef_process_message_t* self); + + + + + struct _cef_process_message_t* ( *copy)( + struct _cef_process_message_t* self); + + + + + + cef_string_userfree_t ( *get_name)( + struct _cef_process_message_t* self); + + + + + struct _cef_list_value_t* ( *get_argument_list)( + struct _cef_process_message_t* self); +} cef_process_message_t; + + + + + +__attribute__ ((visibility("default"))) cef_process_message_t* cef_process_message_create( + const cef_string_t* name); +typedef struct _cef_callback_t { + + + + cef_base_t base; + + + + + void ( *cont)(struct _cef_callback_t* self); + + + + + void ( *cancel)(struct _cef_callback_t* self); +} cef_callback_t; + + + + + +typedef struct _cef_completion_callback_t { + + + + cef_base_t base; + + + + + void ( *on_complete)(struct _cef_completion_callback_t* self); +} cef_completion_callback_t; +struct _cef_cookie_visitor_t; +struct _cef_delete_cookies_callback_t; +struct _cef_set_cookie_callback_t; + + + + + +typedef struct _cef_cookie_manager_t { + + + + cef_base_t base; + + + + + + + + void ( *set_supported_schemes)(struct _cef_cookie_manager_t* self, + cef_string_list_t schemes, struct _cef_completion_callback_t* callback); + + + + + + + int ( *visit_all_cookies)(struct _cef_cookie_manager_t* self, + struct _cef_cookie_visitor_t* visitor); + int ( *visit_url_cookies)(struct _cef_cookie_manager_t* self, + const cef_string_t* url, int includeHttpOnly, + struct _cef_cookie_visitor_t* visitor); + int ( *set_cookie)(struct _cef_cookie_manager_t* self, + const cef_string_t* url, const struct _cef_cookie_t* cookie, + struct _cef_set_cookie_callback_t* callback); + int ( *delete_cookies)(struct _cef_cookie_manager_t* self, + const cef_string_t* url, const cef_string_t* cookie_name, + struct _cef_delete_cookies_callback_t* callback); + int ( *set_storage_path)(struct _cef_cookie_manager_t* self, + const cef_string_t* path, int persist_session_cookies, + struct _cef_completion_callback_t* callback); + + + + + + + int ( *flush_store)(struct _cef_cookie_manager_t* self, + struct _cef_completion_callback_t* callback); +} cef_cookie_manager_t; +__attribute__ ((visibility("default"))) cef_cookie_manager_t* cef_cookie_manager_get_global_manager( + struct _cef_completion_callback_t* callback); +__attribute__ ((visibility("default"))) cef_cookie_manager_t* cef_cookie_manager_create_manager( + const cef_string_t* path, int persist_session_cookies, + struct _cef_completion_callback_t* callback); + + + + + + +typedef struct _cef_cookie_visitor_t { + + + + cef_base_t base; + int ( *visit)(struct _cef_cookie_visitor_t* self, + const struct _cef_cookie_t* cookie, int count, int total, + int* deleteCookie); +} cef_cookie_visitor_t; + + + + + + +typedef struct _cef_set_cookie_callback_t { + + + + cef_base_t base; + + + + + + void ( *on_complete)(struct _cef_set_cookie_callback_t* self, + int success); +} cef_set_cookie_callback_t; + + + + + + +typedef struct _cef_delete_cookies_callback_t { + + + + cef_base_t base; + + + + + + void ( *on_complete)(struct _cef_delete_cookies_callback_t* self, + int num_deleted); +} cef_delete_cookies_callback_t; +struct _cef_browser_t; + + + + +typedef struct _cef_web_plugin_info_t { + + + + cef_base_t base; + + + + + + cef_string_userfree_t ( *get_name)( + struct _cef_web_plugin_info_t* self); + + + + + + cef_string_userfree_t ( *get_path)( + struct _cef_web_plugin_info_t* self); + + + + + + cef_string_userfree_t ( *get_version)( + struct _cef_web_plugin_info_t* self); + + + + + + cef_string_userfree_t ( *get_description)( + struct _cef_web_plugin_info_t* self); +} cef_web_plugin_info_t; + + + + + + +typedef struct _cef_web_plugin_info_visitor_t { + + + + cef_base_t base; + + + + + + + + int ( *visit)(struct _cef_web_plugin_info_visitor_t* self, + struct _cef_web_plugin_info_t* info, int count, int total); +} cef_web_plugin_info_visitor_t; + + + + + + +typedef struct _cef_web_plugin_unstable_callback_t { + + + + cef_base_t base; + + + + + + + void ( *is_unstable)( + struct _cef_web_plugin_unstable_callback_t* self, + const cef_string_t* path, int unstable); +} cef_web_plugin_unstable_callback_t; + + + + + + + +typedef struct _cef_register_cdm_callback_t { + + + + cef_base_t base; + + + + + + + + void ( *on_cdm_registration_complete)( + struct _cef_register_cdm_callback_t* self, + cef_cdm_registration_error_t result, const cef_string_t* error_message); +} cef_register_cdm_callback_t; + + + + + + +__attribute__ ((visibility("default"))) void cef_visit_web_plugin_info( + cef_web_plugin_info_visitor_t* visitor); + + + + + + +__attribute__ ((visibility("default"))) void cef_refresh_web_plugins(); + + + + + + +__attribute__ ((visibility("default"))) void cef_unregister_internal_web_plugin(const cef_string_t* path); + + + + + +__attribute__ ((visibility("default"))) void cef_register_web_plugin_crash(const cef_string_t* path); + + + + + +__attribute__ ((visibility("default"))) void cef_is_web_plugin_unstable(const cef_string_t* path, + cef_web_plugin_unstable_callback_t* callback); +__attribute__ ((visibility("default"))) void cef_register_widevine_cdm(const cef_string_t* path, + cef_register_cdm_callback_t* callback); +typedef struct _cef_request_context_handler_t { + + + + cef_base_t base; + + + + + + + struct _cef_cookie_manager_t* ( *get_cookie_manager)( + struct _cef_request_context_handler_t* self); + int ( *on_before_plugin_load)( + struct _cef_request_context_handler_t* self, + const cef_string_t* mime_type, const cef_string_t* plugin_url, + const cef_string_t* top_origin_url, + struct _cef_web_plugin_info_t* plugin_info, + cef_plugin_policy_t* plugin_policy); +} cef_request_context_handler_t; + + + + + + +struct _cef_scheme_handler_factory_t; + + + + +typedef struct _cef_resolve_callback_t { + + + + cef_base_t base; + + + + + + + void ( *on_resolve_completed)( + struct _cef_resolve_callback_t* self, cef_errorcode_t result, + cef_string_list_t resolved_ips); +} cef_resolve_callback_t; +typedef struct _cef_request_context_t { + + + + cef_base_t base; + + + + + + int ( *is_same)(struct _cef_request_context_t* self, + struct _cef_request_context_t* other); + + + + + + int ( *is_sharing_with)(struct _cef_request_context_t* self, + struct _cef_request_context_t* other); + + + + + + + int ( *is_global)(struct _cef_request_context_t* self); + + + + + struct _cef_request_context_handler_t* ( *get_handler)( + struct _cef_request_context_t* self); + + + + + + + cef_string_userfree_t ( *get_cache_path)( + struct _cef_request_context_t* self); + struct _cef_cookie_manager_t* ( *get_default_cookie_manager)( + struct _cef_request_context_t* self, + struct _cef_completion_callback_t* callback); + int ( *register_scheme_handler_factory)( + struct _cef_request_context_t* self, const cef_string_t* scheme_name, + const cef_string_t* domain_name, + struct _cef_scheme_handler_factory_t* factory); + + + + + + int ( *clear_scheme_handler_factories)( + struct _cef_request_context_t* self); + void ( *purge_plugin_list_cache)( + struct _cef_request_context_t* self, int reload_pages); + + + + + + int ( *has_preference)(struct _cef_request_context_t* self, + const cef_string_t* name); + struct _cef_value_t* ( *get_preference)( + struct _cef_request_context_t* self, const cef_string_t* name); + struct _cef_dictionary_value_t* ( *get_all_preferences)( + struct _cef_request_context_t* self, int include_defaults); + + + + + + + + int ( *can_set_preference)(struct _cef_request_context_t* self, + const cef_string_t* name); + int ( *set_preference)(struct _cef_request_context_t* self, + const cef_string_t* name, struct _cef_value_t* value, + cef_string_t* error); + void ( *clear_certificate_exceptions)( + struct _cef_request_context_t* self, + struct _cef_completion_callback_t* callback); + + + + + + + + void ( *close_all_connections)( + struct _cef_request_context_t* self, + struct _cef_completion_callback_t* callback); + + + + + + void ( *resolve_host)(struct _cef_request_context_t* self, + const cef_string_t* origin, struct _cef_resolve_callback_t* callback); + + + + + + + + cef_errorcode_t ( *resolve_host_cached)( + struct _cef_request_context_t* self, const cef_string_t* origin, + cef_string_list_t resolved_ips); +} cef_request_context_t; + + + + + +__attribute__ ((visibility("default"))) cef_request_context_t* cef_request_context_get_global_context(); + + + + + +__attribute__ ((visibility("default"))) cef_request_context_t* cef_request_context_create_context( + const struct _cef_request_context_settings_t* settings, + struct _cef_request_context_handler_t* handler); + + + + + +__attribute__ ((visibility("default"))) cef_request_context_t* cef_create_context_shared( + cef_request_context_t* other, + struct _cef_request_context_handler_t* handler); + + + + + +struct _cef_browser_host_t; +struct _cef_client_t; + + + + + + + +typedef struct _cef_browser_t { + + + + cef_base_t base; + + + + + + struct _cef_browser_host_t* ( *get_host)( + struct _cef_browser_t* self); + + + + + int ( *can_go_back)(struct _cef_browser_t* self); + + + + + void ( *go_back)(struct _cef_browser_t* self); + + + + + int ( *can_go_forward)(struct _cef_browser_t* self); + + + + + void ( *go_forward)(struct _cef_browser_t* self); + + + + + int ( *is_loading)(struct _cef_browser_t* self); + + + + + void ( *reload)(struct _cef_browser_t* self); + + + + + void ( *reload_ignore_cache)(struct _cef_browser_t* self); + + + + + void ( *stop_load)(struct _cef_browser_t* self); + + + + + int ( *get_identifier)(struct _cef_browser_t* self); + + + + + + int ( *is_same)(struct _cef_browser_t* self, + struct _cef_browser_t* that); + + + + + int ( *is_popup)(struct _cef_browser_t* self); + + + + + int ( *has_document)(struct _cef_browser_t* self); + + + + + struct _cef_frame_t* ( *get_main_frame)( + struct _cef_browser_t* self); + + + + + struct _cef_frame_t* ( *get_focused_frame)( + struct _cef_browser_t* self); + + + + + struct _cef_frame_t* ( *get_frame_byident)( + struct _cef_browser_t* self, int64 identifier); + + + + + struct _cef_frame_t* ( *get_frame)(struct _cef_browser_t* self, + const cef_string_t* name); + + + + + size_t ( *get_frame_count)(struct _cef_browser_t* self); + + + + + void ( *get_frame_identifiers)(struct _cef_browser_t* self, + size_t* identifiersCount, int64* identifiers); + + + + + void ( *get_frame_names)(struct _cef_browser_t* self, + cef_string_list_t names); + + + + + + int ( *send_process_message)(struct _cef_browser_t* self, + cef_process_id_t target_process, + struct _cef_process_message_t* message); +} cef_browser_t; + + + + + + +typedef struct _cef_run_file_dialog_callback_t { + + + + cef_base_t base; + void ( *on_file_dialog_dismissed)( + struct _cef_run_file_dialog_callback_t* self, int selected_accept_filter, + cef_string_list_t file_paths); +} cef_run_file_dialog_callback_t; + + + + + + +typedef struct _cef_navigation_entry_visitor_t { + + + + cef_base_t base; + int ( *visit)(struct _cef_navigation_entry_visitor_t* self, + struct _cef_navigation_entry_t* entry, int current, int index, + int total); +} cef_navigation_entry_visitor_t; + + + + + + +typedef struct _cef_pdf_print_callback_t { + + + + cef_base_t base; + + + + + + + void ( *on_pdf_print_finished)( + struct _cef_pdf_print_callback_t* self, const cef_string_t* path, + int ok); +} cef_pdf_print_callback_t; + + + + + + +typedef struct _cef_download_image_callback_t { + + + + cef_base_t base; + + + + + + + + void ( *on_download_image_finished)( + struct _cef_download_image_callback_t* self, + const cef_string_t* image_url, int http_status_code, + struct _cef_image_t* image); +} cef_download_image_callback_t; +typedef struct _cef_browser_host_t { + + + + cef_base_t base; + + + + + struct _cef_browser_t* ( *get_browser)( + struct _cef_browser_host_t* self); + void ( *close_browser)(struct _cef_browser_host_t* self, + int force_close); + int ( *try_close_browser)(struct _cef_browser_host_t* self); + + + + + void ( *set_focus)(struct _cef_browser_host_t* self, int focus); + + + + + + + void* ( *get_window_handle)( + struct _cef_browser_host_t* self); + + + + + + + + void* ( *get_opener_window_handle)( + struct _cef_browser_host_t* self); + + + + + int ( *has_view)(struct _cef_browser_host_t* self); + + + + + struct _cef_client_t* ( *get_client)( + struct _cef_browser_host_t* self); + + + + + struct _cef_request_context_t* ( *get_request_context)( + struct _cef_browser_host_t* self); + + + + + + double ( *get_zoom_level)(struct _cef_browser_host_t* self); + + + + + + + void ( *set_zoom_level)(struct _cef_browser_host_t* self, + double zoomLevel); + void ( *run_file_dialog)(struct _cef_browser_host_t* self, + cef_file_dialog_mode_t mode, const cef_string_t* title, + const cef_string_t* default_file_path, cef_string_list_t accept_filters, + int selected_accept_filter, + struct _cef_run_file_dialog_callback_t* callback); + + + + + void ( *start_download)(struct _cef_browser_host_t* self, + const cef_string_t* url); + void ( *download_image)(struct _cef_browser_host_t* self, + const cef_string_t* image_url, int is_favicon, uint32 max_image_size, + int bypass_cache, struct _cef_download_image_callback_t* callback); + + + + + void ( *print)(struct _cef_browser_host_t* self); + + + + + + + + void ( *print_to_pdf)(struct _cef_browser_host_t* self, + const cef_string_t* path, + const struct _cef_pdf_print_settings_t* settings, + struct _cef_pdf_print_callback_t* callback); + void ( *find)(struct _cef_browser_host_t* self, int identifier, + const cef_string_t* searchText, int forward, int matchCase, + int findNext); + + + + + void ( *stop_finding)(struct _cef_browser_host_t* self, + int clearSelection); + void ( *show_dev_tools)(struct _cef_browser_host_t* self, + const struct _cef_window_info_t* windowInfo, + struct _cef_client_t* client, + const struct _cef_browser_settings_t* settings, + const cef_point_t* inspect_element_at); + + + + + void ( *close_dev_tools)(struct _cef_browser_host_t* self); + + + + + + int ( *has_dev_tools)(struct _cef_browser_host_t* self); + + + + + + + + void ( *get_navigation_entries)(struct _cef_browser_host_t* self, + struct _cef_navigation_entry_visitor_t* visitor, int current_only); + + + + + void ( *set_mouse_cursor_change_disabled)( + struct _cef_browser_host_t* self, int disabled); + + + + + int ( *is_mouse_cursor_change_disabled)( + struct _cef_browser_host_t* self); + + + + + + void ( *replace_misspelling)(struct _cef_browser_host_t* self, + const cef_string_t* word); + + + + + void ( *add_word_to_dictionary)(struct _cef_browser_host_t* self, + const cef_string_t* word); + + + + + int ( *is_window_rendering_disabled)( + struct _cef_browser_host_t* self); + + + + + + + + void ( *was_resized)(struct _cef_browser_host_t* self); + + + + + + + void ( *was_hidden)(struct _cef_browser_host_t* self, int hidden); + void ( *notify_screen_info_changed)( + struct _cef_browser_host_t* self); + + + + + + + void ( *invalidate)(struct _cef_browser_host_t* self, + cef_paint_element_type_t type); + + + + + void ( *send_key_event)(struct _cef_browser_host_t* self, + const struct _cef_key_event_t* event); + + + + + + void ( *send_mouse_click_event)(struct _cef_browser_host_t* self, + const struct _cef_mouse_event_t* event, cef_mouse_button_type_t type, + int mouseUp, int clickCount); + + + + + + void ( *send_mouse_move_event)(struct _cef_browser_host_t* self, + const struct _cef_mouse_event_t* event, int mouseLeave); + void ( *send_mouse_wheel_event)(struct _cef_browser_host_t* self, + const struct _cef_mouse_event_t* event, int deltaX, int deltaY); + + + + + void ( *send_focus_event)(struct _cef_browser_host_t* self, + int setFocus); + + + + + void ( *send_capture_lost_event)( + struct _cef_browser_host_t* self); + + + + + + void ( *notify_move_or_resize_started)( + struct _cef_browser_host_t* self); + int ( *get_windowless_frame_rate)( + struct _cef_browser_host_t* self); + void ( *set_windowless_frame_rate)( + struct _cef_browser_host_t* self, int frame_rate); + void ( *ime_set_composition)(struct _cef_browser_host_t* self, + const cef_string_t* text, size_t underlinesCount, + cef_composition_underline_t const* underlines, + const cef_range_t* replacement_range, + const cef_range_t* selection_range); + void ( *ime_commit_text)(struct _cef_browser_host_t* self, + const cef_string_t* text, const cef_range_t* replacement_range, + int relative_cursor_pos); + + + + + + + + void ( *ime_finish_composing_text)( + struct _cef_browser_host_t* self, int keep_selection); + + + + + + + void ( *ime_cancel_composition)(struct _cef_browser_host_t* self); + void ( *drag_target_drag_enter)(struct _cef_browser_host_t* self, + struct _cef_drag_data_t* drag_data, + const struct _cef_mouse_event_t* event, + cef_drag_operations_mask_t allowed_ops); + + + + + + + + void ( *drag_target_drag_over)(struct _cef_browser_host_t* self, + const struct _cef_mouse_event_t* event, + cef_drag_operations_mask_t allowed_ops); + + + + + + + void ( *drag_target_drag_leave)(struct _cef_browser_host_t* self); + void ( *drag_target_drop)(struct _cef_browser_host_t* self, + const struct _cef_mouse_event_t* event); + void ( *drag_source_ended_at)(struct _cef_browser_host_t* self, + int x, int y, cef_drag_operations_mask_t op); + void ( *drag_source_system_drag_ended)( + struct _cef_browser_host_t* self); + + + + + + struct _cef_navigation_entry_t* ( *get_visible_navigation_entry)( + struct _cef_browser_host_t* self); +} cef_browser_host_t; +__attribute__ ((visibility("default"))) int cef_browser_host_create_browser( + const cef_window_info_t* windowInfo, struct _cef_client_t* client, + const cef_string_t* url, const struct _cef_browser_settings_t* settings, + struct _cef_request_context_t* request_context); + + + + + + +__attribute__ ((visibility("default"))) cef_browser_t* cef_browser_host_create_browser_sync( + const cef_window_info_t* windowInfo, struct _cef_client_t* client, + const cef_string_t* url, const struct _cef_browser_settings_t* settings, + struct _cef_request_context_t* request_context); +typedef struct _cef_print_settings_t { + + + + cef_base_t base; + + + + + + int ( *is_valid)(struct _cef_print_settings_t* self); + + + + + + int ( *is_read_only)(struct _cef_print_settings_t* self); + + + + + struct _cef_print_settings_t* ( *copy)( + struct _cef_print_settings_t* self); + + + + + void ( *set_orientation)(struct _cef_print_settings_t* self, + int landscape); + + + + + int ( *is_landscape)(struct _cef_print_settings_t* self); + + + + + + + void ( *set_printer_printable_area)( + struct _cef_print_settings_t* self, + const cef_size_t* physical_size_device_units, + const cef_rect_t* printable_area_device_units, + int landscape_needs_flip); + + + + + void ( *set_device_name)(struct _cef_print_settings_t* self, + const cef_string_t* name); + + + + + + cef_string_userfree_t ( *get_device_name)( + struct _cef_print_settings_t* self); + + + + + void ( *set_dpi)(struct _cef_print_settings_t* self, int dpi); + + + + + int ( *get_dpi)(struct _cef_print_settings_t* self); + + + + + void ( *set_page_ranges)(struct _cef_print_settings_t* self, + size_t rangesCount, cef_range_t const* ranges); + + + + + size_t ( *get_page_ranges_count)( + struct _cef_print_settings_t* self); + + + + + void ( *get_page_ranges)(struct _cef_print_settings_t* self, + size_t* rangesCount, cef_range_t* ranges); + + + + + void ( *set_selection_only)(struct _cef_print_settings_t* self, + int selection_only); + + + + + int ( *is_selection_only)(struct _cef_print_settings_t* self); + + + + + void ( *set_collate)(struct _cef_print_settings_t* self, + int collate); + + + + + int ( *will_collate)(struct _cef_print_settings_t* self); + + + + + void ( *set_color_model)(struct _cef_print_settings_t* self, + cef_color_model_t model); + + + + + cef_color_model_t ( *get_color_model)( + struct _cef_print_settings_t* self); + + + + + void ( *set_copies)(struct _cef_print_settings_t* self, + int copies); + + + + + int ( *get_copies)(struct _cef_print_settings_t* self); + + + + + void ( *set_duplex_mode)(struct _cef_print_settings_t* self, + cef_duplex_mode_t mode); + + + + + cef_duplex_mode_t ( *get_duplex_mode)( + struct _cef_print_settings_t* self); +} cef_print_settings_t; + + + + + +__attribute__ ((visibility("default"))) cef_print_settings_t* cef_print_settings_create(); +typedef struct _cef_print_dialog_callback_t { + + + + cef_base_t base; + + + + + void ( *cont)(struct _cef_print_dialog_callback_t* self, + struct _cef_print_settings_t* settings); + + + + + void ( *cancel)(struct _cef_print_dialog_callback_t* self); +} cef_print_dialog_callback_t; + + + + + +typedef struct _cef_print_job_callback_t { + + + + cef_base_t base; + + + + + void ( *cont)(struct _cef_print_job_callback_t* self); +} cef_print_job_callback_t; + + + + + + +typedef struct _cef_print_handler_t { + + + + cef_base_t base; + + + + + + + + void ( *on_print_start)(struct _cef_print_handler_t* self, + struct _cef_browser_t* browser); + + + + + + + void ( *on_print_settings)(struct _cef_print_handler_t* self, + struct _cef_print_settings_t* settings, int get_defaults); + + + + + + + int ( *on_print_dialog)(struct _cef_print_handler_t* self, + int has_selection, struct _cef_print_dialog_callback_t* callback); + + + + + + + int ( *on_print_job)(struct _cef_print_handler_t* self, + const cef_string_t* document_name, const cef_string_t* pdf_file_path, + struct _cef_print_job_callback_t* callback); + + + + + void ( *on_print_reset)(struct _cef_print_handler_t* self); + + + + + + cef_size_t ( *get_pdf_paper_size)( + struct _cef_print_handler_t* self, int device_units_per_inch); +} cef_print_handler_t; +typedef struct _cef_browser_process_handler_t { + + + + cef_base_t base; + + + + + + void ( *on_context_initialized)( + struct _cef_browser_process_handler_t* self); + void ( *on_before_child_process_launch)( + struct _cef_browser_process_handler_t* self, + struct _cef_command_line_t* command_line); + void ( *on_render_process_thread_created)( + struct _cef_browser_process_handler_t* self, + struct _cef_list_value_t* extra_info); + + + + + + struct _cef_print_handler_t* ( *get_print_handler)( + struct _cef_browser_process_handler_t* self); + void ( *on_schedule_message_pump_work)( + struct _cef_browser_process_handler_t* self, int64 delay_ms); +} cef_browser_process_handler_t; + +typedef struct _cef_load_handler_t { + + + + cef_base_t base; + void ( *on_loading_state_change)(struct _cef_load_handler_t* self, + struct _cef_browser_t* browser, int isLoading, int canGoBack, + int canGoForward); + void ( *on_load_start)(struct _cef_load_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + cef_transition_type_t transition_type); + void ( *on_load_end)(struct _cef_load_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + int httpStatusCode); + + + + + + + + void ( *on_load_error)(struct _cef_load_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + cef_errorcode_t errorCode, const cef_string_t* errorText, + const cef_string_t* failedUrl); +} cef_load_handler_t; + +typedef struct _cef_task_t { + + + + cef_base_t base; + + + + + void ( *execute)(struct _cef_task_t* self); +} cef_task_t; +typedef struct _cef_task_runner_t { + + + + cef_base_t base; + + + + + + int ( *is_same)(struct _cef_task_runner_t* self, + struct _cef_task_runner_t* that); + + + + + int ( *belongs_to_current_thread)( + struct _cef_task_runner_t* self); + + + + + int ( *belongs_to_thread)(struct _cef_task_runner_t* self, + cef_thread_id_t threadId); + + + + + + int ( *post_task)(struct _cef_task_runner_t* self, + struct _cef_task_t* task); + + + + + + + + int ( *post_delayed_task)(struct _cef_task_runner_t* self, + struct _cef_task_t* task, int64 delay_ms); +} cef_task_runner_t; + + + + + + + +__attribute__ ((visibility("default"))) cef_task_runner_t* cef_task_runner_get_for_current_thread(); + + + + +__attribute__ ((visibility("default"))) cef_task_runner_t* cef_task_runner_get_for_thread( + cef_thread_id_t threadId); + + + + + + +__attribute__ ((visibility("default"))) int cef_currently_on(cef_thread_id_t threadId); + + + + + +__attribute__ ((visibility("default"))) int cef_post_task(cef_thread_id_t threadId, cef_task_t* task); + + + + + + +__attribute__ ((visibility("default"))) int cef_post_delayed_task(cef_thread_id_t threadId, cef_task_t* task, + int64 delay_ms); + + + + + +struct _cef_v8exception_t; +struct _cef_v8handler_t; +struct _cef_v8stack_frame_t; +struct _cef_v8value_t; +typedef struct _cef_v8context_t { + + + + cef_base_t base; + + + + + + + struct _cef_task_runner_t* ( *get_task_runner)( + struct _cef_v8context_t* self); + + + + + + + int ( *is_valid)(struct _cef_v8context_t* self); + + + + + + struct _cef_browser_t* ( *get_browser)( + struct _cef_v8context_t* self); + + + + + + struct _cef_frame_t* ( *get_frame)(struct _cef_v8context_t* self); + + + + + + struct _cef_v8value_t* ( *get_global)( + struct _cef_v8context_t* self); + int ( *enter)(struct _cef_v8context_t* self); + + + + + + int ( *exit)(struct _cef_v8context_t* self); + + + + + + int ( *is_same)(struct _cef_v8context_t* self, + struct _cef_v8context_t* that); + int ( *eval)(struct _cef_v8context_t* self, + const cef_string_t* code, const cef_string_t* script_url, int start_line, + struct _cef_v8value_t** retval, struct _cef_v8exception_t** exception); +} cef_v8context_t; + + + + + +__attribute__ ((visibility("default"))) cef_v8context_t* cef_v8context_get_current_context(); + + + + +__attribute__ ((visibility("default"))) cef_v8context_t* cef_v8context_get_entered_context(); + + + + +__attribute__ ((visibility("default"))) int cef_v8context_in_context(); + + + + + + + +typedef struct _cef_v8handler_t { + + + + cef_base_t base; + int ( *execute)(struct _cef_v8handler_t* self, + const cef_string_t* name, struct _cef_v8value_t* object, + size_t argumentsCount, struct _cef_v8value_t* const* arguments, + struct _cef_v8value_t** retval, cef_string_t* exception); +} cef_v8handler_t; +typedef struct _cef_v8accessor_t { + + + + cef_base_t base; + int ( *get)(struct _cef_v8accessor_t* self, + const cef_string_t* name, struct _cef_v8value_t* object, + struct _cef_v8value_t** retval, cef_string_t* exception); + int ( *set)(struct _cef_v8accessor_t* self, + const cef_string_t* name, struct _cef_v8value_t* object, + struct _cef_v8value_t* value, cef_string_t* exception); +} cef_v8accessor_t; +typedef struct _cef_v8interceptor_t { + + + + cef_base_t base; + int ( *get_byname)(struct _cef_v8interceptor_t* self, + const cef_string_t* name, struct _cef_v8value_t* object, + struct _cef_v8value_t** retval, cef_string_t* exception); + int ( *get_byindex)(struct _cef_v8interceptor_t* self, int index, + struct _cef_v8value_t* object, struct _cef_v8value_t** retval, + cef_string_t* exception); + int ( *set_byname)(struct _cef_v8interceptor_t* self, + const cef_string_t* name, struct _cef_v8value_t* object, + struct _cef_v8value_t* value, cef_string_t* exception); + int ( *set_byindex)(struct _cef_v8interceptor_t* self, int index, + struct _cef_v8value_t* object, struct _cef_v8value_t* value, + cef_string_t* exception); +} cef_v8interceptor_t; + + + + + + +typedef struct _cef_v8exception_t { + + + + cef_base_t base; + + + + + + cef_string_userfree_t ( *get_message)( + struct _cef_v8exception_t* self); + + + + + + cef_string_userfree_t ( *get_source_line)( + struct _cef_v8exception_t* self); + + + + + + + cef_string_userfree_t ( *get_script_resource_name)( + struct _cef_v8exception_t* self); + + + + + + int ( *get_line_number)(struct _cef_v8exception_t* self); + + + + + + int ( *get_start_position)(struct _cef_v8exception_t* self); + + + + + + int ( *get_end_position)(struct _cef_v8exception_t* self); + + + + + + int ( *get_start_column)(struct _cef_v8exception_t* self); + + + + + + int ( *get_end_column)(struct _cef_v8exception_t* self); +} cef_v8exception_t; +typedef struct _cef_v8value_t { + + + + cef_base_t base; + + + + + + + int ( *is_valid)(struct _cef_v8value_t* self); + + + + + int ( *is_undefined)(struct _cef_v8value_t* self); + + + + + int ( *is_null)(struct _cef_v8value_t* self); + + + + + int ( *is_bool)(struct _cef_v8value_t* self); + + + + + int ( *is_int)(struct _cef_v8value_t* self); + + + + + int ( *is_uint)(struct _cef_v8value_t* self); + + + + + int ( *is_double)(struct _cef_v8value_t* self); + + + + + int ( *is_date)(struct _cef_v8value_t* self); + + + + + int ( *is_string)(struct _cef_v8value_t* self); + + + + + int ( *is_object)(struct _cef_v8value_t* self); + + + + + int ( *is_array)(struct _cef_v8value_t* self); + + + + + int ( *is_function)(struct _cef_v8value_t* self); + + + + + + int ( *is_same)(struct _cef_v8value_t* self, + struct _cef_v8value_t* that); + + + + + int ( *get_bool_value)(struct _cef_v8value_t* self); + + + + + int32 ( *get_int_value)(struct _cef_v8value_t* self); + + + + + uint32 ( *get_uint_value)(struct _cef_v8value_t* self); + + + + + double ( *get_double_value)(struct _cef_v8value_t* self); + + + + + cef_time_t ( *get_date_value)(struct _cef_v8value_t* self); + + + + + + cef_string_userfree_t ( *get_string_value)( + struct _cef_v8value_t* self); + int ( *is_user_created)(struct _cef_v8value_t* self); + + + + + + int ( *has_exception)(struct _cef_v8value_t* self); + + + + + + struct _cef_v8exception_t* ( *get_exception)( + struct _cef_v8value_t* self); + + + + + int ( *clear_exception)(struct _cef_v8value_t* self); + + + + + + int ( *will_rethrow_exceptions)(struct _cef_v8value_t* self); + int ( *set_rethrow_exceptions)(struct _cef_v8value_t* self, + int rethrow); + + + + + int ( *has_value_bykey)(struct _cef_v8value_t* self, + const cef_string_t* key); + + + + + int ( *has_value_byindex)(struct _cef_v8value_t* self, int index); + + + + + + + + int ( *delete_value_bykey)(struct _cef_v8value_t* self, + const cef_string_t* key); + + + + + + + + int ( *delete_value_byindex)(struct _cef_v8value_t* self, + int index); + + + + + + struct _cef_v8value_t* ( *get_value_bykey)( + struct _cef_v8value_t* self, const cef_string_t* key); + + + + + + struct _cef_v8value_t* ( *get_value_byindex)( + struct _cef_v8value_t* self, int index); + + + + + + + + int ( *set_value_bykey)(struct _cef_v8value_t* self, + const cef_string_t* key, struct _cef_v8value_t* value, + cef_v8_propertyattribute_t attribute); + + + + + + + + int ( *set_value_byindex)(struct _cef_v8value_t* self, int index, + struct _cef_v8value_t* value); + int ( *set_value_byaccessor)(struct _cef_v8value_t* self, + const cef_string_t* key, cef_v8_accesscontrol_t settings, + cef_v8_propertyattribute_t attribute); + + + + + + int ( *get_keys)(struct _cef_v8value_t* self, + cef_string_list_t keys); + + + + + + + int ( *set_user_data)(struct _cef_v8value_t* self, + struct _cef_base_t* user_data); + + + + + struct _cef_base_t* ( *get_user_data)( + struct _cef_v8value_t* self); + + + + + + int ( *get_externally_allocated_memory)( + struct _cef_v8value_t* self); + int ( *adjust_externally_allocated_memory)( + struct _cef_v8value_t* self, int change_in_bytes); + + + + + + + + int ( *get_array_length)(struct _cef_v8value_t* self); + cef_string_userfree_t ( *get_function_name)( + struct _cef_v8value_t* self); + + + + + struct _cef_v8handler_t* ( *get_function_handler)( + struct _cef_v8value_t* self); + struct _cef_v8value_t* ( *execute_function)( + struct _cef_v8value_t* self, struct _cef_v8value_t* object, + size_t argumentsCount, struct _cef_v8value_t* const* arguments); + struct _cef_v8value_t* ( *execute_function_with_context)( + struct _cef_v8value_t* self, struct _cef_v8context_t* context, + struct _cef_v8value_t* object, size_t argumentsCount, + struct _cef_v8value_t* const* arguments); +} cef_v8value_t; + + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_undefined(); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_null(); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_bool(int value); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_int(int32 value); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_uint(uint32 value); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_double(double value); + + + + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_date(const cef_time_t* date); + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_string(const cef_string_t* value); +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_object(cef_v8accessor_t* accessor, + cef_v8interceptor_t* interceptor); +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_array(int length); + + + + + + + +__attribute__ ((visibility("default"))) cef_v8value_t* cef_v8value_create_function(const cef_string_t* name, + cef_v8handler_t* handler); +typedef struct _cef_v8stack_trace_t { + + + + cef_base_t base; + + + + + + + int ( *is_valid)(struct _cef_v8stack_trace_t* self); + + + + + int ( *get_frame_count)(struct _cef_v8stack_trace_t* self); + + + + + struct _cef_v8stack_frame_t* ( *get_frame)( + struct _cef_v8stack_trace_t* self, int index); +} cef_v8stack_trace_t; + + + + + + +__attribute__ ((visibility("default"))) cef_v8stack_trace_t* cef_v8stack_trace_get_current(int frame_limit); +typedef struct _cef_v8stack_frame_t { + + + + cef_base_t base; + + + + + + + int ( *is_valid)(struct _cef_v8stack_frame_t* self); + + + + + + cef_string_userfree_t ( *get_script_name)( + struct _cef_v8stack_frame_t* self); + + + + + + + + cef_string_userfree_t ( *get_script_name_or_source_url)( + struct _cef_v8stack_frame_t* self); + + + + + + cef_string_userfree_t ( *get_function_name)( + struct _cef_v8stack_frame_t* self); + + + + + int ( *get_line_number)(struct _cef_v8stack_frame_t* self); + + + + + + int ( *get_column)(struct _cef_v8stack_frame_t* self); + + + + + int ( *is_eval)(struct _cef_v8stack_frame_t* self); + + + + + int ( *is_constructor)(struct _cef_v8stack_frame_t* self); +} cef_v8stack_frame_t; +__attribute__ ((visibility("default"))) int cef_register_extension(const cef_string_t* extension_name, + const cef_string_t* javascript_code, cef_v8handler_t* handler); +typedef struct _cef_render_process_handler_t { + + + + cef_base_t base; + + + + + + + + void ( *on_render_thread_created)( + struct _cef_render_process_handler_t* self, + struct _cef_list_value_t* extra_info); + + + + + void ( *on_web_kit_initialized)( + struct _cef_render_process_handler_t* self); + + + + + + + void ( *on_browser_created)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser); + + + + + void ( *on_browser_destroyed)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser); + + + + + struct _cef_load_handler_t* ( *get_load_handler)( + struct _cef_render_process_handler_t* self); + + + + + + + int ( *on_before_navigation)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_request_t* request, cef_navigation_type_t navigation_type, + int is_redirect); + void ( *on_context_created)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_v8context_t* context); + + + + + + void ( *on_context_released)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_v8context_t* context); + + + + + + + void ( *on_uncaught_exception)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_v8context_t* context, struct _cef_v8exception_t* exception, + struct _cef_v8stack_trace_t* stackTrace); + void ( *on_focused_node_changed)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_domnode_t* node); + + + + + + + int ( *on_process_message_received)( + struct _cef_render_process_handler_t* self, + struct _cef_browser_t* browser, cef_process_id_t source_process, + struct _cef_process_message_t* message); +} cef_render_process_handler_t; +typedef struct _cef_resource_bundle_handler_t { + + + + cef_base_t base; + + + + + + + + int ( *get_localized_string)( + struct _cef_resource_bundle_handler_t* self, int string_id, + cef_string_t* string); + int ( *get_data_resource)( + struct _cef_resource_bundle_handler_t* self, int resource_id, void** data, + size_t* data_size); + int ( *get_data_resource_for_scale)( + struct _cef_resource_bundle_handler_t* self, int resource_id, + cef_scale_factor_t scale_factor, void** data, size_t* data_size); +} cef_resource_bundle_handler_t; +typedef struct _cef_response_t { + + + + cef_base_t base; + + + + + int ( *is_read_only)(struct _cef_response_t* self); + + + + + cef_errorcode_t ( *get_error)(struct _cef_response_t* self); + + + + + + void ( *set_error)(struct _cef_response_t* self, + cef_errorcode_t error); + + + + + int ( *get_status)(struct _cef_response_t* self); + + + + + void ( *set_status)(struct _cef_response_t* self, int status); + + + + + + cef_string_userfree_t ( *get_status_text)( + struct _cef_response_t* self); + + + + + void ( *set_status_text)(struct _cef_response_t* self, + const cef_string_t* statusText); + + + + + + cef_string_userfree_t ( *get_mime_type)( + struct _cef_response_t* self); + + + + + void ( *set_mime_type)(struct _cef_response_t* self, + const cef_string_t* mimeType); + + + + + + cef_string_userfree_t ( *get_header)(struct _cef_response_t* self, + const cef_string_t* name); + + + + + void ( *get_header_map)(struct _cef_response_t* self, + cef_string_multimap_t headerMap); + + + + + void ( *set_header_map)(struct _cef_response_t* self, + cef_string_multimap_t headerMap); +} cef_response_t; + + + + + +__attribute__ ((visibility("default"))) cef_response_t* cef_response_create(); +typedef struct _cef_resource_handler_t { + + + + cef_base_t base; + int ( *process_request)(struct _cef_resource_handler_t* self, + struct _cef_request_t* request, struct _cef_callback_t* callback); + void ( *get_response_headers)( + struct _cef_resource_handler_t* self, struct _cef_response_t* response, + int64* response_length, cef_string_t* redirectUrl); + int ( *read_response)(struct _cef_resource_handler_t* self, + void* data_out, int bytes_to_read, int* bytes_read, + struct _cef_callback_t* callback); + + + + + + + int ( *can_get_cookie)(struct _cef_resource_handler_t* self, + const struct _cef_cookie_t* cookie); + + + + + + int ( *can_set_cookie)(struct _cef_resource_handler_t* self, + const struct _cef_cookie_t* cookie); + + + + + void ( *cancel)(struct _cef_resource_handler_t* self); +} cef_resource_handler_t; + + + + + + +struct _cef_scheme_handler_factory_t; + + + + +typedef struct _cef_scheme_registrar_t { + + + + cef_base_t base; + int ( *add_custom_scheme)(struct _cef_scheme_registrar_t* self, + const cef_string_t* scheme_name, int is_standard, int is_local, + int is_display_isolated); +} cef_scheme_registrar_t; + + + + + + + +typedef struct _cef_scheme_handler_factory_t { + + + + cef_base_t base; + struct _cef_resource_handler_t* ( *create)( + struct _cef_scheme_handler_factory_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + const cef_string_t* scheme_name, struct _cef_request_t* request); +} cef_scheme_handler_factory_t; +__attribute__ ((visibility("default"))) int cef_register_scheme_handler_factory( + const cef_string_t* scheme_name, const cef_string_t* domain_name, + cef_scheme_handler_factory_t* factory); +__attribute__ ((visibility("default"))) int cef_clear_scheme_handler_factories(); + + + + + +struct _cef_app_t; + + + + + +typedef struct _cef_app_t { + + + + cef_base_t base; + void ( *on_before_command_line_processing)( + struct _cef_app_t* self, const cef_string_t* process_type, + struct _cef_command_line_t* command_line); + + + + + + + + void ( *on_register_custom_schemes)(struct _cef_app_t* self, + struct _cef_scheme_registrar_t* registrar); + + + + + + + + struct _cef_resource_bundle_handler_t* ( + *get_resource_bundle_handler)(struct _cef_app_t* self); + + + + + + struct _cef_browser_process_handler_t* ( + *get_browser_process_handler)(struct _cef_app_t* self); + + + + + + struct _cef_render_process_handler_t* ( + *get_render_process_handler)(struct _cef_app_t* self); +} cef_app_t; +__attribute__ ((visibility("default"))) int cef_execute_process(const struct _cef_main_args_t* args, + cef_app_t* application, void* windows_sandbox_info); +__attribute__ ((visibility("default"))) int cef_initialize(const struct _cef_main_args_t* args, + const struct _cef_settings_t* settings, cef_app_t* application, + void* windows_sandbox_info); + + + + + +__attribute__ ((visibility("default"))) void cef_shutdown(); +__attribute__ ((visibility("default"))) void cef_do_message_loop_work(); +__attribute__ ((visibility("default"))) void cef_run_message_loop(); + + + + + + +__attribute__ ((visibility("default"))) void cef_quit_message_loop(); + + + + + +__attribute__ ((visibility("default"))) void cef_set_osmodal_loop(int osModalLoop); + + + + + + +__attribute__ ((visibility("default"))) void cef_enable_highdpi_support(); +struct _cef_menu_model_t; + + + + + + +typedef struct _cef_menu_model_delegate_t { + + + + cef_base_t base; + + + + + + void ( *execute_command)(struct _cef_menu_model_delegate_t* self, + struct _cef_menu_model_t* menu_model, int command_id, + cef_event_flags_t event_flags); + + + + + void ( *menu_will_show)(struct _cef_menu_model_delegate_t* self, + struct _cef_menu_model_t* menu_model); + + + + + void ( *menu_closed)(struct _cef_menu_model_delegate_t* self, + struct _cef_menu_model_t* menu_model); + + + + + + int ( *format_label)(struct _cef_menu_model_delegate_t* self, + struct _cef_menu_model_t* menu_model, cef_string_t* label); +} cef_menu_model_delegate_t; +typedef struct _cef_menu_model_t { + + + + cef_base_t base; + + + + + int ( *clear)(struct _cef_menu_model_t* self); + + + + + int ( *get_count)(struct _cef_menu_model_t* self); + + + + + int ( *add_separator)(struct _cef_menu_model_t* self); + + + + + int ( *add_item)(struct _cef_menu_model_t* self, int command_id, + const cef_string_t* label); + + + + + int ( *add_check_item)(struct _cef_menu_model_t* self, + int command_id, const cef_string_t* label); + + + + + + int ( *add_radio_item)(struct _cef_menu_model_t* self, + int command_id, const cef_string_t* label, int group_id); + + + + + struct _cef_menu_model_t* ( *add_sub_menu)( + struct _cef_menu_model_t* self, int command_id, + const cef_string_t* label); + + + + + + int ( *insert_separator_at)(struct _cef_menu_model_t* self, + int index); + + + + + + int ( *insert_item_at)(struct _cef_menu_model_t* self, int index, + int command_id, const cef_string_t* label); + + + + + + int ( *insert_check_item_at)(struct _cef_menu_model_t* self, + int index, int command_id, const cef_string_t* label); + + + + + + + int ( *insert_radio_item_at)(struct _cef_menu_model_t* self, + int index, int command_id, const cef_string_t* label, int group_id); + + + + + + struct _cef_menu_model_t* ( *insert_sub_menu_at)( + struct _cef_menu_model_t* self, int index, int command_id, + const cef_string_t* label); + + + + + + int ( *remove)(struct _cef_menu_model_t* self, int command_id); + + + + + int ( *remove_at)(struct _cef_menu_model_t* self, int index); + + + + + + int ( *get_index_of)(struct _cef_menu_model_t* self, + int command_id); + + + + + + int ( *get_command_id_at)(struct _cef_menu_model_t* self, + int index); + + + + + int ( *set_command_id_at)(struct _cef_menu_model_t* self, + int index, int command_id); + + + + + + cef_string_userfree_t ( *get_label)( + struct _cef_menu_model_t* self, int command_id); + + + + + + + cef_string_userfree_t ( *get_label_at)( + struct _cef_menu_model_t* self, int index); + + + + + int ( *set_label)(struct _cef_menu_model_t* self, int command_id, + const cef_string_t* label); + + + + + int ( *set_label_at)(struct _cef_menu_model_t* self, int index, + const cef_string_t* label); + + + + + cef_menu_item_type_t ( *get_type)(struct _cef_menu_model_t* self, + int command_id); + + + + + cef_menu_item_type_t ( *get_type_at)( + struct _cef_menu_model_t* self, int index); + + + + + int ( *get_group_id)(struct _cef_menu_model_t* self, + int command_id); + + + + + int ( *get_group_id_at)(struct _cef_menu_model_t* self, + int index); + + + + + + int ( *set_group_id)(struct _cef_menu_model_t* self, + int command_id, int group_id); + + + + + int ( *set_group_id_at)(struct _cef_menu_model_t* self, int index, + int group_id); + + + + + struct _cef_menu_model_t* ( *get_sub_menu)( + struct _cef_menu_model_t* self, int command_id); + + + + + struct _cef_menu_model_t* ( *get_sub_menu_at)( + struct _cef_menu_model_t* self, int index); + + + + + int ( *is_visible)(struct _cef_menu_model_t* self, + int command_id); + + + + + int ( *is_visible_at)(struct _cef_menu_model_t* self, int index); + + + + + + int ( *set_visible)(struct _cef_menu_model_t* self, + int command_id, int visible); + + + + + + int ( *set_visible_at)(struct _cef_menu_model_t* self, int index, + int visible); + + + + + int ( *is_enabled)(struct _cef_menu_model_t* self, + int command_id); + + + + + int ( *is_enabled_at)(struct _cef_menu_model_t* self, int index); + + + + + + int ( *set_enabled)(struct _cef_menu_model_t* self, + int command_id, int enabled); + + + + + + int ( *set_enabled_at)(struct _cef_menu_model_t* self, int index, + int enabled); + + + + + + int ( *is_checked)(struct _cef_menu_model_t* self, + int command_id); + + + + + + int ( *is_checked_at)(struct _cef_menu_model_t* self, int index); + + + + + + int ( *set_checked)(struct _cef_menu_model_t* self, + int command_id, int checked); + + + + + + int ( *set_checked_at)(struct _cef_menu_model_t* self, int index, + int checked); + + + + + + int ( *has_accelerator)(struct _cef_menu_model_t* self, + int command_id); + + + + + + int ( *has_accelerator_at)(struct _cef_menu_model_t* self, + int index); + + + + + + int ( *set_accelerator)(struct _cef_menu_model_t* self, + int command_id, int key_code, int shift_pressed, int ctrl_pressed, + int alt_pressed); + + + + + + int ( *set_accelerator_at)(struct _cef_menu_model_t* self, + int index, int key_code, int shift_pressed, int ctrl_pressed, + int alt_pressed); + + + + + + int ( *remove_accelerator)(struct _cef_menu_model_t* self, + int command_id); + + + + + + int ( *remove_accelerator_at)(struct _cef_menu_model_t* self, + int index); + + + + + + int ( *get_accelerator)(struct _cef_menu_model_t* self, + int command_id, int* key_code, int* shift_pressed, int* ctrl_pressed, + int* alt_pressed); + + + + + + int ( *get_accelerator_at)(struct _cef_menu_model_t* self, + int index, int* key_code, int* shift_pressed, int* ctrl_pressed, + int* alt_pressed); +} cef_menu_model_t; + + + + + +__attribute__ ((visibility("default"))) cef_menu_model_t* cef_menu_model_create( + struct _cef_menu_model_delegate_t* delegate); + + + + + +struct _cef_context_menu_params_t; + + + + +typedef struct _cef_run_context_menu_callback_t { + + + + cef_base_t base; + + + + + + void ( *cont)(struct _cef_run_context_menu_callback_t* self, + int command_id, cef_event_flags_t event_flags); + + + + + void ( *cancel)(struct _cef_run_context_menu_callback_t* self); +} cef_run_context_menu_callback_t; + + + + + + +typedef struct _cef_context_menu_handler_t { + + + + cef_base_t base; + void ( *on_before_context_menu)( + struct _cef_context_menu_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params, + struct _cef_menu_model_t* model); + int ( *run_context_menu)(struct _cef_context_menu_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_context_menu_params_t* params, + struct _cef_menu_model_t* model, + struct _cef_run_context_menu_callback_t* callback); + int ( *on_context_menu_command)( + struct _cef_context_menu_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params, + int command_id, cef_event_flags_t event_flags); + + + + + + void ( *on_context_menu_dismissed)( + struct _cef_context_menu_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame); +} cef_context_menu_handler_t; + + + + + + +typedef struct _cef_context_menu_params_t { + + + + cef_base_t base; + + + + + + int ( *get_xcoord)(struct _cef_context_menu_params_t* self); + + + + + + int ( *get_ycoord)(struct _cef_context_menu_params_t* self); + + + + + + cef_context_menu_type_flags_t ( *get_type_flags)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_link_url)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_unfiltered_link_url)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_source_url)( + struct _cef_context_menu_params_t* self); + + + + + + int ( *has_image_contents)( + struct _cef_context_menu_params_t* self); + + + + + + cef_string_userfree_t ( *get_page_url)( + struct _cef_context_menu_params_t* self); + + + + + + cef_string_userfree_t ( *get_frame_url)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_frame_charset)( + struct _cef_context_menu_params_t* self); + + + + + cef_context_menu_media_type_t ( *get_media_type)( + struct _cef_context_menu_params_t* self); + + + + + + cef_context_menu_media_state_flags_t ( *get_media_state_flags)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_selection_text)( + struct _cef_context_menu_params_t* self); + + + + + + + cef_string_userfree_t ( *get_misspelled_word)( + struct _cef_context_menu_params_t* self); + + + + + + + int ( *get_dictionary_suggestions)( + struct _cef_context_menu_params_t* self, cef_string_list_t suggestions); + + + + + int ( *is_editable)(struct _cef_context_menu_params_t* self); + + + + + + int ( *is_spell_check_enabled)( + struct _cef_context_menu_params_t* self); + + + + + + cef_context_menu_edit_state_flags_t ( *get_edit_state_flags)( + struct _cef_context_menu_params_t* self); + + + + + + + int ( *is_custom_menu)(struct _cef_context_menu_params_t* self); + + + + + int ( *is_pepper_menu)(struct _cef_context_menu_params_t* self); +} cef_context_menu_params_t; +typedef struct _cef_file_dialog_callback_t { + + + + cef_base_t base; + void ( *cont)(struct _cef_file_dialog_callback_t* self, + int selected_accept_filter, cef_string_list_t file_paths); + + + + + void ( *cancel)(struct _cef_file_dialog_callback_t* self); +} cef_file_dialog_callback_t; + + + + + + +typedef struct _cef_dialog_handler_t { + + + + cef_base_t base; + int ( *on_file_dialog)(struct _cef_dialog_handler_t* self, + struct _cef_browser_t* browser, cef_file_dialog_mode_t mode, + const cef_string_t* title, const cef_string_t* default_file_path, + cef_string_list_t accept_filters, int selected_accept_filter, + struct _cef_file_dialog_callback_t* callback); +} cef_dialog_handler_t; +typedef struct _cef_display_handler_t { + + + + cef_base_t base; + + + + + void ( *on_address_change)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + const cef_string_t* url); + + + + + void ( *on_title_change)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* title); + + + + + void ( *on_favicon_urlchange)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, cef_string_list_t icon_urls); + void ( *on_fullscreen_mode_change)( + struct _cef_display_handler_t* self, struct _cef_browser_t* browser, + int fullscreen); + int ( *on_tooltip)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, cef_string_t* text); + + + + + + void ( *on_status_message)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* value); + + + + + + int ( *on_console_message)(struct _cef_display_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* message, + const cef_string_t* source, int line); +} cef_display_handler_t; +typedef struct _cef_download_item_t { + + + + cef_base_t base; + + + + + + int ( *is_valid)(struct _cef_download_item_t* self); + + + + + int ( *is_in_progress)(struct _cef_download_item_t* self); + + + + + int ( *is_complete)(struct _cef_download_item_t* self); + + + + + int ( *is_canceled)(struct _cef_download_item_t* self); + + + + + int64 ( *get_current_speed)(struct _cef_download_item_t* self); + + + + + + int ( *get_percent_complete)(struct _cef_download_item_t* self); + + + + + int64 ( *get_total_bytes)(struct _cef_download_item_t* self); + + + + + int64 ( *get_received_bytes)(struct _cef_download_item_t* self); + + + + + cef_time_t ( *get_start_time)(struct _cef_download_item_t* self); + + + + + cef_time_t ( *get_end_time)(struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_full_path)( + struct _cef_download_item_t* self); + + + + + uint32 ( *get_id)(struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_url)( + struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_original_url)( + struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_suggested_file_name)( + struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_content_disposition)( + struct _cef_download_item_t* self); + + + + + + cef_string_userfree_t ( *get_mime_type)( + struct _cef_download_item_t* self); +} cef_download_item_t; +typedef struct _cef_before_download_callback_t { + + + + cef_base_t base; + + + + + + + + void ( *cont)(struct _cef_before_download_callback_t* self, + const cef_string_t* download_path, int show_dialog); +} cef_before_download_callback_t; + + + + + +typedef struct _cef_download_item_callback_t { + + + + cef_base_t base; + + + + + void ( *cancel)(struct _cef_download_item_callback_t* self); + + + + + void ( *pause)(struct _cef_download_item_callback_t* self); + + + + + void ( *resume)(struct _cef_download_item_callback_t* self); +} cef_download_item_callback_t; + + + + + + +typedef struct _cef_download_handler_t { + + + + cef_base_t base; + void ( *on_before_download)(struct _cef_download_handler_t* self, + struct _cef_browser_t* browser, + struct _cef_download_item_t* download_item, + const cef_string_t* suggested_name, + struct _cef_before_download_callback_t* callback); + void ( *on_download_updated)(struct _cef_download_handler_t* self, + struct _cef_browser_t* browser, + struct _cef_download_item_t* download_item, + struct _cef_download_item_callback_t* callback); +} cef_download_handler_t; +typedef struct _cef_drag_handler_t { + + + + cef_base_t base; + + + + + + + + int ( *on_drag_enter)(struct _cef_drag_handler_t* self, + struct _cef_browser_t* browser, struct _cef_drag_data_t* dragData, + cef_drag_operations_mask_t mask); + void ( *on_draggable_regions_changed)( + struct _cef_drag_handler_t* self, struct _cef_browser_t* browser, + size_t regionsCount, cef_draggable_region_t const* regions); +} cef_drag_handler_t; +typedef struct _cef_find_handler_t { + + + + cef_base_t base; + void ( *on_find_result)(struct _cef_find_handler_t* self, + struct _cef_browser_t* browser, int identifier, int count, + const cef_rect_t* selectionRect, int activeMatchOrdinal, + int finalUpdate); +} cef_find_handler_t; +typedef struct _cef_focus_handler_t { + + + + cef_base_t base; + + + + + + + + void ( *on_take_focus)(struct _cef_focus_handler_t* self, + struct _cef_browser_t* browser, int next); + + + + + + + int ( *on_set_focus)(struct _cef_focus_handler_t* self, + struct _cef_browser_t* browser, cef_focus_source_t source); + + + + + void ( *on_got_focus)(struct _cef_focus_handler_t* self, + struct _cef_browser_t* browser); +} cef_focus_handler_t; +typedef struct _cef_geolocation_callback_t { + + + + cef_base_t base; + + + + + void ( *cont)(struct _cef_geolocation_callback_t* self, + int allow); +} cef_geolocation_callback_t; + + + + + + + +typedef struct _cef_geolocation_handler_t { + + + + cef_base_t base; + int ( *on_request_geolocation_permission)( + struct _cef_geolocation_handler_t* self, struct _cef_browser_t* browser, + const cef_string_t* requesting_url, int request_id, + struct _cef_geolocation_callback_t* callback); + + + + + + void ( *on_cancel_geolocation_permission)( + struct _cef_geolocation_handler_t* self, struct _cef_browser_t* browser, + int request_id); +} cef_geolocation_handler_t; +typedef struct _cef_jsdialog_callback_t { + + + + cef_base_t base; + + + + + + void ( *cont)(struct _cef_jsdialog_callback_t* self, int success, + const cef_string_t* user_input); +} cef_jsdialog_callback_t; + + + + + + +typedef struct _cef_jsdialog_handler_t { + + + + cef_base_t base; + int ( *on_jsdialog)(struct _cef_jsdialog_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* origin_url, + cef_jsdialog_type_t dialog_type, const cef_string_t* message_text, + const cef_string_t* default_prompt_text, + struct _cef_jsdialog_callback_t* callback, int* suppress_message); + int ( *on_before_unload_dialog)( + struct _cef_jsdialog_handler_t* self, struct _cef_browser_t* browser, + const cef_string_t* message_text, int is_reload, + struct _cef_jsdialog_callback_t* callback); + + + + + + + void ( *on_reset_dialog_state)( + struct _cef_jsdialog_handler_t* self, struct _cef_browser_t* browser); + + + + + void ( *on_dialog_closed)(struct _cef_jsdialog_handler_t* self, + struct _cef_browser_t* browser); +} cef_jsdialog_handler_t; +typedef struct _cef_keyboard_handler_t { + + + + cef_base_t base; + int ( *on_pre_key_event)(struct _cef_keyboard_handler_t* self, + struct _cef_browser_t* browser, const struct _cef_key_event_t* event, + void* os_event, int* is_keyboard_shortcut); + + + + + + + + int ( *on_key_event)(struct _cef_keyboard_handler_t* self, + struct _cef_browser_t* browser, const struct _cef_key_event_t* event, + void* os_event); +} cef_keyboard_handler_t; +struct _cef_client_t; + + + + + + +typedef struct _cef_life_span_handler_t { + + + + cef_base_t base; + int ( *on_before_popup)(struct _cef_life_span_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + const cef_string_t* target_url, const cef_string_t* target_frame_name, + cef_window_open_disposition_t target_disposition, int user_gesture, + const struct _cef_popup_features_t* popupFeatures, + struct _cef_window_info_t* windowInfo, struct _cef_client_t** client, + struct _cef_browser_settings_t* settings, int* no_javascript_access); + + + + + + void ( *on_after_created)(struct _cef_life_span_handler_t* self, + struct _cef_browser_t* browser); + int ( *do_close)(struct _cef_life_span_handler_t* self, + struct _cef_browser_t* browser); + void ( *on_before_close)(struct _cef_life_span_handler_t* self, + struct _cef_browser_t* browser); +} cef_life_span_handler_t; + + +typedef struct _cef_render_handler_t { + + + + cef_base_t base; + + + + + + int ( *get_root_screen_rect)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, cef_rect_t* rect); + + + + + + int ( *get_view_rect)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, cef_rect_t* rect); + + + + + + int ( *get_screen_point)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, int viewX, int viewY, int* screenX, + int* screenY); + int ( *get_screen_info)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, struct _cef_screen_info_t* screen_info); + + + + + + void ( *on_popup_show)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, int show); + + + + + + void ( *on_popup_size)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, const cef_rect_t* rect); + void ( *on_paint)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, cef_paint_element_type_t type, + size_t dirtyRectsCount, cef_rect_t const* dirtyRects, const void* buffer, + int width, int height); + + + + + + void ( *on_cursor_change)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, void* cursor, + cef_cursor_type_t type, + const struct _cef_cursor_info_t* custom_cursor_info); + int ( *start_dragging)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, struct _cef_drag_data_t* drag_data, + cef_drag_operations_mask_t allowed_ops, int x, int y); + + + + + + + void ( *update_drag_cursor)(struct _cef_render_handler_t* self, + struct _cef_browser_t* browser, cef_drag_operations_mask_t operation); + + + + + void ( *on_scroll_offset_changed)( + struct _cef_render_handler_t* self, struct _cef_browser_t* browser, + double x, double y); + + + + + + + void ( *on_ime_composition_range_changed)( + struct _cef_render_handler_t* self, struct _cef_browser_t* browser, + const cef_range_t* selected_range, size_t character_boundsCount, + cef_rect_t const* character_bounds); +} cef_render_handler_t; +typedef struct _cef_auth_callback_t { + + + + cef_base_t base; + + + + + void ( *cont)(struct _cef_auth_callback_t* self, + const cef_string_t* username, const cef_string_t* password); + + + + + void ( *cancel)(struct _cef_auth_callback_t* self); +} cef_auth_callback_t; + + + + + + +typedef struct _cef_response_filter_t { + + + + cef_base_t base; + + + + + + int ( *init_filter)(struct _cef_response_filter_t* self); + cef_response_filter_status_t ( *filter)( + struct _cef_response_filter_t* self, void* data_in, size_t data_in_size, + size_t* data_in_read, void* data_out, size_t data_out_size, + size_t* data_out_written); +} cef_response_filter_t; +typedef struct _cef_sslinfo_t { + + + + cef_base_t base; + + + + + + cef_cert_status_t ( *get_cert_status)( + struct _cef_sslinfo_t* self); + + + + + struct _cef_x509certificate_t* ( *get_x509certificate)( + struct _cef_sslinfo_t* self); +} cef_sslinfo_t; + + + + + +__attribute__ ((visibility("default"))) int cef_is_cert_status_error(cef_cert_status_t status); + + + + + +__attribute__ ((visibility("default"))) int cef_is_cert_status_minor_error(cef_cert_status_t status); +typedef struct _cef_request_callback_t { + + + + cef_base_t base; + + + + + + void ( *cont)(struct _cef_request_callback_t* self, int allow); + + + + + void ( *cancel)(struct _cef_request_callback_t* self); +} cef_request_callback_t; + + + + + +typedef struct _cef_select_client_certificate_callback_t { + + + + cef_base_t base; + + + + + + void ( *select)( + struct _cef_select_client_certificate_callback_t* self, + struct _cef_x509certificate_t* cert); +} cef_select_client_certificate_callback_t; + + + + + + +typedef struct _cef_request_handler_t { + + + + cef_base_t base; + int ( *on_before_browse)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_request_t* request, int is_redirect); + int ( *on_open_urlfrom_tab)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + const cef_string_t* target_url, + cef_window_open_disposition_t target_disposition, int user_gesture); + cef_return_value_t ( *on_before_resource_load)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_request_t* request, + struct _cef_request_callback_t* callback); + + + + + + + + struct _cef_resource_handler_t* ( *get_resource_handler)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_request_t* request); + void ( *on_resource_redirect)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_request_t* request, struct _cef_response_t* response, + cef_string_t* new_url); + + + + + + + + int ( *on_resource_response)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, + struct _cef_request_t* request, struct _cef_response_t* response); + + + + + + + struct _cef_response_filter_t* ( *get_resource_response_filter)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_request_t* request, + struct _cef_response_t* response); + + + + + + + + void ( *on_resource_load_complete)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + struct _cef_frame_t* frame, struct _cef_request_t* request, + struct _cef_response_t* response, cef_urlrequest_status_t status, + int64 received_content_length); + int ( *get_auth_credentials)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, struct _cef_frame_t* frame, int isProxy, + const cef_string_t* host, int port, const cef_string_t* realm, + const cef_string_t* scheme, struct _cef_auth_callback_t* callback); + int ( *on_quota_request)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* origin_url, + int64 new_size, struct _cef_request_callback_t* callback); + void ( *on_protocol_execution)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + const cef_string_t* url, int* allow_os_execution); + int ( *on_certificate_error)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, cef_errorcode_t cert_error, + const cef_string_t* request_url, struct _cef_sslinfo_t* ssl_info, + struct _cef_request_callback_t* callback); + int ( *on_select_client_certificate)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + int isProxy, const cef_string_t* host, int port, + size_t certificatesCount, + struct _cef_x509certificate_t* const* certificates, + struct _cef_select_client_certificate_callback_t* callback); + + + + + + void ( *on_plugin_crashed)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser, const cef_string_t* plugin_path); + + + + + + + void ( *on_render_view_ready)(struct _cef_request_handler_t* self, + struct _cef_browser_t* browser); + + + + + + void ( *on_render_process_terminated)( + struct _cef_request_handler_t* self, struct _cef_browser_t* browser, + cef_termination_status_t status); +} cef_request_handler_t; +typedef struct _cef_client_t { + + + + cef_base_t base; + + + + + + struct _cef_context_menu_handler_t* ( *get_context_menu_handler)( + struct _cef_client_t* self); + + + + + + struct _cef_dialog_handler_t* ( *get_dialog_handler)( + struct _cef_client_t* self); + + + + + struct _cef_display_handler_t* ( *get_display_handler)( + struct _cef_client_t* self); + + + + + + struct _cef_download_handler_t* ( *get_download_handler)( + struct _cef_client_t* self); + + + + + struct _cef_drag_handler_t* ( *get_drag_handler)( + struct _cef_client_t* self); + + + + + struct _cef_find_handler_t* ( *get_find_handler)( + struct _cef_client_t* self); + + + + + struct _cef_focus_handler_t* ( *get_focus_handler)( + struct _cef_client_t* self); + + + + + + struct _cef_geolocation_handler_t* ( *get_geolocation_handler)( + struct _cef_client_t* self); + + + + + + struct _cef_jsdialog_handler_t* ( *get_jsdialog_handler)( + struct _cef_client_t* self); + + + + + struct _cef_keyboard_handler_t* ( *get_keyboard_handler)( + struct _cef_client_t* self); + + + + + struct _cef_life_span_handler_t* ( *get_life_span_handler)( + struct _cef_client_t* self); + + + + + struct _cef_load_handler_t* ( *get_load_handler)( + struct _cef_client_t* self); + + + + + struct _cef_render_handler_t* ( *get_render_handler)( + struct _cef_client_t* self); + + + + + struct _cef_request_handler_t* ( *get_request_handler)( + struct _cef_client_t* self); + + + + + + + int ( *on_process_message_received)(struct _cef_client_t* self, + struct _cef_browser_t* browser, cef_process_id_t source_process, + struct _cef_process_message_t* message); +} cef_client_t; +