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:
@@ -43,13 +43,7 @@ cef_color_t ParseColor(const std::string& color) {
|
||||
MainContextImpl::MainContextImpl(CefRefPtr<CefCommandLine> command_line,
|
||||
bool terminate_when_all_windows_closed)
|
||||
: command_line_(command_line),
|
||||
terminate_when_all_windows_closed_(terminate_when_all_windows_closed),
|
||||
initialized_(false),
|
||||
shutdown_(false),
|
||||
background_color_(0),
|
||||
browser_background_color_(0),
|
||||
windowless_frame_rate_(0),
|
||||
use_views_(false) {
|
||||
terminate_when_all_windows_closed_(terminate_when_all_windows_closed) {
|
||||
DCHECK(command_line_.get());
|
||||
|
||||
// Set the main URL.
|
||||
@@ -206,6 +200,11 @@ void MainContextImpl::PopulateBrowserSettings(CefBrowserSettings* settings) {
|
||||
|
||||
if (browser_background_color_ != 0)
|
||||
settings->background_color = browser_background_color_;
|
||||
|
||||
if (use_chrome_runtime_ &&
|
||||
command_line_->HasSwitch(switches::kHideChromeStatusBubble)) {
|
||||
settings->chrome_status_bubble = STATE_DISABLED;
|
||||
}
|
||||
}
|
||||
|
||||
void MainContextImpl::PopulateOsrSettings(OsrRendererSettings* settings) {
|
||||
|
Reference in New Issue
Block a user