chrome: Add setting for controlling the status bubble (fixes isse #3279)

This change adds `CefBrowserSettings.chrome_status_bubble` for controlling
whether the Chrome status bubble will be used.

Testable in cefclient by passing the `--hide-chrome-status-bubble`
command-line flag.
This commit is contained in:
Marshall Greenblatt
2022-03-21 17:22:07 -04:00
parent 1eab4322f8
commit 4615fffafb
13 changed files with 106 additions and 32 deletions

View File

@@ -520,7 +520,7 @@ typedef struct _cef_browser_settings_t {
///
int windowless_frame_rate;
// The below values map to WebPreferences settings.
// BEGIN values that map to WebPreferences settings.
///
// Font settings.
@@ -622,6 +622,8 @@ typedef struct _cef_browser_settings_t {
///
cef_state_t webgl;
// END values that map to WebPreferences settings.
///
// Background color used for the browser before a document is loaded and when
// no document color is specified. The alpha component must be either fully
@@ -641,6 +643,13 @@ typedef struct _cef_browser_settings_t {
// empty then "en-US,en" will be used.
///
cef_string_t accept_language_list;
///
// Controls whether the Chrome status bubble will be used. Only supported with
// the Chrome runtime. For details about the status bubble see
// https://www.chromium.org/user-experience/status-bubble/
///
cef_state_t chrome_status_bubble;
} cef_browser_settings_t;
///

View File

@@ -718,6 +718,8 @@ struct CefBrowserSettingsTraits {
cef_string_set(src->accept_language_list.str,
src->accept_language_list.length,
&target->accept_language_list, copy);
target->chrome_status_bubble = src->chrome_status_bubble;
}
};