From f12cc0f37a9da23f1750124e54f58f19ead2975b Mon Sep 17 00:00:00 2001 From: yangguangzhao Date: Fri, 15 Sep 2023 16:04:23 +0800 Subject: [PATCH] scroll focused node into view only when keyboard show/hide Signed-off-by: yangguangzhao --- include/capi/cef_browser_capi.h | 671 ++++++++---------- include/cef_api_hash.h | 10 +- include/cef_browser.h | 7 + .../browser/alloy/alloy_browser_host_impl.cc | 12 + .../browser/alloy/alloy_browser_host_impl.h | 1 + libcef/browser/browser_platform_delegate.h | 3 + .../osr/browser_platform_delegate_osr.cc | 10 +- .../osr/browser_platform_delegate_osr.h | 3 + .../osr/render_widget_host_view_osr.cc | 36 + .../browser/osr/render_widget_host_view_osr.h | 6 + libcef_dll/cpptoc/browser_host_cpptoc.cc | 547 +++++++------- libcef_dll/ctocpp/browser_host_ctocpp.cc | 427 ++++++----- libcef_dll/ctocpp/browser_host_ctocpp.h | 165 ++--- 13 files changed, 908 insertions(+), 990 deletions(-) diff --git a/include/capi/cef_browser_capi.h b/include/capi/cef_browser_capi.h index 54a376f06..ad3d3e768 100644 --- a/include/capi/cef_browser_capi.h +++ b/include/capi/cef_browser_capi.h @@ -33,7 +33,7 @@ // by hand. See the translator.README.txt file in the tools directory for // more information. // -// $hash=767afed213b1b68fb25b19582112b1337ab80b25$ +// $hash=7ef2a76186a15d25bd6e66b8f311366a7955d2e3$ // #ifndef CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_ @@ -77,122 +77,121 @@ typedef struct _cef_browser_t { // True if this object is currently valid. This will return false (0) after // cef_life_span_handler_t::OnBeforeClose is called. /// - int(CEF_CALLBACK* is_valid)(struct _cef_browser_t* self); + int(CEF_CALLBACK *is_valid)(struct _cef_browser_t *self); /// // Returns the browser host object. This function can only be called in the // browser process. /// - struct _cef_browser_host_t*(CEF_CALLBACK* get_host)( - struct _cef_browser_t* self); + struct _cef_browser_host_t *(CEF_CALLBACK *get_host)( + struct _cef_browser_t *self); /// // Returns true (1) if the browser can navigate backwards. /// - int(CEF_CALLBACK* can_go_back)(struct _cef_browser_t* self); + int(CEF_CALLBACK *can_go_back)(struct _cef_browser_t *self); /// // Navigate backwards. /// - void(CEF_CALLBACK* go_back)(struct _cef_browser_t* self); + void(CEF_CALLBACK *go_back)(struct _cef_browser_t *self); /// // Returns true (1) if the browser can navigate forwards. /// - int(CEF_CALLBACK* can_go_forward)(struct _cef_browser_t* self); + int(CEF_CALLBACK *can_go_forward)(struct _cef_browser_t *self); /// // Navigate forwards. /// - void(CEF_CALLBACK* go_forward)(struct _cef_browser_t* self); + void(CEF_CALLBACK *go_forward)(struct _cef_browser_t *self); /// // Returns true (1) if the browser can navigate forwards. /// - int(CEF_CALLBACK* can_go_back_or_forward)(struct _cef_browser_t* self, + int(CEF_CALLBACK *can_go_back_or_forward)(struct _cef_browser_t *self, int num_steps); /// // Navigate backwards or forwards. /// - void(CEF_CALLBACK* go_back_or_forward)(struct _cef_browser_t* self, + void(CEF_CALLBACK *go_back_or_forward)(struct _cef_browser_t *self, int num_steps); /// // DeleteHistory /// - void(CEF_CALLBACK* delete_history)(struct _cef_browser_t* self); + void(CEF_CALLBACK *delete_history)(struct _cef_browser_t *self); /// // Returns true (1) if the browser is currently loading. /// - int(CEF_CALLBACK* is_loading)(struct _cef_browser_t* self); + int(CEF_CALLBACK *is_loading)(struct _cef_browser_t *self); /// // Reload the current page. /// - void(CEF_CALLBACK* reload)(struct _cef_browser_t* self); + void(CEF_CALLBACK *reload)(struct _cef_browser_t *self); /// // Reload the current page ignoring any cached data. /// - void(CEF_CALLBACK* reload_ignore_cache)(struct _cef_browser_t* self); + void(CEF_CALLBACK *reload_ignore_cache)(struct _cef_browser_t *self); /// // Reload the current page with original url. /// - void(CEF_CALLBACK* reload_original_url)(struct _cef_browser_t* self); + void(CEF_CALLBACK *reload_original_url)(struct _cef_browser_t *self); /// // display the selection control when click Free copy structure /// - void(CEF_CALLBACK* select_and_copy)(struct _cef_browser_t* self); + void(CEF_CALLBACK *select_and_copy)(struct _cef_browser_t *self); /// // should show free copy menu /// - int(CEF_CALLBACK* should_show_free_copy)(struct _cef_browser_t* self); + int(CEF_CALLBACK *should_show_free_copy)(struct _cef_browser_t *self); /// // select password dialog to fill /// - void(CEF_CALLBACK* password_suggestion_selected)(struct _cef_browser_t* self, + void(CEF_CALLBACK *password_suggestion_selected)(struct _cef_browser_t *self, int list_index); /// // Set user agent for current page. /// - void(CEF_CALLBACK* set_browser_user_agent_string)( - struct _cef_browser_t* self, - const cef_string_t* user_agent); + void(CEF_CALLBACK *set_browser_user_agent_string)( + struct _cef_browser_t *self, const cef_string_t *user_agent); /// // Stop loading the page. /// - void(CEF_CALLBACK* stop_load)(struct _cef_browser_t* self); + void(CEF_CALLBACK *stop_load)(struct _cef_browser_t *self); /// // Returns the globally unique identifier for this browser. This value is also // used as the tabId for extension APIs. /// - int(CEF_CALLBACK* get_identifier)(struct _cef_browser_t* self); + int(CEF_CALLBACK *get_identifier)(struct _cef_browser_t *self); /// // Returns true (1) if this object is pointing to the same handle as |that| // object. /// - int(CEF_CALLBACK* is_same)(struct _cef_browser_t* self, - struct _cef_browser_t* that); + int(CEF_CALLBACK *is_same)(struct _cef_browser_t *self, + struct _cef_browser_t *that); /// // Returns true (1) if the browser is a popup. /// - int(CEF_CALLBACK* is_popup)(struct _cef_browser_t* self); + int(CEF_CALLBACK *is_popup)(struct _cef_browser_t *self); /// // Returns true (1) if a document has been loaded in the browser. /// - int(CEF_CALLBACK* has_document)(struct _cef_browser_t* self); + int(CEF_CALLBACK *has_document)(struct _cef_browser_t *self); /// // Returns the main (top-level) frame for the browser. In the browser process @@ -203,123 +202,120 @@ typedef struct _cef_browser_t { // change during cross-origin navigation or re-navigation after renderer // process termination (due to crashes, etc). /// - struct _cef_frame_t*(CEF_CALLBACK* get_main_frame)( - struct _cef_browser_t* self); + struct _cef_frame_t *(CEF_CALLBACK *get_main_frame)( + struct _cef_browser_t *self); /// // Returns the focused frame for the browser. /// - struct _cef_frame_t*(CEF_CALLBACK* get_focused_frame)( - struct _cef_browser_t* self); + struct _cef_frame_t *(CEF_CALLBACK *get_focused_frame)( + struct _cef_browser_t *self); /// // Returns the frame with the specified identifier, or NULL if not found. /// - struct _cef_frame_t*(CEF_CALLBACK* get_frame_byident)( - struct _cef_browser_t* self, - int64 identifier); + struct _cef_frame_t *(CEF_CALLBACK *get_frame_byident)( + struct _cef_browser_t *self, int64 identifier); /// // Returns the frame with the specified name, or NULL if not found. /// - struct _cef_frame_t*(CEF_CALLBACK* get_frame)(struct _cef_browser_t* self, - const cef_string_t* name); + struct _cef_frame_t *(CEF_CALLBACK *get_frame)(struct _cef_browser_t *self, + const cef_string_t *name); /// // Returns the number of frames that currently exist. /// - size_t(CEF_CALLBACK* get_frame_count)(struct _cef_browser_t* self); + size_t(CEF_CALLBACK *get_frame_count)(struct _cef_browser_t *self); /// // Returns the identifiers of all existing frames. /// - void(CEF_CALLBACK* get_frame_identifiers)(struct _cef_browser_t* self, - size_t* identifiersCount, - int64* identifiers); + void(CEF_CALLBACK *get_frame_identifiers)(struct _cef_browser_t *self, + size_t *identifiersCount, + int64 *identifiers); /// // Returns the names of all existing frames. /// - void(CEF_CALLBACK* get_frame_names)(struct _cef_browser_t* self, + void(CEF_CALLBACK *get_frame_names)(struct _cef_browser_t *self, cef_string_list_t names); /// // Returns the Permission Request Delegate object. /// - struct _cef_browser_permission_request_delegate_t*( - CEF_CALLBACK* get_permission_request_delegate)( - struct _cef_browser_t* self); + struct _cef_browser_permission_request_delegate_t *( + CEF_CALLBACK *get_permission_request_delegate)( + struct _cef_browser_t *self); /// // Returns the Geolocation Permission handler object. /// - struct _cef_geolocation_acess_t*(CEF_CALLBACK* get_geolocation_permissions)( - struct _cef_browser_t* self); + struct _cef_geolocation_acess_t *(CEF_CALLBACK *get_geolocation_permissions)( + struct _cef_browser_t *self); /// // Prefetch the resources required by the page, but will not execute js or // render the page. /// - void(CEF_CALLBACK* prefetch_page)(struct _cef_browser_t* self, - cef_string_t* url, - cef_string_t* additionalHttpHeaders); + void(CEF_CALLBACK *prefetch_page)(struct _cef_browser_t *self, + cef_string_t *url, + cef_string_t *additionalHttpHeaders); /// // Is loading to different document. /// - int(CEF_CALLBACK* should_show_loading_ui)(struct _cef_browser_t* self); + int(CEF_CALLBACK *should_show_loading_ui)(struct _cef_browser_t *self); /// // Set force enable zoom. /// - void(CEF_CALLBACK* set_force_enable_zoom)(struct _cef_browser_t* self, + void(CEF_CALLBACK *set_force_enable_zoom)(struct _cef_browser_t *self, int forceEnableZoom); /// // Whether force enable zoom had been enabled. /// - int(CEF_CALLBACK* get_force_enable_zoom)(struct _cef_browser_t* self); + int(CEF_CALLBACK *get_force_enable_zoom)(struct _cef_browser_t *self); /// // Returns the NWeb Id. /// - int(CEF_CALLBACK* get_nweb_id)(struct _cef_browser_t* self); + int(CEF_CALLBACK *get_nweb_id)(struct _cef_browser_t *self); /// // Set whether the target_blank pop-up window is opened in the current tab. /// - void(CEF_CALLBACK* set_enable_blank_target_popup_intercept)( - struct _cef_browser_t* self, - int enableBlankTargetPopup); + void(CEF_CALLBACK *set_enable_blank_target_popup_intercept)( + struct _cef_browser_t *self, int enableBlankTargetPopup); /// // Whether automatically saving password had been enabled. /// - int(CEF_CALLBACK* get_save_password_automatically)( - struct _cef_browser_t* self); + int(CEF_CALLBACK *get_save_password_automatically)( + struct _cef_browser_t *self); /// // Set enable to allow automatically save password /// - void(CEF_CALLBACK* set_save_password_automatically)( - struct _cef_browser_t* self, - int enable); + void(CEF_CALLBACK *set_save_password_automatically)( + struct _cef_browser_t *self, int enable); /// // save or upddate current page password /// - void(CEF_CALLBACK* save_or_update_password)(struct _cef_browser_t* self, + void(CEF_CALLBACK *save_or_update_password)(struct _cef_browser_t *self, int is_update); /// // Whether saving password had been enabled. /// - int(CEF_CALLBACK* get_save_password)(struct _cef_browser_t* self); + int(CEF_CALLBACK *get_save_password)(struct _cef_browser_t *self); /// // Set enable to save password /// - void(CEF_CALLBACK* set_save_password)(struct _cef_browser_t* self, + void(CEF_CALLBACK *set_save_password)(struct _cef_browser_t *self, int enable); } cef_browser_t; @@ -340,9 +336,8 @@ typedef struct _cef_run_file_dialog_callback_t { // |file_paths| will be a single value or a list of values depending on the // dialog mode. If the selection was cancelled |file_paths| will be NULL. /// - void(CEF_CALLBACK* on_file_dialog_dismissed)( - struct _cef_run_file_dialog_callback_t* self, - int selected_accept_filter, + void(CEF_CALLBACK *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; @@ -363,11 +358,9 @@ typedef struct _cef_navigation_entry_visitor_t { // navigation entry. |index| is the 0-based index of this entry and |total| is // the total number of entries. /// - int(CEF_CALLBACK* visit)(struct _cef_navigation_entry_visitor_t* self, - struct _cef_navigation_entry_t* entry, - int current, - int index, - int total); + int(CEF_CALLBACK *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; /// @@ -385,10 +378,8 @@ typedef struct _cef_pdf_print_callback_t { // the output path. |ok| will be true (1) if the printing completed // successfully or false (0) otherwise. /// - void(CEF_CALLBACK* on_pdf_print_finished)( - struct _cef_pdf_print_callback_t* self, - const cef_string_t* path, - int ok); + void(CEF_CALLBACK *on_pdf_print_finished)( + struct _cef_pdf_print_callback_t *self, const cef_string_t *path, int ok); } cef_pdf_print_callback_t; /// @@ -407,11 +398,10 @@ typedef struct _cef_download_image_callback_t { // resulting HTTP status code. |image| is the resulting image, possibly at // multiple scale factors, or NULL if the download failed. /// - void(CEF_CALLBACK* 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); + void(CEF_CALLBACK *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; /// @@ -429,14 +419,14 @@ typedef struct _cef_browser_host_t { /// // Returns the hosted browser object. /// - struct _cef_browser_t*(CEF_CALLBACK* get_browser)( - struct _cef_browser_host_t* self); + struct _cef_browser_t *(CEF_CALLBACK *get_browser)( + struct _cef_browser_host_t *self); /// // Post task to ui thread. /// - void(CEF_CALLBACK* post_task_to_uithread)(struct _cef_browser_host_t* self, - struct _cef_task_t* task); + void(CEF_CALLBACK *post_task_to_uithread)(struct _cef_browser_host_t *self, + struct _cef_task_t *task); /// // Request that the browser close. The JavaScript 'onbeforeunload' event will @@ -448,7 +438,7 @@ typedef struct _cef_browser_host_t { // cef_life_span_handler_t::do_close() documentation for additional usage // information. /// - void(CEF_CALLBACK* close_browser)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *close_browser)(struct _cef_browser_host_t *self, int force_close); /// @@ -460,12 +450,12 @@ typedef struct _cef_browser_host_t { // additional usage information. This function must be called on the browser // process UI thread. /// - int(CEF_CALLBACK* try_close_browser)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *try_close_browser)(struct _cef_browser_host_t *self); /// // Set whether the browser is focused. /// - void(CEF_CALLBACK* set_focus)(struct _cef_browser_host_t* self, int focus); + void(CEF_CALLBACK *set_focus)(struct _cef_browser_host_t *self, int focus); /// // Retrieve the window handle (if any) for this browser. If this browser is @@ -473,8 +463,8 @@ typedef struct _cef_browser_host_t { // browser process UI thread and it will return the handle for the top-level // native window. /// - cef_window_handle_t(CEF_CALLBACK* get_window_handle)( - struct _cef_browser_host_t* self); + cef_window_handle_t(CEF_CALLBACK *get_window_handle)( + struct _cef_browser_host_t *self); /// // Retrieve the window handle (if any) of the browser that opened this @@ -482,38 +472,38 @@ typedef struct _cef_browser_host_t { // wrapped in a cef_browser_view_t. This function can be used in combination // with custom handling of modal windows. /// - cef_window_handle_t(CEF_CALLBACK* get_opener_window_handle)( - struct _cef_browser_host_t* self); + cef_window_handle_t(CEF_CALLBACK *get_opener_window_handle)( + struct _cef_browser_host_t *self); /// // Returns true (1) if this browser is wrapped in a cef_browser_view_t. /// - int(CEF_CALLBACK* has_view)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *has_view)(struct _cef_browser_host_t *self); /// // Returns the client for this browser. /// - struct _cef_client_t*(CEF_CALLBACK* get_client)( - struct _cef_browser_host_t* self); + struct _cef_client_t *(CEF_CALLBACK *get_client)( + struct _cef_browser_host_t *self); /// // Returns the request context for this browser. /// - struct _cef_request_context_t*(CEF_CALLBACK* get_request_context)( - struct _cef_browser_host_t* self); + struct _cef_request_context_t *(CEF_CALLBACK *get_request_context)( + struct _cef_browser_host_t *self); /// // Get the current zoom level. The default zoom level is 0.0. This function // can only be called on the UI thread. /// - double(CEF_CALLBACK* get_zoom_level)(struct _cef_browser_host_t* self); + double(CEF_CALLBACK *get_zoom_level)(struct _cef_browser_host_t *self); /// // Change the zoom level to the specified value. Specify 0.0 to reset the zoom // level. If called on the UI thread the change will be applied immediately. // Otherwise, the change will be applied asynchronously on the UI thread. /// - void(CEF_CALLBACK* set_zoom_level)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_zoom_level)(struct _cef_browser_host_t *self, double zoomLevel); /// @@ -532,34 +522,27 @@ typedef struct _cef_browser_host_t { // dismissed or immediately if another dialog is already pending. The dialog // will be initiated asynchronously on the UI thread. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Download the file at |url| using cef_download_handler_t. /// - void(CEF_CALLBACK* start_download)(struct _cef_browser_host_t* self, - const cef_string_t* url); + void(CEF_CALLBACK *start_download)(struct _cef_browser_host_t *self, + const cef_string_t *url); /// // Resume download after interrupted. /// - void(CEF_CALLBACK* resume_download)( - struct _cef_browser_host_t* self, - const cef_string_t* url, - const cef_string_t* full_path, - int64 received_bytes, - int64 total_bytes, - const cef_string_t* etag, - const cef_string_t* mime_type, - const cef_string_t* last_modified, - const cef_string_t* received_slices_string); + void(CEF_CALLBACK *resume_download)( + struct _cef_browser_host_t *self, const cef_string_t *url, + const cef_string_t *full_path, int64 received_bytes, int64 total_bytes, + const cef_string_t *etag, const cef_string_t *mime_type, + const cef_string_t *last_modified, + const cef_string_t *received_slices_string); /// // Download |image_url| and execute |callback| on completion with the images @@ -573,18 +556,15 @@ typedef struct _cef_browser_host_t { // unlimited. If |bypass_cache| is true (1) then |image_url| is requested from // the server even if it is present in the browser cache. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Print the current browser contents. /// - void(CEF_CALLBACK* print)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *print)(struct _cef_browser_host_t *self); /// // Print the current browser contents to the PDF file specified by |path| and @@ -592,11 +572,10 @@ typedef struct _cef_browser_host_t { // |path| when done. For PDF printing to work on Linux you must implement the // cef_print_handler_t::GetPdfPaperSize function. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Search for |searchText|. |forward| indicates whether to search forward or @@ -607,17 +586,14 @@ typedef struct _cef_browser_host_t { // cef_find_handler_t instance, if any, returned via // cef_client_t::GetFindHandler will be called to report find results. /// - void(CEF_CALLBACK* find)(struct _cef_browser_host_t* self, - const cef_string_t* searchText, - int forward, - int matchCase, - int findNext, - int newSession); + void(CEF_CALLBACK *find)(struct _cef_browser_host_t *self, + const cef_string_t *searchText, int forward, + int matchCase, int findNext, int newSession); /// // Cancel all searches that are currently going on. /// - void(CEF_CALLBACK* stop_finding)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *stop_finding)(struct _cef_browser_host_t *self, int clearSelection); /// @@ -629,23 +605,22 @@ typedef struct _cef_browser_host_t { // inspected. The |windowInfo| parameter will be ignored if this browser is // wrapped in a cef_browser_view_t. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Explicitly close the associated DevTools browser, if any. /// - void(CEF_CALLBACK* close_dev_tools)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *close_dev_tools)(struct _cef_browser_host_t *self); /// // Returns true (1) if this browser currently has an associated DevTools // browser. Must be called on the browser process UI thread. /// - int(CEF_CALLBACK* has_dev_tools)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *has_dev_tools)(struct _cef_browser_host_t *self); /// // Send a function call message over the DevTools protocol. |message| must be @@ -680,8 +655,8 @@ typedef struct _cef_browser_host_t { // for development purposes by passing the `--devtools-protocol-log- // file=` command-line flag. /// - int(CEF_CALLBACK* send_dev_tools_message)(struct _cef_browser_host_t* self, - const void* message, + int(CEF_CALLBACK *send_dev_tools_message)(struct _cef_browser_host_t *self, + const void *message, size_t message_size); /// @@ -696,11 +671,9 @@ typedef struct _cef_browser_host_t { // was successfully submitted for validation, otherwise 0. See the // SendDevToolsMessage documentation for additional usage information. /// - int(CEF_CALLBACK* execute_dev_tools_method)( - struct _cef_browser_host_t* self, - int message_id, - const cef_string_t* method, - struct _cef_dictionary_value_t* params); + int(CEF_CALLBACK *execute_dev_tools_method)( + struct _cef_browser_host_t *self, int message_id, + const cef_string_t *method, struct _cef_dictionary_value_t *params); /// // Add an observer for DevTools protocol messages (function results and @@ -708,9 +681,9 @@ typedef struct _cef_browser_host_t { // Registration object is destroyed. See the SendDevToolsMessage documentation // for additional usage information. /// - struct _cef_registration_t*(CEF_CALLBACK* add_dev_tools_message_observer)( - struct _cef_browser_host_t* self, - struct _cef_dev_tools_message_observer_t* observer); + struct _cef_registration_t *(CEF_CALLBACK *add_dev_tools_message_observer)( + struct _cef_browser_host_t *self, + struct _cef_dev_tools_message_observer_t *observer); /// // Retrieve a snapshot of current navigation entries as values sent to the @@ -718,29 +691,28 @@ typedef struct _cef_browser_host_t { // navigation entry will be sent, otherwise all navigation entries will be // sent. /// - void(CEF_CALLBACK* get_navigation_entries)( - struct _cef_browser_host_t* self, - struct _cef_navigation_entry_visitor_t* visitor, - int current_only); + void(CEF_CALLBACK *get_navigation_entries)( + struct _cef_browser_host_t *self, + struct _cef_navigation_entry_visitor_t *visitor, int current_only); /// // If a misspelled word is currently selected in an editable node calling this // function will replace it with the specified |word|. /// - void(CEF_CALLBACK* replace_misspelling)(struct _cef_browser_host_t* self, - const cef_string_t* word); + void(CEF_CALLBACK *replace_misspelling)(struct _cef_browser_host_t *self, + const cef_string_t *word); /// // Add the specified |word| to the spelling dictionary. /// - void(CEF_CALLBACK* add_word_to_dictionary)(struct _cef_browser_host_t* self, - const cef_string_t* word); + void(CEF_CALLBACK *add_word_to_dictionary)(struct _cef_browser_host_t *self, + const cef_string_t *word); /// // Returns true (1) if window rendering is disabled. /// - int(CEF_CALLBACK* is_window_rendering_disabled)( - struct _cef_browser_host_t* self); + int(CEF_CALLBACK *is_window_rendering_disabled)( + struct _cef_browser_host_t *self); /// // Notify the browser that the widget has been resized. The browser will first @@ -748,21 +720,21 @@ typedef struct _cef_browser_host_t { // cef_render_handler_t::OnPaint asynchronously with the updated regions. This // function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* was_resized)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *was_resized)(struct _cef_browser_host_t *self); /// // Notify the browser that it has been hidden or shown. Layouting and // cef_render_handler_t::OnPaint notification will stop when the browser is // hidden. This function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* was_hidden)(struct _cef_browser_host_t* self, int hidden); + void(CEF_CALLBACK *was_hidden)(struct _cef_browser_host_t *self, int hidden); /// // Notify the browser that it has been occluded or unoccluded. Layouting and // cef_render_handler_t::OnPaint notification will stop when the browser is // occluded. This function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* was_occluded)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *was_occluded)(struct _cef_browser_host_t *self, int occluded); /// @@ -773,13 +745,13 @@ typedef struct _cef_browser_host_t { // current display. This function is only used when window rendering is // disabled. /// - void(CEF_CALLBACK* notify_screen_info_changed)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *notify_screen_info_changed)( + struct _cef_browser_host_t *self); /// // Set the virtual pixel ratio /// - void(CEF_CALLBACK* set_virtual_pixel_ratio)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_virtual_pixel_ratio)(struct _cef_browser_host_t *self, float ratio); /// @@ -787,40 +759,36 @@ typedef struct _cef_browser_host_t { // asynchronously. This function is only used when window rendering is // disabled. /// - void(CEF_CALLBACK* invalidate)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *invalidate)(struct _cef_browser_host_t *self, cef_paint_element_type_t type); /// // Issue a BeginFrame request to Chromium. Only valid when // cef_window_tInfo::external_begin_frame_enabled is set to true (1). /// - void(CEF_CALLBACK* send_external_begin_frame)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *send_external_begin_frame)( + struct _cef_browser_host_t *self); /// // Send a key event to the browser. /// - void(CEF_CALLBACK* send_key_event)(struct _cef_browser_host_t* self, - const struct _cef_key_event_t* event); + void(CEF_CALLBACK *send_key_event)(struct _cef_browser_host_t *self, + const struct _cef_key_event_t *event); /// // Send a mouse click event to the browser. The |x| and |y| coordinates are // relative to the upper-left corner of the view. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Send a mouse move event to the browser. The |x| and |y| coordinates are // relative to the upper-left corner of the view. /// - void(CEF_CALLBACK* send_mouse_move_event)( - struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event, + void(CEF_CALLBACK *send_mouse_move_event)( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, int mouseLeave); /// @@ -830,29 +798,27 @@ typedef struct _cef_browser_host_t { // In order to scroll inside select popups with window rendering disabled // cef_render_handler_t::GetScreenPoint should be implemented properly. /// - void(CEF_CALLBACK* send_mouse_wheel_event)( - struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event, - int deltaX, - int deltaY); + void(CEF_CALLBACK *send_mouse_wheel_event)( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, + int deltaX, int deltaY); /// // Send a touch event to the browser for a windowless browser. /// - void(CEF_CALLBACK* send_touch_event)(struct _cef_browser_host_t* self, - const struct _cef_touch_event_t* event); + void(CEF_CALLBACK *send_touch_event)(struct _cef_browser_host_t *self, + const struct _cef_touch_event_t *event); /// // Send a capture lost event to the browser. /// - void(CEF_CALLBACK* send_capture_lost_event)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *send_capture_lost_event)(struct _cef_browser_host_t *self); /// // Notify the browser that the window hosting it is about to be moved or // resized. This function is only used on Windows and Linux. /// - void(CEF_CALLBACK* notify_move_or_resize_started)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *notify_move_or_resize_started)( + struct _cef_browser_host_t *self); /// // Returns the maximum rate in frames per second (fps) that @@ -861,8 +827,8 @@ typedef struct _cef_browser_host_t { // requested rate. The minimum value is 1 and the maximum value is 60 (default // 30). This function can only be called on the UI thread. /// - int(CEF_CALLBACK* get_windowless_frame_rate)( - struct _cef_browser_host_t* self); + int(CEF_CALLBACK *get_windowless_frame_rate)( + struct _cef_browser_host_t *self); /// // Set the maximum rate in frames per second (fps) that cef_render_handler_t:: @@ -871,131 +837,131 @@ typedef struct _cef_browser_host_t { // minimum value is 1 and the maximum value is 60 (default 30). Can also be // set at browser creation via cef_browser_tSettings.windowless_frame_rate. /// - void(CEF_CALLBACK* set_windowless_frame_rate)( - struct _cef_browser_host_t* self, - int frame_rate); + void(CEF_CALLBACK *set_windowless_frame_rate)( + struct _cef_browser_host_t *self, int frame_rate); /// // Recompute the WebPreferences based on the current state of the CefSettings, // we will also call SetWebPreferences and send the updated WebPreferences to // all RenderViews by WebContents. /// - void(CEF_CALLBACK* set_web_preferences)( - struct _cef_browser_host_t* self, - const struct _cef_browser_settings_t* browser_settings); + void(CEF_CALLBACK *set_web_preferences)( + struct _cef_browser_host_t *self, + const struct _cef_browser_settings_t *browser_settings); /// // PutUserAgent /// - void(CEF_CALLBACK* put_user_agent)(struct _cef_browser_host_t* self, - const cef_string_t* ua); + void(CEF_CALLBACK *put_user_agent)(struct _cef_browser_host_t *self, + const cef_string_t *ua); /// // DefaultUserAgent /// // The resulting string must be freed by calling cef_string_userfree_free(). - cef_string_userfree_t(CEF_CALLBACK* default_user_agent)( - struct _cef_browser_host_t* self); + cef_string_userfree_t(CEF_CALLBACK *default_user_agent)( + struct _cef_browser_host_t *self); /// // SetBackgroundColor /// - void(CEF_CALLBACK* set_background_color)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_background_color)(struct _cef_browser_host_t *self, int color); /// // RegisterArkJSfunction /// - void(CEF_CALLBACK* register_ark_jsfunction)(struct _cef_browser_host_t* self, - const cef_string_t* object_name, + void(CEF_CALLBACK *register_ark_jsfunction)(struct _cef_browser_host_t *self, + const cef_string_t *object_name, cef_string_list_t method_list); /// // UnregisterArkJSfunction /// - void(CEF_CALLBACK* unregister_ark_jsfunction)( - struct _cef_browser_host_t* self, - const cef_string_t* object_name, + void(CEF_CALLBACK *unregister_ark_jsfunction)( + struct _cef_browser_host_t *self, const cef_string_t *object_name, cef_string_list_t method_list); /// // Saves the current view as a web archive. /// - void(CEF_CALLBACK* store_web_archive)( - struct _cef_browser_host_t* self, - const cef_string_t* base_name, - int auto_name, - struct _cef_store_web_archive_result_callback_t* callback); + void(CEF_CALLBACK *store_web_archive)( + struct _cef_browser_host_t *self, const cef_string_t *base_name, + int auto_name, struct _cef_store_web_archive_result_callback_t *callback); + + /// + // Notify the browser that the widget has been resized because of virtual + // keyboard. + /// + void(CEF_CALLBACK *was_keyboard_resized)(struct _cef_browser_host_t *self); /// // Gets the title for the current page. /// // The resulting string must be freed by calling cef_string_userfree_free(). - cef_string_userfree_t(CEF_CALLBACK* title)(struct _cef_browser_host_t* self); + cef_string_userfree_t(CEF_CALLBACK *title)(struct _cef_browser_host_t *self); /// // Create a message channel, which include two message ports. /// - void(CEF_CALLBACK* create_web_message_ports)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *create_web_message_ports)(struct _cef_browser_host_t *self, cef_string_list_t ports); /// // Posts a MessageEvent to the main frame. /// - void(CEF_CALLBACK* post_web_message)(struct _cef_browser_host_t* self, - cef_string_t* message, + void(CEF_CALLBACK *post_web_message)(struct _cef_browser_host_t *self, + cef_string_t *message, cef_string_list_t ports, - cef_string_t* targetUri); + cef_string_t *targetUri); /// // Close the web message port. /// - void(CEF_CALLBACK* close_port)(struct _cef_browser_host_t* self, - cef_string_t* port_handle); + void(CEF_CALLBACK *close_port)(struct _cef_browser_host_t *self, + cef_string_t *port_handle); /// // Destroy all web message ports. /// - void(CEF_CALLBACK* destroy_all_web_message_ports)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *destroy_all_web_message_ports)( + struct _cef_browser_host_t *self); /// // Post a message to the port. /// - void(CEF_CALLBACK* post_port_message)(struct _cef_browser_host_t* self, - cef_string_t* port_handle, - struct _cef_value_t* message); + void(CEF_CALLBACK *post_port_message)(struct _cef_browser_host_t *self, + cef_string_t *port_handle, + struct _cef_value_t *message); /// // Set the callback of the port. /// - void(CEF_CALLBACK* set_port_message_callback)( - struct _cef_browser_host_t* self, - cef_string_t* port_handle, - struct _cef_web_message_receiver_t* callback); + void(CEF_CALLBACK *set_port_message_callback)( + struct _cef_browser_host_t *self, cef_string_t *port_handle, + struct _cef_web_message_receiver_t *callback); /// // Gets the latest hitdata /// - void(CEF_CALLBACK* get_hit_data)(struct _cef_browser_host_t* self, - int* type, - cef_string_t* extra_data); + void(CEF_CALLBACK *get_hit_data)(struct _cef_browser_host_t *self, int *type, + cef_string_t *extra_data); /// // Set the inital page scale /// - void(CEF_CALLBACK* set_initial_scale)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_initial_scale)(struct _cef_browser_host_t *self, float scale); /// // Gets the progress for the current page. /// - int(CEF_CALLBACK* page_load_progress)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *page_load_progress)(struct _cef_browser_host_t *self); /// // Gets the progress for the current page. /// - float(CEF_CALLBACK* scale)(struct _cef_browser_host_t* self); + float(CEF_CALLBACK *scale)(struct _cef_browser_host_t *self); /// // Loads the given data into this WebView, using baseUrl as the base URL for @@ -1004,27 +970,24 @@ typedef struct _cef_browser_host_t { // history entry. optional_param=baseUrl, optional_param=data, // optional_param=mimeType, optional_param=encoding, optional_param=historyUrl /// - void(CEF_CALLBACK* load_with_data_and_base_url)( - struct _cef_browser_host_t* self, - const cef_string_t* baseUrl, - const cef_string_t* data, - const cef_string_t* mimeType, - const cef_string_t* encoding, - const cef_string_t* historyUrl); + void(CEF_CALLBACK *load_with_data_and_base_url)( + struct _cef_browser_host_t *self, const cef_string_t *baseUrl, + const cef_string_t *data, const cef_string_t *mimeType, + const cef_string_t *encoding, const cef_string_t *historyUrl); /// // Loads the given data into this WebView optional_param=data, // optional_param=mimeType, optional_param=encoding, /// - void(CEF_CALLBACK* load_with_data)(struct _cef_browser_host_t* self, - const cef_string_t* data, - const cef_string_t* mimeType, - const cef_string_t* encoding); + void(CEF_CALLBACK *load_with_data)(struct _cef_browser_host_t *self, + const cef_string_t *data, + const cef_string_t *mimeType, + const cef_string_t *encoding); /// // add visited url. /// - void(CEF_CALLBACK* add_visited_links)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *add_visited_links)(struct _cef_browser_host_t *self, cef_string_list_t urls); /// @@ -1051,13 +1014,10 @@ typedef struct _cef_browser_host_t { // // This function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* 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(CEF_CALLBACK *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); /// // Completes the existing composition by optionally inserting the specified @@ -1068,9 +1028,9 @@ typedef struct _cef_browser_host_t { // |relative_cursor_pos| values are only used on OS X. This function is only // used when window rendering is disabled. /// - void(CEF_CALLBACK* ime_commit_text)(struct _cef_browser_host_t* self, - const cef_string_t* text, - const cef_range_t* replacement_range, + void(CEF_CALLBACK *ime_commit_text)(struct _cef_browser_host_t *self, + const cef_string_t *text, + const cef_range_t *replacement_range, int relative_cursor_pos); /// @@ -1079,16 +1039,15 @@ typedef struct _cef_browser_host_t { // will be discarded. See comments on ImeSetComposition for usage. This // function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* ime_finish_composing_text)( - struct _cef_browser_host_t* self, - int keep_selection); + void(CEF_CALLBACK *ime_finish_composing_text)( + struct _cef_browser_host_t *self, int keep_selection); /// // Cancels the existing composition and discards the composition node contents // without applying them. See comments on ImeSetComposition for usage. This // function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* ime_cancel_composition)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *ime_cancel_composition)(struct _cef_browser_host_t *self); /// // Call this function when the user drags the mouse into the web view (before @@ -1099,10 +1058,9 @@ typedef struct _cef_browser_host_t { // cef_render_handler_t::StartDragging). This function is only used when // window rendering is disabled. /// - void(CEF_CALLBACK* drag_target_drag_enter)( - struct _cef_browser_host_t* self, - struct _cef_drag_data_t* drag_data, - const struct _cef_mouse_event_t* event, + void(CEF_CALLBACK *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); /// @@ -1111,9 +1069,8 @@ typedef struct _cef_browser_host_t { // DragTargetDragLeave/DragTargetDrop). This function is only used when window // rendering is disabled. /// - void(CEF_CALLBACK* drag_target_drag_over)( - struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event, + void(CEF_CALLBACK *drag_target_drag_over)( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, cef_drag_operations_mask_t allowed_ops); /// @@ -1121,7 +1078,7 @@ typedef struct _cef_browser_host_t { // calling DragTargetDragEnter). This function is only used when window // rendering is disabled. /// - void(CEF_CALLBACK* drag_target_drag_leave)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *drag_target_drag_leave)(struct _cef_browser_host_t *self); /// // Call this function when the user completes the drag operation by dropping @@ -1130,8 +1087,8 @@ typedef struct _cef_browser_host_t { // DragTargetDragEnter call. This function is only used when window rendering // is disabled. /// - void(CEF_CALLBACK* drag_target_drop)(struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event); + void(CEF_CALLBACK *drag_target_drop)(struct _cef_browser_host_t *self, + const struct _cef_mouse_event_t *event); /// // Call this function when the drag operation started by a @@ -1142,9 +1099,8 @@ typedef struct _cef_browser_host_t { // DragSource* mthods. This function is only used when window rendering is // disabled. /// - void(CEF_CALLBACK* drag_source_ended_at)(struct _cef_browser_host_t* self, - int x, - int y, + void(CEF_CALLBACK *drag_source_ended_at)(struct _cef_browser_host_t *self, + int x, int y, cef_drag_operations_mask_t op); /// @@ -1155,15 +1111,15 @@ typedef struct _cef_browser_host_t { // then all DragTarget* functions should be called before DragSource* mthods. // This function is only used when window rendering is disabled. /// - void(CEF_CALLBACK* drag_source_system_drag_ended)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *drag_source_system_drag_ended)( + struct _cef_browser_host_t *self); /// // Returns the current visible navigation entry for this browser. This // function can only be called on the UI thread. /// - struct _cef_navigation_entry_t*(CEF_CALLBACK* get_visible_navigation_entry)( - struct _cef_browser_host_t* self); + struct _cef_navigation_entry_t *(CEF_CALLBACK *get_visible_navigation_entry)( + struct _cef_browser_host_t *self); /// // Set accessibility state for all frames. |accessibility_state| may be @@ -1190,7 +1146,7 @@ typedef struct _cef_browser_host_t { // objects are not created. The client may implement platform accessibility // objects using CefAccessibiltyHandler callbacks if desired. /// - void(CEF_CALLBACK* set_accessibility_state)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_accessibility_state)(struct _cef_browser_host_t *self, cef_state_t accessibility_state); /// @@ -1198,198 +1154,187 @@ typedef struct _cef_browser_host_t { // cef_display_handler_t::OnAutoResize. Notifications are disabled by default. // |min_size| and |max_size| define the range of allowed sizes. /// - void(CEF_CALLBACK* set_auto_resize_enabled)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_auto_resize_enabled)(struct _cef_browser_host_t *self, int enabled, - const cef_size_t* min_size, - const cef_size_t* max_size); + const cef_size_t *min_size, + const cef_size_t *max_size); /// // Returns the extension hosted in this browser or NULL if no extension is // hosted. See cef_request_context_t::LoadExtension for details. /// - struct _cef_extension_t*(CEF_CALLBACK* get_extension)( - struct _cef_browser_host_t* self); + struct _cef_extension_t *(CEF_CALLBACK *get_extension)( + struct _cef_browser_host_t *self); /// // Returns true (1) if this browser is hosting an extension background script. // Background hosts do not have a window and are not displayable. See // cef_request_context_t::LoadExtension for details. /// - int(CEF_CALLBACK* is_background_host)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *is_background_host)(struct _cef_browser_host_t *self); /// // Set whether the browser's audio is muted. /// - void(CEF_CALLBACK* set_audio_muted)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_audio_muted)(struct _cef_browser_host_t *self, int mute); /// // Returns true (1) if the browser's audio is muted. This function can only // be called on the UI thread. /// - int(CEF_CALLBACK* is_audio_muted)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *is_audio_muted)(struct _cef_browser_host_t *self); /// // Set the audio resume interval of the broswer. /// - void(CEF_CALLBACK* set_audio_resume_interval)( - struct _cef_browser_host_t* self, - int resumeInterval); + void(CEF_CALLBACK *set_audio_resume_interval)( + struct _cef_browser_host_t *self, int resumeInterval); /// // Set whether the browser's audio is exclusive. /// - void(CEF_CALLBACK* set_audio_exclusive)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_audio_exclusive)(struct _cef_browser_host_t *self, int audioExclusive); /// // Execute a string of JavaScript code, return result by callback /// - void(CEF_CALLBACK* execute_java_script)( - struct _cef_browser_host_t* self, - const cef_string_t* code, - struct _cef_java_script_result_callback_t* callback, - int extention); + void(CEF_CALLBACK *execute_java_script)( + struct _cef_browser_host_t *self, const cef_string_t *code, + struct _cef_java_script_result_callback_t *callback, int extention); /// // Set native window from ohos rs /// - void(CEF_CALLBACK* set_native_window)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_native_window)(struct _cef_browser_host_t *self, cef_native_window_t window); /// // Set web debugging access /// - void(CEF_CALLBACK* set_web_debugging_access)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_web_debugging_access)(struct _cef_browser_host_t *self, int isEnableDebug); /// // Get web debugging access /// - int(CEF_CALLBACK* get_web_debugging_access)(struct _cef_browser_host_t* self); + int(CEF_CALLBACK *get_web_debugging_access)(struct _cef_browser_host_t *self); /// // GetImageForContextNode /// - void(CEF_CALLBACK* get_image_for_context_node)( - struct _cef_browser_host_t* self); + void(CEF_CALLBACK *get_image_for_context_node)( + struct _cef_browser_host_t *self); /// // GetImageFromCache /// - void(CEF_CALLBACK* get_image_from_cache)(struct _cef_browser_host_t* self, - const cef_string_t* url); + void(CEF_CALLBACK *get_image_from_cache)(struct _cef_browser_host_t *self, + const cef_string_t *url); /// // ExitFullScreen /// - void(CEF_CALLBACK* exit_full_screen)(struct _cef_browser_host_t* self); + void(CEF_CALLBACK *exit_full_screen)(struct _cef_browser_host_t *self); /// // UpdateLocale /// - void(CEF_CALLBACK* update_locale)(struct _cef_browser_host_t* self, - const cef_string_t* locale); + void(CEF_CALLBACK *update_locale)(struct _cef_browser_host_t *self, + const cef_string_t *locale); /// // Returns the original url of the request. /// // The resulting string must be freed by calling cef_string_userfree_free(). - cef_string_userfree_t(CEF_CALLBACK* get_original_url)( - struct _cef_browser_host_t* self); + cef_string_userfree_t(CEF_CALLBACK *get_original_url)( + struct _cef_browser_host_t *self); /// // Set network status /// - void(CEF_CALLBACK* put_network_available)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *put_network_available)(struct _cef_browser_host_t *self, int available); /// // Remove web cache /// - void(CEF_CALLBACK* remove_cache)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *remove_cache)(struct _cef_browser_host_t *self, int include_disk_files); /// // Scroll page up or down /// - void(CEF_CALLBACK* scroll_page_up_down)(struct _cef_browser_host_t* self, - int is_up, - int is_half, + void(CEF_CALLBACK *scroll_page_up_down)(struct _cef_browser_host_t *self, + int is_up, int is_half, float view_height); /// // Get web history state /// - struct _cef_binary_value_t*(CEF_CALLBACK* get_web_state)( - struct _cef_browser_host_t* self); + struct _cef_binary_value_t *(CEF_CALLBACK *get_web_state)( + struct _cef_browser_host_t *self); /// // Restore web history state /// - int(CEF_CALLBACK* restore_web_state)(struct _cef_browser_host_t* self, - struct _cef_binary_value_t* state); + int(CEF_CALLBACK *restore_web_state)(struct _cef_browser_host_t *self, + struct _cef_binary_value_t *state); /// // Scroll to the position. /// - void(CEF_CALLBACK* scroll_to)(struct _cef_browser_host_t* self, - float x, + void(CEF_CALLBACK *scroll_to)(struct _cef_browser_host_t *self, float x, float y); /// // Scroll by the delta distance. /// - void(CEF_CALLBACK* scroll_by)(struct _cef_browser_host_t* self, - float delta_x, + void(CEF_CALLBACK *scroll_by)(struct _cef_browser_host_t *self, float delta_x, float delta_y); /// // Slide Scroll by the speed. /// - void(CEF_CALLBACK* slide_scroll)(struct _cef_browser_host_t* self, - float vx, + void(CEF_CALLBACK *slide_scroll)(struct _cef_browser_host_t *self, float vx, float vy); /// // Set whether webview can access files /// - void(CEF_CALLBACK* set_file_access)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_file_access)(struct _cef_browser_host_t *self, int falg); /// // Set whether webview can access network /// - void(CEF_CALLBACK* set_block_network)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_block_network)(struct _cef_browser_host_t *self, int falg); /// // Set the cache mode of webview /// - void(CEF_CALLBACK* set_cache_mode)(struct _cef_browser_host_t* self, + void(CEF_CALLBACK *set_cache_mode)(struct _cef_browser_host_t *self, int falg); /// // Set should frame submission before draw /// - void(CEF_CALLBACK* set_should_frame_submission_before_draw)( - struct _cef_browser_host_t* self, - int should); + void(CEF_CALLBACK *set_should_frame_submission_before_draw)( + struct _cef_browser_host_t *self, int should); /// // Set zoom with the dela facetor /// - void(CEF_CALLBACK* zoom_by)(struct _cef_browser_host_t* self, - float delta, - float width, - float height); + void(CEF_CALLBACK *zoom_by)(struct _cef_browser_host_t *self, float delta, + float width, float height); /// // Set the window id of the UI framework /// - void(CEF_CALLBACK* set_window_id)(struct _cef_browser_host_t* self, - int window_id, - int nweb_id); + void(CEF_CALLBACK *set_window_id)(struct _cef_browser_host_t *self, + int window_id, int nweb_id); } cef_browser_host_t; /// @@ -1403,12 +1348,10 @@ typedef struct _cef_browser_host_t { // render process. /// CEF_EXPORT 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_dictionary_value_t* extra_info, - struct _cef_request_context_t* request_context); + 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_dictionary_value_t *extra_info, + struct _cef_request_context_t *request_context); /// // Create a new browser using the window parameters specified by |windowInfo|. @@ -1418,13 +1361,11 @@ CEF_EXPORT int cef_browser_host_create_browser( // specific to the created browser that will be passed to // cef_render_process_handler_t::on_browser_created() in the render process. /// -CEF_EXPORT 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_dictionary_value_t* extra_info, - struct _cef_request_context_t* request_context); +CEF_EXPORT 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_dictionary_value_t *extra_info, + struct _cef_request_context_t *request_context); /// // Structure to implement to be notified of asynchronous completion via @@ -1440,9 +1381,9 @@ typedef struct _cef_java_script_result_callback_t { // Method that will be called upon completion. |num_deleted| will be the // number of cookies that were deleted. /// - void(CEF_CALLBACK* on_java_script_exe_result)( - struct _cef_java_script_result_callback_t* self, - struct _cef_value_t* result); + void(CEF_CALLBACK *on_java_script_exe_result)( + struct _cef_java_script_result_callback_t *self, + struct _cef_value_t *result); } cef_java_script_result_callback_t; /// @@ -1459,9 +1400,9 @@ typedef struct _cef_store_web_archive_result_callback_t { // Method that will be called upon completion. |result| will either be the // filename under which the file was saved, or NULL if saving the file failed. /// - void(CEF_CALLBACK* on_store_web_archive_done)( - struct _cef_store_web_archive_result_callback_t* self, - const cef_string_t* result); + void(CEF_CALLBACK *on_store_web_archive_done)( + struct _cef_store_web_archive_result_callback_t *self, + const cef_string_t *result); } cef_store_web_archive_result_callback_t; /// @@ -1477,12 +1418,12 @@ typedef struct _cef_web_message_receiver_t { // Method that will be called upon |PostPortMessage|. |message| will be sent // to another end of web message channel. /// - void(CEF_CALLBACK* on_message)(struct _cef_web_message_receiver_t* self, - struct _cef_value_t* message); + void(CEF_CALLBACK *on_message)(struct _cef_web_message_receiver_t *self, + struct _cef_value_t *message); } cef_web_message_receiver_t; #ifdef __cplusplus } #endif -#endif // CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_ +#endif // CEF_INCLUDE_CAPI_CEF_BROWSER_CAPI_H_ diff --git a/include/cef_api_hash.h b/include/cef_api_hash.h index 580b55ad6..35a92d520 100644 --- a/include/cef_api_hash.h +++ b/include/cef_api_hash.h @@ -42,15 +42,15 @@ // way that may cause binary incompatibility with other builds. The universal // hash value will change if any platform is affected whereas the platform hash // values will change only if that particular platform is affected. -#define CEF_API_HASH_UNIVERSAL "b0d9ebc3b55f166d16c16626f436400a1bbe84ff" +#define CEF_API_HASH_UNIVERSAL "59162f853721a1af11bedc887a854836cfe7d678" #if defined(OS_WIN) -#define CEF_API_HASH_PLATFORM "046cb0339f8e66b03af4af1c31050ad0d1527ccb" +#define CEF_API_HASH_PLATFORM "db4f64a322df7dc67c474809c04a32b7b74d2bfa" #elif defined(OS_MAC) -#define CEF_API_HASH_PLATFORM "4dff54e4903298bb70bc3c93bb717e66ff9b3d93" +#define CEF_API_HASH_PLATFORM "40c167b27881003dbd1ab45879ca40cadf1c8340" #elif defined(OS_LINUX) -#define CEF_API_HASH_PLATFORM "c91b99ccaaf56573b7271b750080bd9ee26febf8" +#define CEF_API_HASH_PLATFORM "a67604ca783d6e4b91af5daf5ead5c8d9242000b" #elif defined(OS_OHOS) -#define CEF_API_HASH_PLATFORM "c91b99ccaaf56573b7271b750080bd9ee26febf8" +#define CEF_API_HASH_PLATFORM "a67604ca783d6e4b91af5daf5ead5c8d9242000b" #endif #ifdef __cplusplus diff --git a/include/cef_browser.h b/include/cef_browser.h index 739927231..d886c0850 100644 --- a/include/cef_browser.h +++ b/include/cef_browser.h @@ -963,6 +963,13 @@ class CefBrowserHost : public virtual CefBaseRefCounted { bool auto_name, CefRefPtr callback) = 0; + /// + // Notify the browser that the widget has been resized because of virtual + // keyboard. + /// + /*--cef()--*/ + virtual void WasKeyboardResized() = 0; + /* ---------- ohos webview add end --------- */ /// diff --git a/libcef/browser/alloy/alloy_browser_host_impl.cc b/libcef/browser/alloy/alloy_browser_host_impl.cc index ee25d81b9..3cacdabb8 100644 --- a/libcef/browser/alloy/alloy_browser_host_impl.cc +++ b/libcef/browser/alloy/alloy_browser_host_impl.cc @@ -1965,6 +1965,18 @@ void AlloyBrowserHostImpl::SetWindowId(int window_id, int nweb_id) { nweb_id_ = nweb_id; }; +void AlloyBrowserHostImpl::WasKeyboardResized() { + if (!CEF_CURRENTLY_ON_UIT()) { + CEF_POST_TASK( + CEF_UIT, + base::BindOnce(&AlloyBrowserHostImpl::WasKeyboardResized, this)); + return; + } + + if (platform_delegate_) + platform_delegate_->WasKeyboardResized(); +} + void AlloyBrowserHostImpl::OpenDateTimeChooser() { content::DateTimeChooserOHOS* date_time_chooser = content::DateTimeChooserOHOS::FromWebContents(web_contents()); diff --git a/libcef/browser/alloy/alloy_browser_host_impl.h b/libcef/browser/alloy/alloy_browser_host_impl.h index cd64d3146..3002df8d6 100644 --- a/libcef/browser/alloy/alloy_browser_host_impl.h +++ b/libcef/browser/alloy/alloy_browser_host_impl.h @@ -200,6 +200,7 @@ class AlloyBrowserHostImpl : public CefBrowserHostBase, bool ShowContextMenu(const content::ContextMenuParams& params); void SetShouldFrameSubmissionBeforeDraw(bool should) override; void SetWindowId(int window_id, int nweb_id) override; + void WasKeyboardResized() override; #else bool HandleContextMenu(content::WebContents* web_contents, const content::ContextMenuParams& params); diff --git a/libcef/browser/browser_platform_delegate.h b/libcef/browser/browser_platform_delegate.h index aeb2606b2..32cda0e50 100644 --- a/libcef/browser/browser_platform_delegate.h +++ b/libcef/browser/browser_platform_delegate.h @@ -390,7 +390,10 @@ class CefBrowserPlatformDelegate { bool right_aligned, bool allow_multiple_selection); +#if BUILDFLAG(IS_OHOS) virtual void SetShouldFrameSubmissionBeforeDraw(bool should) {}; + virtual void WasKeyboardResized() {}; +#endif protected: // Allow deletion via std::unique_ptr only. friend std::default_delete; diff --git a/libcef/browser/osr/browser_platform_delegate_osr.cc b/libcef/browser/osr/browser_platform_delegate_osr.cc index 82a239e61..6a3f53204 100644 --- a/libcef/browser/osr/browser_platform_delegate_osr.cc +++ b/libcef/browser/osr/browser_platform_delegate_osr.cc @@ -750,9 +750,17 @@ CefRenderWidgetHostViewOSR* CefBrowserPlatformDelegateOsr::GetOSRHostView() return nullptr; } +#if BUILDFLAG(IS_OHOS) void CefBrowserPlatformDelegateOsr::SetShouldFrameSubmissionBeforeDraw( bool should) { CefRenderWidgetHostViewOSR* view = GetOSRHostView(); if (view) view->SetShouldFrameSubmissionBeforeDraw(should); -} \ No newline at end of file +} + +void CefBrowserPlatformDelegateOsr::WasKeyboardResized() { + CefRenderWidgetHostViewOSR* view = GetOSRHostView(); + if (view) + view->WasKeyboardResized(); +} +#endif diff --git a/libcef/browser/osr/browser_platform_delegate_osr.h b/libcef/browser/osr/browser_platform_delegate_osr.h index 1f99313f2..8d3d20738 100644 --- a/libcef/browser/osr/browser_platform_delegate_osr.h +++ b/libcef/browser/osr/browser_platform_delegate_osr.h @@ -114,7 +114,10 @@ class CefBrowserPlatformDelegateOsr void OnHideAutofillPopup() override; void ShowPasswordDialog(bool is_update, const std::string& url) override; #endif +#if BUILDFLAG(IS_OHOS) void SetShouldFrameSubmissionBeforeDraw(bool should) override; + void WasKeyboardResized() override; +#endif // CefBrowserPlatformDelegateNative::WindowlessHandler methods: CefWindowHandle GetParentWindowHandle() const override; gfx::Point GetParentScreenPoint(const gfx::Point& view) const override; diff --git a/libcef/browser/osr/render_widget_host_view_osr.cc b/libcef/browser/osr/render_widget_host_view_osr.cc index 661d11382..6b0db2452 100644 --- a/libcef/browser/osr/render_widget_host_view_osr.cc +++ b/libcef/browser/osr/render_widget_host_view_osr.cc @@ -1327,7 +1327,12 @@ void CefRenderWidgetHostViewOSR::SetShouldFrameSubmissionBeforeDraw( void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties( const cc::DeadlinePolicy& deadline_policy, +#if BUILDFLAG(IS_OHOS) + const absl::optional& child_local_surface_id, + bool isKeyboard) { +#else const absl::optional& child_local_surface_id) { +#endif SetFrameRate(); const bool resized = ResizeRootLayer(); @@ -1368,6 +1373,13 @@ void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties( // DelegatedFrameHost and this view, so SynchronizeVisualProperties must be // called last. if (render_widget_host_) { +#if BUILDFLAG(IS_OHOS) + if (isKeyboard) { + LOG(INFO) << "scroll focused node into view"; + render_widget_host_->SynchronizeVisualProperties(isKeyboard); + return; + } +#endif render_widget_host_->SynchronizeVisualProperties(); } } @@ -1879,6 +1891,30 @@ std::u16string CefRenderWidgetHostViewOSR::GetSelectedText() { return text_input_manager_->GetTextSelection(this)->selected_text(); return std::u16string(); } + +void CefRenderWidgetHostViewOSR::WasKeyboardResized() { + UpdateEditBounds(); + if (is_select_text_) { + auto processedOffset = HandleCursorOffset(); + CefRefPtr handler = + browser_impl_->GetClient()->GetRenderHandler(); + CHECK(handler); + handler->OnCursorUpdate( + browser_impl_->GetBrowser(), + CefRect(processedOffset.first, processedOffset.second, + focus_rect_width_, focus_rect_height_)); + } + // Only one resize will be in-flight at a time. + if (hold_resize_) { + if (!pending_resize_) + pending_resize_ = true; + return; + } + + bool isKeyboardResized = true; + SynchronizeVisualProperties(cc::DeadlinePolicy::UseExistingDeadline(), + absl::nullopt, isKeyboardResized); +} #endif void CefRenderWidgetHostViewOSR::OnGestureEvent( diff --git a/libcef/browser/osr/render_widget_host_view_osr.h b/libcef/browser/osr/render_widget_host_view_osr.h index 900bab3a5..261f795d0 100644 --- a/libcef/browser/osr/render_widget_host_view_osr.h +++ b/libcef/browser/osr/render_widget_host_view_osr.h @@ -254,6 +254,7 @@ class CefRenderWidgetHostViewOSR void SendGestureEvent(const ui::GestureEventData& gesture); std::u16string GetSelectedText() override; + void WasKeyboardResized(); #endif bool InstallTransparency(); @@ -261,7 +262,12 @@ class CefRenderWidgetHostViewOSR void WasResized(); void SynchronizeVisualProperties( const cc::DeadlinePolicy& deadline_policy, +#if BUILDFLAG(IS_OHOS) + const absl::optional& child_local_surface_id, + bool isKeyboard = false); +#else const absl::optional& child_local_surface_id); +#endif void OnScreenInfoChanged(); void Invalidate(CefBrowserHost::PaintElementType type); void SendExternalBeginFrame(); diff --git a/libcef_dll/cpptoc/browser_host_cpptoc.cc b/libcef_dll/cpptoc/browser_host_cpptoc.cc index 158ff2d41..bfdfdeec1 100644 --- a/libcef_dll/cpptoc/browser_host_cpptoc.cc +++ b/libcef_dll/cpptoc/browser_host_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=00bc7f369fc275076cb3d2c3ea81f871d2d52754$ +// $hash=9c96357f5492ca971fb691efde09334789599e47$ // #include "libcef_dll/cpptoc/browser_host_cpptoc.h" @@ -38,12 +38,10 @@ // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT 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_dictionary_value_t* extra_info, - struct _cef_request_context_t* request_context) { + 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_dictionary_value_t *extra_info, + struct _cef_request_context_t *request_context) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -77,13 +75,11 @@ CEF_EXPORT int cef_browser_host_create_browser( return _retval; } -CEF_EXPORT 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_dictionary_value_t* extra_info, - struct _cef_request_context_t* request_context) { +CEF_EXPORT 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_dictionary_value_t *extra_info, + struct _cef_request_context_t *request_context) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -121,8 +117,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. -cef_browser_t* CEF_CALLBACK -browser_host_get_browser(struct _cef_browser_host_t* self) { +cef_browser_t *CEF_CALLBACK +browser_host_get_browser(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -138,9 +134,8 @@ browser_host_get_browser(struct _cef_browser_host_t* self) { return CefBrowserCppToC::Wrap(_retval); } -void CEF_CALLBACK -browser_host_post_task_to_uithread(struct _cef_browser_host_t* self, - struct _cef_task_t* task) { +void CEF_CALLBACK browser_host_post_task_to_uithread( + struct _cef_browser_host_t *self, struct _cef_task_t *task) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -158,7 +153,7 @@ browser_host_post_task_to_uithread(struct _cef_browser_host_t* self, CefTaskCToCpp::Wrap(task)); } -void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t *self, int force_close) { shutdown_checker::AssertNotShutdown(); @@ -173,7 +168,7 @@ void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self, } int CEF_CALLBACK -browser_host_try_close_browser(struct _cef_browser_host_t* self) { +browser_host_try_close_browser(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -189,7 +184,7 @@ browser_host_try_close_browser(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t *self, int focus) { shutdown_checker::AssertNotShutdown(); @@ -204,7 +199,7 @@ void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self, } cef_window_handle_t CEF_CALLBACK -browser_host_get_window_handle(struct _cef_browser_host_t* self) { +browser_host_get_window_handle(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -222,7 +217,7 @@ browser_host_get_window_handle(struct _cef_browser_host_t* self) { } cef_window_handle_t CEF_CALLBACK -browser_host_get_opener_window_handle(struct _cef_browser_host_t* self) { +browser_host_get_opener_window_handle(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -239,7 +234,7 @@ browser_host_get_opener_window_handle(struct _cef_browser_host_t* self) { return _retval; } -int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) { +int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -255,8 +250,8 @@ int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) { return _retval; } -struct _cef_client_t* CEF_CALLBACK -browser_host_get_client(struct _cef_browser_host_t* self) { +struct _cef_client_t *CEF_CALLBACK +browser_host_get_client(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -272,8 +267,8 @@ browser_host_get_client(struct _cef_browser_host_t* self) { return CefClientCToCpp::Unwrap(_retval); } -struct _cef_request_context_t* CEF_CALLBACK -browser_host_get_request_context(struct _cef_browser_host_t* self) { +struct _cef_request_context_t *CEF_CALLBACK +browser_host_get_request_context(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -291,7 +286,7 @@ browser_host_get_request_context(struct _cef_browser_host_t* self) { } double CEF_CALLBACK -browser_host_get_zoom_level(struct _cef_browser_host_t* self) { +browser_host_get_zoom_level(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -307,7 +302,7 @@ browser_host_get_zoom_level(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t *self, double zoomLevel) { shutdown_checker::AssertNotShutdown(); @@ -321,14 +316,11 @@ void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetZoomLevel(zoomLevel); } -void CEF_CALLBACK -browser_host_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, - cef_run_file_dialog_callback_t* callback) { +void CEF_CALLBACK browser_host_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, + cef_run_file_dialog_callback_t *callback) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -356,8 +348,8 @@ browser_host_run_file_dialog(struct _cef_browser_host_t* self, selected_accept_filter, CefRunFileDialogCallbackCToCpp::Wrap(callback)); } -void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self, - const cef_string_t* url) { +void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t *self, + const cef_string_t *url) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -374,16 +366,12 @@ void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->StartDownload(CefString(url)); } -void CEF_CALLBACK -browser_host_resume_download(struct _cef_browser_host_t* self, - const cef_string_t* url, - const cef_string_t* full_path, - int64 received_bytes, - int64 total_bytes, - const cef_string_t* etag, - const cef_string_t* mime_type, - const cef_string_t* last_modified, - const cef_string_t* received_slices_string) { +void CEF_CALLBACK browser_host_resume_download( + struct _cef_browser_host_t *self, const cef_string_t *url, + const cef_string_t *full_path, int64 received_bytes, int64 total_bytes, + const cef_string_t *etag, const cef_string_t *mime_type, + const cef_string_t *last_modified, + const cef_string_t *received_slices_string) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -412,13 +400,10 @@ browser_host_resume_download(struct _cef_browser_host_t* self, CefString(received_slices_string)); } -void CEF_CALLBACK -browser_host_download_image(struct _cef_browser_host_t* self, - const cef_string_t* image_url, - int is_favicon, - uint32 max_image_size, - int bypass_cache, - cef_download_image_callback_t* callback) { +void CEF_CALLBACK browser_host_download_image( + struct _cef_browser_host_t *self, const cef_string_t *image_url, + int is_favicon, uint32 max_image_size, int bypass_cache, + cef_download_image_callback_t *callback) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -442,7 +427,7 @@ browser_host_download_image(struct _cef_browser_host_t* self, CefDownloadImageCallbackCToCpp::Wrap(callback)); } -void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t* self) { +void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -455,11 +440,10 @@ void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->Print(); } -void CEF_CALLBACK -browser_host_print_to_pdf(struct _cef_browser_host_t* self, - const cef_string_t* path, - const struct _cef_pdf_print_settings_t* settings, - cef_pdf_print_callback_t* callback) { +void CEF_CALLBACK browser_host_print_to_pdf( + struct _cef_browser_host_t *self, const cef_string_t *path, + const struct _cef_pdf_print_settings_t *settings, + cef_pdf_print_callback_t *callback) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -487,11 +471,9 @@ browser_host_print_to_pdf(struct _cef_browser_host_t* self, CefString(path), settingsObj, CefPdfPrintCallbackCToCpp::Wrap(callback)); } -void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self, - const cef_string_t* searchText, - int forward, - int matchCase, - int findNext, +void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t *self, + const cef_string_t *searchText, int forward, + int matchCase, int findNext, int newSession) { shutdown_checker::AssertNotShutdown(); @@ -511,7 +493,7 @@ void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self, findNext ? true : false, newSession ? true : false); } -void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t *self, int clearSelection) { shutdown_checker::AssertNotShutdown(); @@ -525,12 +507,11 @@ void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->StopFinding(clearSelection ? true : false); } -void CEF_CALLBACK -browser_host_show_dev_tools(struct _cef_browser_host_t* self, - const 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 CEF_CALLBACK browser_host_show_dev_tools( + struct _cef_browser_host_t *self, const cef_window_info_t *windowInfo, + struct _cef_client_t *client, + const struct _cef_browser_settings_t *settings, + const cef_point_t *inspect_element_at) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -559,7 +540,7 @@ browser_host_show_dev_tools(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_close_dev_tools(struct _cef_browser_host_t* self) { +browser_host_close_dev_tools(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -572,7 +553,7 @@ browser_host_close_dev_tools(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->CloseDevTools(); } -int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t* self) { +int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -589,9 +570,8 @@ int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t* self) { } int CEF_CALLBACK -browser_host_send_dev_tools_message(struct _cef_browser_host_t* self, - const void* message, - size_t message_size) { +browser_host_send_dev_tools_message(struct _cef_browser_host_t *self, + const void *message, size_t message_size) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -612,11 +592,9 @@ browser_host_send_dev_tools_message(struct _cef_browser_host_t* self, return _retval; } -int CEF_CALLBACK -browser_host_execute_dev_tools_method(struct _cef_browser_host_t* self, - int message_id, - const cef_string_t* method, - struct _cef_dictionary_value_t* params) { +int CEF_CALLBACK browser_host_execute_dev_tools_method( + struct _cef_browser_host_t *self, int message_id, + const cef_string_t *method, struct _cef_dictionary_value_t *params) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -638,10 +616,10 @@ browser_host_execute_dev_tools_method(struct _cef_browser_host_t* self, return _retval; } -struct _cef_registration_t* CEF_CALLBACK +struct _cef_registration_t *CEF_CALLBACK browser_host_add_dev_tools_message_observer( - struct _cef_browser_host_t* self, - struct _cef_dev_tools_message_observer_t* observer) { + struct _cef_browser_host_t *self, + struct _cef_dev_tools_message_observer_t *observer) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -663,10 +641,9 @@ browser_host_add_dev_tools_message_observer( return CefRegistrationCppToC::Wrap(_retval); } -void CEF_CALLBACK -browser_host_get_navigation_entries(struct _cef_browser_host_t* self, - cef_navigation_entry_visitor_t* visitor, - int current_only) { +void CEF_CALLBACK browser_host_get_navigation_entries( + struct _cef_browser_host_t *self, cef_navigation_entry_visitor_t *visitor, + int current_only) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -685,9 +662,8 @@ browser_host_get_navigation_entries(struct _cef_browser_host_t* self, current_only ? true : false); } -void CEF_CALLBACK -browser_host_replace_misspelling(struct _cef_browser_host_t* self, - const cef_string_t* word) { +void CEF_CALLBACK browser_host_replace_misspelling( + struct _cef_browser_host_t *self, const cef_string_t *word) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -704,9 +680,8 @@ browser_host_replace_misspelling(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->ReplaceMisspelling(CefString(word)); } -void CEF_CALLBACK -browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self, - const cef_string_t* word) { +void CEF_CALLBACK browser_host_add_word_to_dictionary( + struct _cef_browser_host_t *self, const cef_string_t *word) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -724,7 +699,7 @@ browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self, } int CEF_CALLBACK -browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) { +browser_host_is_window_rendering_disabled(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -740,7 +715,7 @@ browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t* self) { +void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -753,7 +728,7 @@ void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->WasResized(); } -void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t *self, int hidden) { shutdown_checker::AssertNotShutdown(); @@ -767,7 +742,7 @@ void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->WasHidden(hidden ? true : false); } -void CEF_CALLBACK browser_host_was_occluded(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_was_occluded(struct _cef_browser_host_t *self, int occluded) { shutdown_checker::AssertNotShutdown(); @@ -782,7 +757,7 @@ void CEF_CALLBACK browser_host_was_occluded(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) { +browser_host_notify_screen_info_changed(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -795,9 +770,8 @@ browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->NotifyScreenInfoChanged(); } -void CEF_CALLBACK -browser_host_set_virtual_pixel_ratio(struct _cef_browser_host_t* self, - float ratio) { +void CEF_CALLBACK browser_host_set_virtual_pixel_ratio( + struct _cef_browser_host_t *self, float ratio) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -810,7 +784,7 @@ browser_host_set_virtual_pixel_ratio(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetVirtualPixelRatio(ratio); } -void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t *self, cef_paint_element_type_t type) { shutdown_checker::AssertNotShutdown(); @@ -825,7 +799,7 @@ void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_send_external_begin_frame(struct _cef_browser_host_t* self) { +browser_host_send_external_begin_frame(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -838,9 +812,8 @@ browser_host_send_external_begin_frame(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->SendExternalBeginFrame(); } -void CEF_CALLBACK -browser_host_send_key_event(struct _cef_browser_host_t* self, - const struct _cef_key_event_t* event) { +void CEF_CALLBACK browser_host_send_key_event( + struct _cef_browser_host_t *self, const struct _cef_key_event_t *event) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -862,12 +835,9 @@ browser_host_send_key_event(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SendKeyEvent(eventObj); } -void CEF_CALLBACK -browser_host_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 CEF_CALLBACK browser_host_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) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -890,10 +860,9 @@ browser_host_send_mouse_click_event(struct _cef_browser_host_t* self, eventObj, type, mouseUp ? true : false, clickCount); } -void CEF_CALLBACK -browser_host_send_mouse_move_event(struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event, - int mouseLeave) { +void CEF_CALLBACK browser_host_send_mouse_move_event( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, + int mouseLeave) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -916,11 +885,9 @@ browser_host_send_mouse_move_event(struct _cef_browser_host_t* self, eventObj, mouseLeave ? true : false); } -void CEF_CALLBACK -browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event, - int deltaX, - int deltaY) { +void CEF_CALLBACK browser_host_send_mouse_wheel_event( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, + int deltaX, int deltaY) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -943,9 +910,8 @@ browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self, deltaY); } -void CEF_CALLBACK -browser_host_send_touch_event(struct _cef_browser_host_t* self, - const struct _cef_touch_event_t* event) { +void CEF_CALLBACK browser_host_send_touch_event( + struct _cef_browser_host_t *self, const struct _cef_touch_event_t *event) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -968,7 +934,7 @@ browser_host_send_touch_event(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) { +browser_host_send_capture_lost_event(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -982,7 +948,7 @@ browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) { } void CEF_CALLBACK -browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) { +browser_host_notify_move_or_resize_started(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -996,7 +962,7 @@ browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) { } int CEF_CALLBACK -browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) { +browser_host_get_windowless_frame_rate(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1012,9 +978,8 @@ browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK -browser_host_set_windowless_frame_rate(struct _cef_browser_host_t* self, - int frame_rate) { +void CEF_CALLBACK browser_host_set_windowless_frame_rate( + struct _cef_browser_host_t *self, int frame_rate) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1028,8 +993,8 @@ browser_host_set_windowless_frame_rate(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_set_web_preferences( - struct _cef_browser_host_t* self, - const struct _cef_browser_settings_t* browser_settings) { + struct _cef_browser_host_t *self, + const struct _cef_browser_settings_t *browser_settings) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1051,8 +1016,8 @@ void CEF_CALLBACK browser_host_set_web_preferences( CefBrowserHostCppToC::Get(self)->SetWebPreferences(browser_settingsObj); } -void CEF_CALLBACK browser_host_put_user_agent(struct _cef_browser_host_t* self, - const cef_string_t* ua) { +void CEF_CALLBACK browser_host_put_user_agent(struct _cef_browser_host_t *self, + const cef_string_t *ua) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1070,7 +1035,7 @@ void CEF_CALLBACK browser_host_put_user_agent(struct _cef_browser_host_t* self, } cef_string_userfree_t CEF_CALLBACK -browser_host_default_user_agent(struct _cef_browser_host_t* self) { +browser_host_default_user_agent(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1087,7 +1052,7 @@ browser_host_default_user_agent(struct _cef_browser_host_t* self) { } void CEF_CALLBACK -browser_host_set_background_color(struct _cef_browser_host_t* self, int color) { +browser_host_set_background_color(struct _cef_browser_host_t *self, int color) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1100,10 +1065,9 @@ browser_host_set_background_color(struct _cef_browser_host_t* self, int color) { CefBrowserHostCppToC::Get(self)->SetBackgroundColor(color); } -void CEF_CALLBACK -browser_host_register_ark_jsfunction(struct _cef_browser_host_t* self, - const cef_string_t* object_name, - cef_string_list_t method_list) { +void CEF_CALLBACK browser_host_register_ark_jsfunction( + struct _cef_browser_host_t *self, const cef_string_t *object_name, + cef_string_list_t method_list) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1129,10 +1093,9 @@ browser_host_register_ark_jsfunction(struct _cef_browser_host_t* self, method_listList); } -void CEF_CALLBACK -browser_host_unregister_ark_jsfunction(struct _cef_browser_host_t* self, - const cef_string_t* object_name, - cef_string_list_t method_list) { +void CEF_CALLBACK browser_host_unregister_ark_jsfunction( + struct _cef_browser_host_t *self, const cef_string_t *object_name, + cef_string_list_t method_list) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1156,10 +1119,8 @@ browser_host_unregister_ark_jsfunction(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_store_web_archive( - struct _cef_browser_host_t* self, - const cef_string_t* base_name, - int auto_name, - struct _cef_store_web_archive_result_callback_t* callback) { + struct _cef_browser_host_t *self, const cef_string_t *base_name, + int auto_name, struct _cef_store_web_archive_result_callback_t *callback) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1182,8 +1143,22 @@ void CEF_CALLBACK browser_host_store_web_archive( CefStoreWebArchiveResultCallbackCToCpp::Wrap(callback)); } +void CEF_CALLBACK +browser_host_was_keyboard_resized(struct _cef_browser_host_t *self) { + shutdown_checker::AssertNotShutdown(); + + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING + + DCHECK(self); + if (!self) + return; + + // Execute + CefBrowserHostCppToC::Get(self)->WasKeyboardResized(); +} + cef_string_userfree_t CEF_CALLBACK -browser_host_title(struct _cef_browser_host_t* self) { +browser_host_title(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1199,9 +1174,8 @@ browser_host_title(struct _cef_browser_host_t* self) { return _retval.DetachToUserFree(); } -void CEF_CALLBACK -browser_host_create_web_message_ports(struct _cef_browser_host_t* self, - cef_string_list_t ports) { +void CEF_CALLBACK browser_host_create_web_message_ports( + struct _cef_browser_host_t *self, cef_string_list_t ports) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1226,11 +1200,9 @@ browser_host_create_web_message_ports(struct _cef_browser_host_t* self, transfer_string_list_contents(portsList, ports); } -void CEF_CALLBACK -browser_host_post_web_message(struct _cef_browser_host_t* self, - cef_string_t* message, - cef_string_list_t ports, - cef_string_t* targetUri) { +void CEF_CALLBACK browser_host_post_web_message( + struct _cef_browser_host_t *self, cef_string_t *message, + cef_string_list_t ports, cef_string_t *targetUri) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1268,8 +1240,8 @@ browser_host_post_web_message(struct _cef_browser_host_t* self, transfer_string_list_contents(portsList, ports); } -void CEF_CALLBACK browser_host_close_port(struct _cef_browser_host_t* self, - cef_string_t* port_handle) { +void CEF_CALLBACK browser_host_close_port(struct _cef_browser_host_t *self, + cef_string_t *port_handle) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1290,7 +1262,7 @@ void CEF_CALLBACK browser_host_close_port(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_destroy_all_web_message_ports(struct _cef_browser_host_t* self) { +browser_host_destroy_all_web_message_ports(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1303,10 +1275,9 @@ browser_host_destroy_all_web_message_ports(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->DestroyAllWebMessagePorts(); } -void CEF_CALLBACK -browser_host_post_port_message(struct _cef_browser_host_t* self, - cef_string_t* port_handle, - struct _cef_value_t* message) { +void CEF_CALLBACK browser_host_post_port_message( + struct _cef_browser_host_t *self, cef_string_t *port_handle, + struct _cef_value_t *message) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1332,9 +1303,8 @@ browser_host_post_port_message(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_set_port_message_callback( - struct _cef_browser_host_t* self, - cef_string_t* port_handle, - struct _cef_web_message_receiver_t* callback) { + struct _cef_browser_host_t *self, cef_string_t *port_handle, + struct _cef_web_message_receiver_t *callback) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1359,9 +1329,9 @@ void CEF_CALLBACK browser_host_set_port_message_callback( port_handleStr, CefWebMessageReceiverCToCpp::Wrap(callback)); } -void CEF_CALLBACK browser_host_get_hit_data(struct _cef_browser_host_t* self, - int* type, - cef_string_t* extra_data) { +void CEF_CALLBACK browser_host_get_hit_data(struct _cef_browser_host_t *self, + int *type, + cef_string_t *extra_data) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1392,7 +1362,7 @@ void CEF_CALLBACK browser_host_get_hit_data(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_set_initial_scale(struct _cef_browser_host_t* self, float scale) { +browser_host_set_initial_scale(struct _cef_browser_host_t *self, float scale) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1406,7 +1376,7 @@ browser_host_set_initial_scale(struct _cef_browser_host_t* self, float scale) { } int CEF_CALLBACK -browser_host_page_load_progress(struct _cef_browser_host_t* self) { +browser_host_page_load_progress(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1422,7 +1392,7 @@ browser_host_page_load_progress(struct _cef_browser_host_t* self) { return _retval; } -float CEF_CALLBACK browser_host_scale(struct _cef_browser_host_t* self) { +float CEF_CALLBACK browser_host_scale(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1438,13 +1408,10 @@ float CEF_CALLBACK browser_host_scale(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK -browser_host_load_with_data_and_base_url(struct _cef_browser_host_t* self, - const cef_string_t* baseUrl, - const cef_string_t* data, - const cef_string_t* mimeType, - const cef_string_t* encoding, - const cef_string_t* historyUrl) { +void CEF_CALLBACK browser_host_load_with_data_and_base_url( + struct _cef_browser_host_t *self, const cef_string_t *baseUrl, + const cef_string_t *data, const cef_string_t *mimeType, + const cef_string_t *encoding, const cef_string_t *historyUrl) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1460,10 +1427,10 @@ browser_host_load_with_data_and_base_url(struct _cef_browser_host_t* self, CefString(encoding), CefString(historyUrl)); } -void CEF_CALLBACK browser_host_load_with_data(struct _cef_browser_host_t* self, - const cef_string_t* data, - const cef_string_t* mimeType, - const cef_string_t* encoding) { +void CEF_CALLBACK browser_host_load_with_data(struct _cef_browser_host_t *self, + const cef_string_t *data, + const cef_string_t *mimeType, + const cef_string_t *encoding) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1478,9 +1445,8 @@ void CEF_CALLBACK browser_host_load_with_data(struct _cef_browser_host_t* self, CefString(data), CefString(mimeType), CefString(encoding)); } -void CEF_CALLBACK -browser_host_add_visited_links(struct _cef_browser_host_t* self, - cef_string_list_t urls) { +void CEF_CALLBACK browser_host_add_visited_links( + struct _cef_browser_host_t *self, cef_string_list_t urls) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1498,13 +1464,10 @@ browser_host_add_visited_links(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->AddVisitedLinks(urlsList); } -void CEF_CALLBACK -browser_host_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 CEF_CALLBACK browser_host_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) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1542,11 +1505,9 @@ browser_host_ime_set_composition(struct _cef_browser_host_t* self, selection_rangeVal); } -void CEF_CALLBACK -browser_host_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 CEF_CALLBACK browser_host_ime_commit_text( + struct _cef_browser_host_t *self, const cef_string_t *text, + const cef_range_t *replacement_range, int relative_cursor_pos) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1569,9 +1530,8 @@ browser_host_ime_commit_text(struct _cef_browser_host_t* self, CefString(text), replacement_rangeVal, relative_cursor_pos); } -void CEF_CALLBACK -browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self, - int keep_selection) { +void CEF_CALLBACK browser_host_ime_finish_composing_text( + struct _cef_browser_host_t *self, int keep_selection) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1586,7 +1546,7 @@ browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_ime_cancel_composition(struct _cef_browser_host_t* self) { +browser_host_ime_cancel_composition(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1599,11 +1559,10 @@ browser_host_ime_cancel_composition(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->ImeCancelComposition(); } -void CEF_CALLBACK -browser_host_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 CEF_CALLBACK browser_host_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) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1630,10 +1589,9 @@ browser_host_drag_target_drag_enter(struct _cef_browser_host_t* self, CefDragDataCppToC::Unwrap(drag_data), eventObj, allowed_ops); } -void CEF_CALLBACK -browser_host_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 CEF_CALLBACK browser_host_drag_target_drag_over( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event, + cef_drag_operations_mask_t allowed_ops) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1656,7 +1614,7 @@ browser_host_drag_target_drag_over(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) { +browser_host_drag_target_drag_leave(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1669,9 +1627,8 @@ browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->DragTargetDragLeave(); } -void CEF_CALLBACK -browser_host_drag_target_drop(struct _cef_browser_host_t* self, - const struct _cef_mouse_event_t* event) { +void CEF_CALLBACK browser_host_drag_target_drop( + struct _cef_browser_host_t *self, const struct _cef_mouse_event_t *event) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1694,10 +1651,8 @@ browser_host_drag_target_drop(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_drag_source_ended_at(struct _cef_browser_host_t* self, - int x, - int y, - cef_drag_operations_mask_t op) { +browser_host_drag_source_ended_at(struct _cef_browser_host_t *self, int x, + int y, cef_drag_operations_mask_t op) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1711,7 +1666,7 @@ browser_host_drag_source_ended_at(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t* self) { +browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1724,8 +1679,8 @@ browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->DragSourceSystemDragEnded(); } -struct _cef_navigation_entry_t* CEF_CALLBACK -browser_host_get_visible_navigation_entry(struct _cef_browser_host_t* self) { +struct _cef_navigation_entry_t *CEF_CALLBACK +browser_host_get_visible_navigation_entry(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1742,9 +1697,8 @@ browser_host_get_visible_navigation_entry(struct _cef_browser_host_t* self) { return CefNavigationEntryCppToC::Wrap(_retval); } -void CEF_CALLBACK -browser_host_set_accessibility_state(struct _cef_browser_host_t* self, - cef_state_t accessibility_state) { +void CEF_CALLBACK browser_host_set_accessibility_state( + struct _cef_browser_host_t *self, cef_state_t accessibility_state) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1757,11 +1711,9 @@ browser_host_set_accessibility_state(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetAccessibilityState(accessibility_state); } -void CEF_CALLBACK -browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self, - int enabled, - const cef_size_t* min_size, - const cef_size_t* max_size) { +void CEF_CALLBACK browser_host_set_auto_resize_enabled( + struct _cef_browser_host_t *self, int enabled, const cef_size_t *min_size, + const cef_size_t *max_size) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1788,8 +1740,8 @@ browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self, enabled ? true : false, min_sizeVal, max_sizeVal); } -struct _cef_extension_t* CEF_CALLBACK -browser_host_get_extension(struct _cef_browser_host_t* self) { +struct _cef_extension_t *CEF_CALLBACK +browser_host_get_extension(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1807,7 +1759,7 @@ browser_host_get_extension(struct _cef_browser_host_t* self) { } int CEF_CALLBACK -browser_host_is_background_host(struct _cef_browser_host_t* self) { +browser_host_is_background_host(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1823,7 +1775,7 @@ browser_host_is_background_host(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK browser_host_set_audio_muted(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_set_audio_muted(struct _cef_browser_host_t *self, int mute) { shutdown_checker::AssertNotShutdown(); @@ -1837,7 +1789,7 @@ void CEF_CALLBACK browser_host_set_audio_muted(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetAudioMuted(mute ? true : false); } -int CEF_CALLBACK browser_host_is_audio_muted(struct _cef_browser_host_t* self) { +int CEF_CALLBACK browser_host_is_audio_muted(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1853,9 +1805,8 @@ int CEF_CALLBACK browser_host_is_audio_muted(struct _cef_browser_host_t* self) { return _retval; } -void CEF_CALLBACK -browser_host_set_audio_resume_interval(struct _cef_browser_host_t* self, - int resumeInterval) { +void CEF_CALLBACK browser_host_set_audio_resume_interval( + struct _cef_browser_host_t *self, int resumeInterval) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1868,9 +1819,8 @@ browser_host_set_audio_resume_interval(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetAudioResumeInterval(resumeInterval); } -void CEF_CALLBACK -browser_host_set_audio_exclusive(struct _cef_browser_host_t* self, - int audioExclusive) { +void CEF_CALLBACK browser_host_set_audio_exclusive( + struct _cef_browser_host_t *self, int audioExclusive) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1885,10 +1835,8 @@ browser_host_set_audio_exclusive(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_execute_java_script( - struct _cef_browser_host_t* self, - const cef_string_t* code, - struct _cef_java_script_result_callback_t* callback, - int extention) { + struct _cef_browser_host_t *self, const cef_string_t *code, + struct _cef_java_script_result_callback_t *callback, int extention) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1911,9 +1859,8 @@ void CEF_CALLBACK browser_host_execute_java_script( extention ? true : false); } -void CEF_CALLBACK -browser_host_set_native_window(struct _cef_browser_host_t* self, - cef_native_window_t window) { +void CEF_CALLBACK browser_host_set_native_window( + struct _cef_browser_host_t *self, cef_native_window_t window) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1926,9 +1873,8 @@ browser_host_set_native_window(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetNativeWindow(window); } -void CEF_CALLBACK -browser_host_set_web_debugging_access(struct _cef_browser_host_t* self, - int isEnableDebug) { +void CEF_CALLBACK browser_host_set_web_debugging_access( + struct _cef_browser_host_t *self, int isEnableDebug) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1943,7 +1889,7 @@ browser_host_set_web_debugging_access(struct _cef_browser_host_t* self, } int CEF_CALLBACK -browser_host_get_web_debugging_access(struct _cef_browser_host_t* self) { +browser_host_get_web_debugging_access(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1960,7 +1906,7 @@ browser_host_get_web_debugging_access(struct _cef_browser_host_t* self) { } void CEF_CALLBACK -browser_host_get_image_for_context_node(struct _cef_browser_host_t* self) { +browser_host_get_image_for_context_node(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1973,9 +1919,8 @@ browser_host_get_image_for_context_node(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->GetImageForContextNode(); } -void CEF_CALLBACK -browser_host_get_image_from_cache(struct _cef_browser_host_t* self, - const cef_string_t* url) { +void CEF_CALLBACK browser_host_get_image_from_cache( + struct _cef_browser_host_t *self, const cef_string_t *url) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -1993,7 +1938,7 @@ browser_host_get_image_from_cache(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_exit_full_screen(struct _cef_browser_host_t* self) { +browser_host_exit_full_screen(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2006,8 +1951,8 @@ browser_host_exit_full_screen(struct _cef_browser_host_t* self) { CefBrowserHostCppToC::Get(self)->ExitFullScreen(); } -void CEF_CALLBACK browser_host_update_locale(struct _cef_browser_host_t* self, - const cef_string_t* locale) { +void CEF_CALLBACK browser_host_update_locale(struct _cef_browser_host_t *self, + const cef_string_t *locale) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2025,7 +1970,7 @@ void CEF_CALLBACK browser_host_update_locale(struct _cef_browser_host_t* self, } cef_string_userfree_t CEF_CALLBACK -browser_host_get_original_url(struct _cef_browser_host_t* self) { +browser_host_get_original_url(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2041,9 +1986,8 @@ browser_host_get_original_url(struct _cef_browser_host_t* self) { return _retval.DetachToUserFree(); } -void CEF_CALLBACK -browser_host_put_network_available(struct _cef_browser_host_t* self, - int available) { +void CEF_CALLBACK browser_host_put_network_available( + struct _cef_browser_host_t *self, int available) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2057,7 +2001,7 @@ browser_host_put_network_available(struct _cef_browser_host_t* self, : false); } -void CEF_CALLBACK browser_host_remove_cache(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_remove_cache(struct _cef_browser_host_t *self, int include_disk_files) { shutdown_checker::AssertNotShutdown(); @@ -2073,10 +2017,8 @@ void CEF_CALLBACK browser_host_remove_cache(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_scroll_page_up_down(struct _cef_browser_host_t* self, - int is_up, - int is_half, - float view_height) { +browser_host_scroll_page_up_down(struct _cef_browser_host_t *self, int is_up, + int is_half, float view_height) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2090,8 +2032,8 @@ browser_host_scroll_page_up_down(struct _cef_browser_host_t* self, is_up ? true : false, is_half ? true : false, view_height); } -struct _cef_binary_value_t* CEF_CALLBACK -browser_host_get_web_state(struct _cef_browser_host_t* self) { +struct _cef_binary_value_t *CEF_CALLBACK +browser_host_get_web_state(struct _cef_browser_host_t *self) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2108,9 +2050,8 @@ browser_host_get_web_state(struct _cef_browser_host_t* self) { return CefBinaryValueCppToC::Wrap(_retval); } -int CEF_CALLBACK -browser_host_restore_web_state(struct _cef_browser_host_t* self, - struct _cef_binary_value_t* state) { +int CEF_CALLBACK browser_host_restore_web_state( + struct _cef_browser_host_t *self, struct _cef_binary_value_t *state) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2131,9 +2072,8 @@ browser_host_restore_web_state(struct _cef_browser_host_t* self, return _retval; } -void CEF_CALLBACK browser_host_scroll_to(struct _cef_browser_host_t* self, - float x, - float y) { +void CEF_CALLBACK browser_host_scroll_to(struct _cef_browser_host_t *self, + float x, float y) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2146,9 +2086,8 @@ void CEF_CALLBACK browser_host_scroll_to(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->ScrollTo(x, y); } -void CEF_CALLBACK browser_host_scroll_by(struct _cef_browser_host_t* self, - float delta_x, - float delta_y) { +void CEF_CALLBACK browser_host_scroll_by(struct _cef_browser_host_t *self, + float delta_x, float delta_y) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2161,9 +2100,8 @@ void CEF_CALLBACK browser_host_scroll_by(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->ScrollBy(delta_x, delta_y); } -void CEF_CALLBACK browser_host_slide_scroll(struct _cef_browser_host_t* self, - float vx, - float vy) { +void CEF_CALLBACK browser_host_slide_scroll(struct _cef_browser_host_t *self, + float vx, float vy) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2176,7 +2114,7 @@ void CEF_CALLBACK browser_host_slide_scroll(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SlideScroll(vx, vy); } -void CEF_CALLBACK browser_host_set_file_access(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_set_file_access(struct _cef_browser_host_t *self, int falg) { shutdown_checker::AssertNotShutdown(); @@ -2191,7 +2129,7 @@ void CEF_CALLBACK browser_host_set_file_access(struct _cef_browser_host_t* self, } void CEF_CALLBACK -browser_host_set_block_network(struct _cef_browser_host_t* self, int falg) { +browser_host_set_block_network(struct _cef_browser_host_t *self, int falg) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2204,7 +2142,7 @@ browser_host_set_block_network(struct _cef_browser_host_t* self, int falg) { CefBrowserHostCppToC::Get(self)->SetBlockNetwork(falg ? true : false); } -void CEF_CALLBACK browser_host_set_cache_mode(struct _cef_browser_host_t* self, +void CEF_CALLBACK browser_host_set_cache_mode(struct _cef_browser_host_t *self, int falg) { shutdown_checker::AssertNotShutdown(); @@ -2219,8 +2157,7 @@ void CEF_CALLBACK browser_host_set_cache_mode(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_set_should_frame_submission_before_draw( - struct _cef_browser_host_t* self, - int should) { + struct _cef_browser_host_t *self, int should) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2234,10 +2171,8 @@ void CEF_CALLBACK browser_host_set_should_frame_submission_before_draw( should ? true : false); } -void CEF_CALLBACK browser_host_zoom_by(struct _cef_browser_host_t* self, - float delta, - float width, - float height) { +void CEF_CALLBACK browser_host_zoom_by(struct _cef_browser_host_t *self, + float delta, float width, float height) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2250,9 +2185,8 @@ void CEF_CALLBACK browser_host_zoom_by(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->ZoomBy(delta, width, height); } -void CEF_CALLBACK browser_host_set_window_id(struct _cef_browser_host_t* self, - int window_id, - int nweb_id) { +void CEF_CALLBACK browser_host_set_window_id(struct _cef_browser_host_t *self, + int window_id, int nweb_id) { shutdown_checker::AssertNotShutdown(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING @@ -2265,7 +2199,7 @@ void CEF_CALLBACK browser_host_set_window_id(struct _cef_browser_host_t* self, CefBrowserHostCppToC::Get(self)->SetWindowId(window_id, nweb_id); } -} // namespace +} // namespace // CONSTRUCTOR - Do not edit by hand. @@ -2331,6 +2265,7 @@ CefBrowserHostCppToC::CefBrowserHostCppToC() { GetStruct()->unregister_ark_jsfunction = browser_host_unregister_ark_jsfunction; GetStruct()->store_web_archive = browser_host_store_web_archive; + GetStruct()->was_keyboard_resized = browser_host_was_keyboard_resized; GetStruct()->title = browser_host_title; GetStruct()->create_web_message_ports = browser_host_create_web_message_ports; GetStruct()->post_web_message = browser_host_post_web_message; @@ -2406,14 +2341,14 @@ CefBrowserHostCppToC::~CefBrowserHostCppToC() { template <> CefRefPtr -CefCppToCRefCounted:: - UnwrapDerived(CefWrapperType type, cef_browser_host_t* s) { +CefCppToCRefCounted::UnwrapDerived(CefWrapperType type, + cef_browser_host_t *s) { NOTREACHED() << "Unexpected class type: " << type; return nullptr; } template <> -CefWrapperType CefCppToCRefCounted::kWrapperType = WT_BROWSER_HOST; diff --git a/libcef_dll/ctocpp/browser_host_ctocpp.cc b/libcef_dll/ctocpp/browser_host_ctocpp.cc index 658562a0a..05d325cf0 100644 --- a/libcef_dll/ctocpp/browser_host_ctocpp.cc +++ b/libcef_dll/ctocpp/browser_host_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e77450a14e73e27cba5898fe13eedc8ebec6a90e$ +// $hash=e54557b8104e13c6fe2c59456ab362cc219a8606$ // #include "libcef_dll/ctocpp/browser_host_ctocpp.h" @@ -39,10 +39,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHost::CreateBrowser( - const CefWindowInfo& windowInfo, - CefRefPtr client, - const CefString& url, - const CefBrowserSettings& settings, + const CefWindowInfo &windowInfo, CefRefPtr client, + const CefString &url, const CefBrowserSettings &settings, CefRefPtr extra_info, CefRefPtr request_context) { shutdown_checker::AssertNotShutdown(); @@ -63,10 +61,8 @@ bool CefBrowserHost::CreateBrowser( NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHost::CreateBrowserSync( - const CefWindowInfo& windowInfo, - CefRefPtr client, - const CefString& url, - const CefBrowserSettings& settings, + const CefWindowInfo &windowInfo, CefRefPtr client, + const CefString &url, const CefBrowserSettings &settings, CefRefPtr extra_info, CefRefPtr request_context) { shutdown_checker::AssertNotShutdown(); @@ -76,7 +72,7 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( // Unverified params: client, url, extra_info, request_context // Execute - cef_browser_t* _retval = cef_browser_host_create_browser_sync( + cef_browser_t *_retval = cef_browser_host_create_browser_sync( &windowInfo, CefClientCppToC::Wrap(client), url.GetStruct(), &settings, CefDictionaryValueCToCpp::Unwrap(extra_info), CefRequestContextCToCpp::Unwrap(request_context)); @@ -91,14 +87,14 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetBrowser() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_browser)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_browser_t* _retval = _struct->get_browser(_struct); + cef_browser_t *_retval = _struct->get_browser(_struct); // Return type: refptr_same return CefBrowserCToCpp::Wrap(_retval); @@ -108,7 +104,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::PostTaskToUIThread(CefRefPtr task) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, post_task_to_uithread)) return; @@ -127,7 +123,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseBrowser(bool force_close) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_browser)) return; @@ -140,7 +136,7 @@ void CefBrowserHostCToCpp::CloseBrowser(bool force_close) { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::TryCloseBrowser() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, try_close_browser)) return false; @@ -156,7 +152,7 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::TryCloseBrowser() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetFocus(bool focus) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_focus)) return; @@ -170,7 +166,7 @@ NO_SANITIZE("cfi-icall") CefWindowHandle CefBrowserHostCToCpp::GetWindowHandle() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window_handle)) return kNullWindowHandle; @@ -187,7 +183,7 @@ NO_SANITIZE("cfi-icall") CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_opener_window_handle)) return kNullWindowHandle; @@ -203,7 +199,7 @@ CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasView() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_view)) return false; @@ -220,14 +216,14 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetClient() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_client)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_client_t* _retval = _struct->get_client(_struct); + cef_client_t *_retval = _struct->get_client(_struct); // Return type: refptr_diff return CefClientCppToC::Unwrap(_retval); @@ -237,14 +233,14 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetRequestContext() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_request_context)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_request_context_t* _retval = _struct->get_request_context(_struct); + cef_request_context_t *_retval = _struct->get_request_context(_struct); // Return type: refptr_same return CefRequestContextCToCpp::Wrap(_retval); @@ -253,7 +249,7 @@ CefRefPtr CefBrowserHostCToCpp::GetRequestContext() { NO_SANITIZE("cfi-icall") double CefBrowserHostCToCpp::GetZoomLevel() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_zoom_level)) return 0; @@ -270,7 +266,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetZoomLevel(double zoomLevel) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_zoom_level)) return; @@ -282,15 +278,13 @@ void CefBrowserHostCToCpp::SetZoomLevel(double zoomLevel) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::RunFileDialog( - FileDialogMode mode, - const CefString& title, - const CefString& default_file_path, - const std::vector& accept_filters, - int selected_accept_filter, + FileDialogMode mode, const CefString &title, + const CefString &default_file_path, + const std::vector &accept_filters, int selected_accept_filter, CefRefPtr callback) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, run_file_dialog)) return; @@ -324,10 +318,10 @@ void CefBrowserHostCToCpp::RunFileDialog( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::StartDownload(const CefString& url) { +void CefBrowserHostCToCpp::StartDownload(const CefString &url) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, start_download)) return; @@ -344,17 +338,12 @@ void CefBrowserHostCToCpp::StartDownload(const CefString& url) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ResumeDownload( - const CefString& url, - const CefString& full_path, - int64 received_bytes, - int64 total_bytes, - const CefString& etag, - const CefString& mime_type, - const CefString& last_modified, - const CefString& received_slices_string) { + const CefString &url, const CefString &full_path, int64 received_bytes, + int64 total_bytes, const CefString &etag, const CefString &mime_type, + const CefString &last_modified, const CefString &received_slices_string) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, resume_download)) return; @@ -383,14 +372,11 @@ void CefBrowserHostCToCpp::ResumeDownload( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DownloadImage( - const CefString& image_url, - bool is_favicon, - uint32 max_image_size, - bool bypass_cache, - CefRefPtr callback) { + const CefString &image_url, bool is_favicon, uint32 max_image_size, + bool bypass_cache, CefRefPtr callback) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, download_image)) return; @@ -414,7 +400,7 @@ void CefBrowserHostCToCpp::DownloadImage( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Print() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, print)) return; @@ -425,12 +411,12 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Print() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::PrintToPDF(const CefString& path, - const CefPdfPrintSettings& settings, +void CefBrowserHostCToCpp::PrintToPDF(const CefString &path, + const CefPdfPrintSettings &settings, CefRefPtr callback) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, print_to_pdf)) return; @@ -448,14 +434,12 @@ void CefBrowserHostCToCpp::PrintToPDF(const CefString& path, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::Find(const CefString& searchText, - bool forward, - bool matchCase, - bool findNext, +void CefBrowserHostCToCpp::Find(const CefString &searchText, bool forward, + bool matchCase, bool findNext, bool newSession) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, find)) return; @@ -475,7 +459,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::StopFinding(bool clearSelection) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, stop_finding)) return; @@ -486,13 +470,13 @@ void CefBrowserHostCToCpp::StopFinding(bool clearSelection) { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo, +void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo &windowInfo, CefRefPtr client, - const CefBrowserSettings& settings, - const CefPoint& inspect_element_at) { + const CefBrowserSettings &settings, + const CefPoint &inspect_element_at) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, show_dev_tools)) return; @@ -508,7 +492,7 @@ void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseDevTools() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_dev_tools)) return; @@ -521,7 +505,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseDevTools() { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasDevTools() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_dev_tools)) return false; @@ -535,11 +519,11 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasDevTools() { } NO_SANITIZE("cfi-icall") -bool CefBrowserHostCToCpp::SendDevToolsMessage(const void* message, +bool CefBrowserHostCToCpp::SendDevToolsMessage(const void *message, size_t message_size) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_dev_tools_message)) return false; @@ -559,12 +543,11 @@ bool CefBrowserHostCToCpp::SendDevToolsMessage(const void* message, NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::ExecuteDevToolsMethod( - int message_id, - const CefString& method, + int message_id, const CefString &method, CefRefPtr params) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, execute_dev_tools_method)) return 0; @@ -590,7 +573,7 @@ CefRefPtr CefBrowserHostCToCpp::AddDevToolsMessageObserver( CefRefPtr observer) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_dev_tools_message_observer)) return nullptr; @@ -602,7 +585,7 @@ CefRefPtr CefBrowserHostCToCpp::AddDevToolsMessageObserver( return nullptr; // Execute - cef_registration_t* _retval = _struct->add_dev_tools_message_observer( + cef_registration_t *_retval = _struct->add_dev_tools_message_observer( _struct, CefDevToolsMessageObserverCppToC::Wrap(observer)); // Return type: refptr_same @@ -611,11 +594,10 @@ CefRefPtr CefBrowserHostCToCpp::AddDevToolsMessageObserver( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::GetNavigationEntries( - CefRefPtr visitor, - bool current_only) { + CefRefPtr visitor, bool current_only) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_navigation_entries)) return; @@ -632,10 +614,10 @@ void CefBrowserHostCToCpp::GetNavigationEntries( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) { +void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString &word) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, replace_misspelling)) return; @@ -651,10 +633,10 @@ void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) { +void CefBrowserHostCToCpp::AddWordToDictionary(const CefString &word) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_word_to_dictionary)) return; @@ -673,7 +655,7 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_window_rendering_disabled)) return false; @@ -689,7 +671,7 @@ bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasResized() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, was_resized)) return; @@ -702,7 +684,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasResized() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasHidden(bool hidden) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, was_hidden)) return; @@ -715,7 +697,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasHidden(bool hidden) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasOccluded(bool occluded) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, was_occluded)) return; @@ -728,7 +710,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasOccluded(bool occluded) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyScreenInfoChanged() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, notify_screen_info_changed)) return; @@ -742,7 +724,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetVirtualPixelRatio(float ratio) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_virtual_pixel_ratio)) return; @@ -756,7 +738,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Invalidate(PaintElementType type) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, invalidate)) return; @@ -769,7 +751,7 @@ void CefBrowserHostCToCpp::Invalidate(PaintElementType type) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendExternalBeginFrame() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_external_begin_frame)) return; @@ -780,10 +762,10 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendExternalBeginFrame() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent& event) { +void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent &event) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_key_event)) return; @@ -794,13 +776,12 @@ void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent& event) { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event, +void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent &event, MouseButtonType type, - bool mouseUp, - int clickCount) { + bool mouseUp, int clickCount) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_click_event)) return; @@ -811,11 +792,11 @@ void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent& event, +void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent &event, bool mouseLeave) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_move_event)) return; @@ -826,12 +807,11 @@ void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent& event, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event, - int deltaX, - int deltaY) { +void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent &event, + int deltaX, int deltaY) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_wheel_event)) return; @@ -842,10 +822,10 @@ void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::SendTouchEvent(const CefTouchEvent& event) { +void CefBrowserHostCToCpp::SendTouchEvent(const CefTouchEvent &event) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_touch_event)) return; @@ -858,7 +838,7 @@ void CefBrowserHostCToCpp::SendTouchEvent(const CefTouchEvent& event) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendCaptureLostEvent() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_capture_lost_event)) return; @@ -872,7 +852,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, notify_move_or_resize_started)) return; @@ -885,7 +865,7 @@ void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() { NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::GetWindowlessFrameRate() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_windowless_frame_rate)) return 0; @@ -902,7 +882,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetWindowlessFrameRate(int frame_rate) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_windowless_frame_rate)) return; @@ -914,10 +894,10 @@ void CefBrowserHostCToCpp::SetWindowlessFrameRate(int frame_rate) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetWebPreferences( - const CefBrowserSettings& browser_settings) { + const CefBrowserSettings &browser_settings) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_web_preferences)) return; @@ -928,10 +908,10 @@ void CefBrowserHostCToCpp::SetWebPreferences( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::PutUserAgent(const CefString& ua) { +void CefBrowserHostCToCpp::PutUserAgent(const CefString &ua) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, put_user_agent)) return; @@ -949,7 +929,7 @@ void CefBrowserHostCToCpp::PutUserAgent(const CefString& ua) { NO_SANITIZE("cfi-icall") CefString CefBrowserHostCToCpp::DefaultUserAgent() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, default_user_agent)) return CefString(); @@ -968,7 +948,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetBackgroundColor(int color) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -980,11 +960,10 @@ void CefBrowserHostCToCpp::SetBackgroundColor(int color) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::RegisterArkJSfunction( - const CefString& object_name, - const std::vector& method_list) { + const CefString &object_name, const std::vector &method_list) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, register_ark_jsfunction)) return; @@ -1012,11 +991,10 @@ void CefBrowserHostCToCpp::RegisterArkJSfunction( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::UnregisterArkJSfunction( - const CefString& object_name, - const std::vector& method_list) { + const CefString &object_name, const std::vector &method_list) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, unregister_ark_jsfunction)) return; @@ -1045,12 +1023,11 @@ void CefBrowserHostCToCpp::UnregisterArkJSfunction( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::StoreWebArchive( - const CefString& base_name, - bool auto_name, + const CefString &base_name, bool auto_name, CefRefPtr callback) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, store_web_archive)) return; @@ -1071,10 +1048,23 @@ void CefBrowserHostCToCpp::StoreWebArchive( CefStoreWebArchiveResultCallbackCppToC::Wrap(callback)); } +NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasKeyboardResized() { + shutdown_checker::AssertNotShutdown(); + + cef_browser_host_t *_struct = GetStruct(); + if (CEF_MEMBER_MISSING(_struct, was_keyboard_resized)) + return; + + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING + + // Execute + _struct->was_keyboard_resized(_struct); +} + NO_SANITIZE("cfi-icall") CefString CefBrowserHostCToCpp::Title() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, title)) return CefString(); @@ -1091,10 +1081,10 @@ NO_SANITIZE("cfi-icall") CefString CefBrowserHostCToCpp::Title() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CreateWebMessagePorts( - std::vector& ports) { + std::vector &ports) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, create_web_message_ports)) return; @@ -1118,12 +1108,12 @@ void CefBrowserHostCToCpp::CreateWebMessagePorts( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::PostWebMessage(CefString& message, - std::vector& ports, - CefString& targetUri) { +void CefBrowserHostCToCpp::PostWebMessage(CefString &message, + std::vector &ports, + CefString &targetUri) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, post_web_message)) return; @@ -1148,10 +1138,10 @@ void CefBrowserHostCToCpp::PostWebMessage(CefString& message, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::ClosePort(CefString& port_handle) { +void CefBrowserHostCToCpp::ClosePort(CefString &port_handle) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_port)) return; @@ -1165,7 +1155,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DestroyAllWebMessagePorts() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, destroy_all_web_message_ports)) return; @@ -1176,11 +1166,11 @@ void CefBrowserHostCToCpp::DestroyAllWebMessagePorts() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::PostPortMessage(CefString& port_handle, +void CefBrowserHostCToCpp::PostPortMessage(CefString &port_handle, CefRefPtr message) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, post_port_message)) return; @@ -1198,11 +1188,10 @@ void CefBrowserHostCToCpp::PostPortMessage(CefString& port_handle, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetPortMessageCallback( - CefString& port_handle, - CefRefPtr callback) { + CefString &port_handle, CefRefPtr callback) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_port_message_callback)) return; @@ -1220,10 +1209,10 @@ void CefBrowserHostCToCpp::SetPortMessageCallback( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::GetHitData(int& type, CefString& extra_data) { +void CefBrowserHostCToCpp::GetHitData(int &type, CefString &extra_data) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_hit_data)) return; @@ -1237,7 +1226,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetInitialScale(float scale) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_initial_scale)) return; @@ -1250,7 +1239,7 @@ void CefBrowserHostCToCpp::SetInitialScale(float scale) { NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::PageLoadProgress() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, page_load_progress)) return 0; @@ -1266,7 +1255,7 @@ NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::PageLoadProgress() { NO_SANITIZE("cfi-icall") float CefBrowserHostCToCpp::Scale() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, scale)) return 0; @@ -1280,14 +1269,14 @@ NO_SANITIZE("cfi-icall") float CefBrowserHostCToCpp::Scale() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::LoadWithDataAndBaseUrl(const CefString& baseUrl, - const CefString& data, - const CefString& mimeType, - const CefString& encoding, - const CefString& historyUrl) { +void CefBrowserHostCToCpp::LoadWithDataAndBaseUrl(const CefString &baseUrl, + const CefString &data, + const CefString &mimeType, + const CefString &encoding, + const CefString &historyUrl) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, load_with_data_and_base_url)) return; @@ -1302,12 +1291,12 @@ void CefBrowserHostCToCpp::LoadWithDataAndBaseUrl(const CefString& baseUrl, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::LoadWithData(const CefString& data, - const CefString& mimeType, - const CefString& encoding) { +void CefBrowserHostCToCpp::LoadWithData(const CefString &data, + const CefString &mimeType, + const CefString &encoding) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, load_with_data)) return; @@ -1321,10 +1310,10 @@ void CefBrowserHostCToCpp::LoadWithData(const CefString& data, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::AddVisitedLinks(const std::vector& urls) { +void CefBrowserHostCToCpp::AddVisitedLinks(const std::vector &urls) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_visited_links)) return; @@ -1348,13 +1337,12 @@ void CefBrowserHostCToCpp::AddVisitedLinks(const std::vector& urls) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeSetComposition( - const CefString& text, - const std::vector& underlines, - const CefRange& replacement_range, - const CefRange& selection_range) { + const CefString &text, + const std::vector &underlines, + const CefRange &replacement_range, const CefRange &selection_range) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_set_composition)) return; @@ -1364,7 +1352,7 @@ void CefBrowserHostCToCpp::ImeSetComposition( // Translate param: underlines; type: simple_vec_byref_const const size_t underlinesCount = underlines.size(); - cef_composition_underline_t* underlinesList = NULL; + cef_composition_underline_t *underlinesList = NULL; if (underlinesCount > 0) { underlinesList = new cef_composition_underline_t[underlinesCount]; DCHECK(underlinesList); @@ -1386,12 +1374,12 @@ void CefBrowserHostCToCpp::ImeSetComposition( } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::ImeCommitText(const CefString& text, - const CefRange& replacement_range, +void CefBrowserHostCToCpp::ImeCommitText(const CefString &text, + const CefRange &replacement_range, int relative_cursor_pos) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_commit_text)) return; @@ -1408,7 +1396,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_finish_composing_text)) return; @@ -1421,7 +1409,7 @@ void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeCancelComposition() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_cancel_composition)) return; @@ -1433,11 +1421,11 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeCancelComposition() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr drag_data, - const CefMouseEvent& event, + const CefMouseEvent &event, DragOperationsMask allowed_ops) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_enter)) return; @@ -1454,11 +1442,11 @@ void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr drag_data, } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event, +void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent &event, DragOperationsMask allowed_ops) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_over)) return; @@ -1471,7 +1459,7 @@ void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragLeave() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_leave)) return; @@ -1482,10 +1470,10 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragLeave() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent& event) { +void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent &event) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drop)) return; @@ -1496,12 +1484,11 @@ void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent& event) { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::DragSourceEndedAt(int x, - int y, +void CefBrowserHostCToCpp::DragSourceEndedAt(int x, int y, DragOperationsMask op) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_source_ended_at)) return; @@ -1515,7 +1502,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragSourceSystemDragEnded() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_source_system_drag_ended)) return; @@ -1530,14 +1517,14 @@ CefRefPtr< CefNavigationEntry> CefBrowserHostCToCpp::GetVisibleNavigationEntry() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_visible_navigation_entry)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_navigation_entry_t* _retval = + cef_navigation_entry_t *_retval = _struct->get_visible_navigation_entry(_struct); // Return type: refptr_same @@ -1549,7 +1536,7 @@ void CefBrowserHostCToCpp::SetAccessibilityState( cef_state_t accessibility_state) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accessibility_state)) return; @@ -1561,11 +1548,11 @@ void CefBrowserHostCToCpp::SetAccessibilityState( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAutoResizeEnabled(bool enabled, - const CefSize& min_size, - const CefSize& max_size) { + const CefSize &min_size, + const CefSize &max_size) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_auto_resize_enabled)) return; @@ -1579,14 +1566,14 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetExtension() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_extension)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_extension_t* _retval = _struct->get_extension(_struct); + cef_extension_t *_retval = _struct->get_extension(_struct); // Return type: refptr_same return CefExtensionCToCpp::Wrap(_retval); @@ -1595,7 +1582,7 @@ CefRefPtr CefBrowserHostCToCpp::GetExtension() { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsBackgroundHost() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_background_host)) return false; @@ -1611,7 +1598,7 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsBackgroundHost() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAudioMuted(bool mute) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_audio_muted)) return; @@ -1624,7 +1611,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAudioMuted(bool mute) { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsAudioMuted() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_audio_muted)) return false; @@ -1641,7 +1628,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAudioResumeInterval(int resumeInterval) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_audio_resume_interval)) return; @@ -1655,7 +1642,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAudioExclusive(bool audioExclusive) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_audio_exclusive)) return; @@ -1667,12 +1654,11 @@ void CefBrowserHostCToCpp::SetAudioExclusive(bool audioExclusive) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ExecuteJavaScript( - const CefString& code, - CefRefPtr callback, + const CefString &code, CefRefPtr callback, bool extention) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, execute_java_script)) return; @@ -1697,7 +1683,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetNativeWindow(cef_native_window_t window) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_native_window)) return; @@ -1711,7 +1697,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetWebDebuggingAccess(bool isEnableDebug) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_web_debugging_access)) return; @@ -1724,7 +1710,7 @@ void CefBrowserHostCToCpp::SetWebDebuggingAccess(bool isEnableDebug) { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::GetWebDebuggingAccess() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_web_debugging_access)) return false; @@ -1740,7 +1726,7 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::GetWebDebuggingAccess() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::GetImageForContextNode() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_image_for_context_node)) return; @@ -1751,10 +1737,10 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::GetImageForContextNode() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::GetImageFromCache(const CefString& url) { +void CefBrowserHostCToCpp::GetImageFromCache(const CefString &url) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_image_from_cache)) return; @@ -1772,7 +1758,7 @@ void CefBrowserHostCToCpp::GetImageFromCache(const CefString& url) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ExitFullScreen() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, exit_full_screen)) return; @@ -1783,10 +1769,10 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ExitFullScreen() { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::UpdateLocale(const CefString& locale) { +void CefBrowserHostCToCpp::UpdateLocale(const CefString &locale) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, update_locale)) return; @@ -1804,7 +1790,7 @@ void CefBrowserHostCToCpp::UpdateLocale(const CefString& locale) { NO_SANITIZE("cfi-icall") CefString CefBrowserHostCToCpp::GetOriginalUrl() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_original_url)) return CefString(); @@ -1823,7 +1809,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::PutNetworkAvailable(bool available) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, put_network_available)) return; @@ -1837,7 +1823,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::RemoveCache(bool include_disk_files) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_cache)) return; @@ -1848,12 +1834,11 @@ void CefBrowserHostCToCpp::RemoveCache(bool include_disk_files) { } NO_SANITIZE("cfi-icall") -void CefBrowserHostCToCpp::ScrollPageUpDown(bool is_up, - bool is_half, +void CefBrowserHostCToCpp::ScrollPageUpDown(bool is_up, bool is_half, float view_height) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, scroll_page_up_down)) return; @@ -1867,14 +1852,14 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetWebState() { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_web_state)) return nullptr; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute - cef_binary_value_t* _retval = _struct->get_web_state(_struct); + cef_binary_value_t *_retval = _struct->get_web_state(_struct); // Return type: refptr_same return CefBinaryValueCToCpp::Wrap(_retval); @@ -1885,7 +1870,7 @@ bool CefBrowserHostCToCpp::RestoreWebState( const CefRefPtr state) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, restore_web_state)) return false; @@ -1907,7 +1892,7 @@ bool CefBrowserHostCToCpp::RestoreWebState( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ScrollTo(float x, float y) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, scroll_to)) return; @@ -1921,7 +1906,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ScrollBy(float delta_x, float delta_y) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, scroll_by)) return; @@ -1935,7 +1920,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SlideScroll(float vx, float vy) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, slide_scroll)) return; @@ -1948,7 +1933,7 @@ void CefBrowserHostCToCpp::SlideScroll(float vx, float vy) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetFileAccess(bool falg) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_file_access)) return; @@ -1961,7 +1946,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetFileAccess(bool falg) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetBlockNetwork(bool falg) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_block_network)) return; @@ -1974,7 +1959,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetBlockNetwork(bool falg) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetCacheMode(int falg) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_cache_mode)) return; @@ -1988,7 +1973,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetShouldFrameSubmissionBeforeDraw(bool should) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_should_frame_submission_before_draw)) return; @@ -2002,7 +1987,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ZoomBy(float delta, float width, float height) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, zoom_by)) return; @@ -2016,7 +2001,7 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetWindowId(int window_id, int nweb_id) { shutdown_checker::AssertNotShutdown(); - cef_browser_host_t* _struct = GetStruct(); + cef_browser_host_t *_struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_window_id)) return; @@ -2037,15 +2022,15 @@ CefBrowserHostCToCpp::~CefBrowserHostCToCpp() { } template <> -cef_browser_host_t* -CefCToCppRefCounted:: - UnwrapDerived(CefWrapperType type, CefBrowserHost* c) { +cef_browser_host_t * +CefCToCppRefCounted::UnwrapDerived(CefWrapperType type, + CefBrowserHost *c) { NOTREACHED() << "Unexpected class type: " << type; return nullptr; } template <> -CefWrapperType CefCToCppRefCounted::kWrapperType = WT_BROWSER_HOST; diff --git a/libcef_dll/ctocpp/browser_host_ctocpp.h b/libcef_dll/ctocpp/browser_host_ctocpp.h index fd484e191..e08cf74f3 100644 --- a/libcef_dll/ctocpp/browser_host_ctocpp.h +++ b/libcef_dll/ctocpp/browser_host_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=56a195a9cf3701e06b58c3aaee18f33961c205c4$ +// $hash=27a92060c53540973408590dd50a4e0b553c3a02$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_HOST_CTOCPP_H_ @@ -20,19 +20,19 @@ #error This file can be included wrapper-side only #endif -#include #include "include/capi/cef_browser_capi.h" #include "include/capi/cef_client_capi.h" #include "include/cef_browser.h" #include "include/cef_client.h" #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" +#include // Wrap a C structure with a C++ class. // This class may be instantiated and accessed wrapper-side only. -class CefBrowserHostCToCpp : public CefCToCppRefCounted { - public: +class CefBrowserHostCToCpp + : public CefCToCppRefCounted { +public: CefBrowserHostCToCpp(); virtual ~CefBrowserHostCToCpp(); @@ -49,52 +49,41 @@ class CefBrowserHostCToCpp : public CefCToCppRefCounted GetRequestContext() override; double GetZoomLevel() override; void SetZoomLevel(double zoomLevel) override; - void RunFileDialog(FileDialogMode mode, - const CefString& title, - const CefString& default_file_path, - const std::vector& accept_filters, + void RunFileDialog(FileDialogMode mode, const CefString &title, + const CefString &default_file_path, + const std::vector &accept_filters, int selected_accept_filter, CefRefPtr callback) override; - void StartDownload(const CefString& url) override; - void ResumeDownload(const CefString& url, - const CefString& full_path, - int64 received_bytes, - int64 total_bytes, - const CefString& etag, - const CefString& mime_type, - const CefString& last_modified, - const CefString& received_slices_string) override; - void DownloadImage(const CefString& image_url, - bool is_favicon, - uint32 max_image_size, - bool bypass_cache, + void StartDownload(const CefString &url) override; + void ResumeDownload(const CefString &url, const CefString &full_path, + int64 received_bytes, int64 total_bytes, + const CefString &etag, const CefString &mime_type, + const CefString &last_modified, + const CefString &received_slices_string) override; + void DownloadImage(const CefString &image_url, bool is_favicon, + uint32 max_image_size, bool bypass_cache, CefRefPtr callback) override; void Print() override; - void PrintToPDF(const CefString& path, - const CefPdfPrintSettings& settings, + void PrintToPDF(const CefString &path, const CefPdfPrintSettings &settings, CefRefPtr callback) override; - void Find(const CefString& searchText, - bool forward, - bool matchCase, - bool findNext, - bool newSession) override; + void Find(const CefString &searchText, bool forward, bool matchCase, + bool findNext, bool newSession) override; void StopFinding(bool clearSelection) override; - void ShowDevTools(const CefWindowInfo& windowInfo, + void ShowDevTools(const CefWindowInfo &windowInfo, CefRefPtr client, - const CefBrowserSettings& settings, - const CefPoint& inspect_element_at) override; + const CefBrowserSettings &settings, + const CefPoint &inspect_element_at) override; void CloseDevTools() override; bool HasDevTools() override; - bool SendDevToolsMessage(const void* message, size_t message_size) override; - int ExecuteDevToolsMethod(int message_id, - const CefString& method, + bool SendDevToolsMessage(const void *message, size_t message_size) override; + int ExecuteDevToolsMethod(int message_id, const CefString &method, CefRefPtr params) override; CefRefPtr AddDevToolsMessageObserver( CefRefPtr observer) override; void GetNavigationEntries(CefRefPtr visitor, bool current_only) override; - void ReplaceMisspelling(const CefString& word) override; - void AddWordToDictionary(const CefString& word) override; + void ReplaceMisspelling(const CefString &word) override; + void AddWordToDictionary(const CefString &word) override; bool IsWindowRenderingDisabled() override; void WasResized() override; void WasHidden(bool hidden) override; @@ -103,98 +92,90 @@ class CefBrowserHostCToCpp : public CefCToCppRefCounted& method_list) override; - void UnregisterArkJSfunction( - const CefString& object_name, - const std::vector& method_list) override; + void + RegisterArkJSfunction(const CefString &object_name, + const std::vector &method_list) override; + void + UnregisterArkJSfunction(const CefString &object_name, + const std::vector &method_list) override; void StoreWebArchive( - const CefString& base_name, - bool auto_name, + const CefString &base_name, bool auto_name, CefRefPtr callback) override; + void WasKeyboardResized() override; CefString Title() override; - void CreateWebMessagePorts(std::vector& ports) override; - void PostWebMessage(CefString& message, - std::vector& ports, - CefString& targetUri) override; - void ClosePort(CefString& port_handle) override; + void CreateWebMessagePorts(std::vector &ports) override; + void PostWebMessage(CefString &message, std::vector &ports, + CefString &targetUri) override; + void ClosePort(CefString &port_handle) override; void DestroyAllWebMessagePorts() override; - void PostPortMessage(CefString& port_handle, + void PostPortMessage(CefString &port_handle, CefRefPtr message) override; - void SetPortMessageCallback( - CefString& port_handle, - CefRefPtr callback) override; - void GetHitData(int& type, CefString& extra_data) override; + void + SetPortMessageCallback(CefString &port_handle, + CefRefPtr callback) override; + void GetHitData(int &type, CefString &extra_data) override; void SetInitialScale(float scale) override; int PageLoadProgress() override; float Scale() override; - void LoadWithDataAndBaseUrl(const CefString& baseUrl, - const CefString& data, - const CefString& mimeType, - const CefString& encoding, - const CefString& historyUrl) override; - void LoadWithData(const CefString& data, - const CefString& mimeType, - const CefString& encoding) override; - void AddVisitedLinks(const std::vector& urls) override; - void ImeSetComposition(const CefString& text, - const std::vector& underlines, - const CefRange& replacement_range, - const CefRange& selection_range) override; - void ImeCommitText(const CefString& text, - const CefRange& replacement_range, + void LoadWithDataAndBaseUrl(const CefString &baseUrl, const CefString &data, + const CefString &mimeType, + const CefString &encoding, + const CefString &historyUrl) override; + void LoadWithData(const CefString &data, const CefString &mimeType, + const CefString &encoding) override; + void AddVisitedLinks(const std::vector &urls) override; + void ImeSetComposition(const CefString &text, + const std::vector &underlines, + const CefRange &replacement_range, + const CefRange &selection_range) override; + void ImeCommitText(const CefString &text, const CefRange &replacement_range, int relative_cursor_pos) override; void ImeFinishComposingText(bool keep_selection) override; void ImeCancelComposition() override; void DragTargetDragEnter(CefRefPtr drag_data, - const CefMouseEvent& event, + const CefMouseEvent &event, DragOperationsMask allowed_ops) override; - void DragTargetDragOver(const CefMouseEvent& event, + void DragTargetDragOver(const CefMouseEvent &event, DragOperationsMask allowed_ops) override; void DragTargetDragLeave() override; - void DragTargetDrop(const CefMouseEvent& event) override; + void DragTargetDrop(const CefMouseEvent &event) override; void DragSourceEndedAt(int x, int y, DragOperationsMask op) override; void DragSourceSystemDragEnded() override; CefRefPtr GetVisibleNavigationEntry() override; void SetAccessibilityState(cef_state_t accessibility_state) override; - void SetAutoResizeEnabled(bool enabled, - const CefSize& min_size, - const CefSize& max_size) override; + void SetAutoResizeEnabled(bool enabled, const CefSize &min_size, + const CefSize &max_size) override; CefRefPtr GetExtension() override; bool IsBackgroundHost() override; void SetAudioMuted(bool mute) override; bool IsAudioMuted() override; void SetAudioResumeInterval(int resumeInterval) override; void SetAudioExclusive(bool audioExclusive) override; - void ExecuteJavaScript(const CefString& code, + void ExecuteJavaScript(const CefString &code, CefRefPtr callback, bool extention) override; void SetNativeWindow(cef_native_window_t window) override; void SetWebDebuggingAccess(bool isEnableDebug) override; bool GetWebDebuggingAccess() override; void GetImageForContextNode() override; - void GetImageFromCache(const CefString& url) override; + void GetImageFromCache(const CefString &url) override; void ExitFullScreen() override; - void UpdateLocale(const CefString& locale) override; + void UpdateLocale(const CefString &locale) override; CefString GetOriginalUrl() override; void PutNetworkAvailable(bool available) override; void RemoveCache(bool include_disk_files) override; @@ -212,4 +193,4 @@ class CefBrowserHostCToCpp : public CefCToCppRefCounted