mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -51,6 +51,7 @@ class ChromeBrowserDelegate : public cef::BrowserDelegate {
|
||||
void OnWebContentsCreated(content::WebContents* new_contents) override;
|
||||
void SetAsDelegate(content::WebContents* web_contents,
|
||||
bool set_delegate) override;
|
||||
bool ShowStatusBubble(bool show_by_default) override;
|
||||
|
||||
// WebContentsDelegate methods:
|
||||
void WebContentsCreated(content::WebContents* source_contents,
|
||||
@@ -109,6 +110,8 @@ class ChromeBrowserDelegate : public cef::BrowserDelegate {
|
||||
|
||||
// Used when creating a new browser host.
|
||||
const CefBrowserCreateParams create_params_;
|
||||
|
||||
absl::optional<bool> show_status_bubble_;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_CHROME_CHROME_BROWSER_DELEGATE_H_
|
||||
|
Reference in New Issue
Block a user