cefclient: Add option to create default popups (see issue #3165, see issue #3294)

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:
Marshall Greenblatt
2022-04-11 16:54:33 -04:00
parent 3000bc8748
commit 75ca552a4e
10 changed files with 46 additions and 6 deletions

View File

@@ -32,6 +32,7 @@ class MainContextImpl : public MainContext {
bool UseViews() override;
bool UseWindowlessRendering() override;
bool TouchEventsEnabled() override;
bool UseDefaultPopup() override;
void PopulateSettings(CefSettings* settings) override;
void PopulateBrowserSettings(CefBrowserSettings* settings) override;
void PopulateOsrSettings(OsrRendererSettings* settings) override;