mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
This change adds a `--use-default-popup` command-line option to cefclient. When specified, popup windows will be created with default styling (e.g. without an application-provided native parent window). This change also adds some reasonable default window bounds in cases where they are not specified by the client.
This commit is contained in:
@@ -181,6 +181,11 @@ bool MainContextImpl::TouchEventsEnabled() {
|
||||
return command_line_->GetSwitchValue("touch-events") == "enabled";
|
||||
}
|
||||
|
||||
bool MainContextImpl::UseDefaultPopup() {
|
||||
return !use_windowless_rendering_ &&
|
||||
command_line_->HasSwitch(switches::kUseDefaultPopup);
|
||||
}
|
||||
|
||||
void MainContextImpl::PopulateSettings(CefSettings* settings) {
|
||||
client::ClientAppBrowser::PopulateSettings(command_line_, *settings);
|
||||
|
||||
|
Reference in New Issue
Block a user