alloy: Fix printing of PDF viewer (see issue #3047)

Match the logic for printing::StartPrint() used by Chrome.
This commit is contained in:
Marshall Greenblatt
2022-02-18 11:33:40 -05:00
parent 171d525aa4
commit dc0a45d429
6 changed files with 67 additions and 58 deletions

View File

@ -81,12 +81,6 @@ class CefBrowserPlatformDelegateAlloy : public CefBrowserPlatformDelegate {
base::RepeatingClosure GetBoundsChangedCallback();
// Returns the WebContents most likely to handle an action. If extensions are
// enabled and this browser has a full-page guest (for example, a full-page
// PDF viewer extension) then the guest's WebContents will be returned.
// Otherwise, the browser's WebContents will be returned.
content::WebContents* GetActionableWebContents() const;
// Called from BrowserPlatformDelegateNative::set_windowless_handler().
void set_as_secondary() { primary_ = false; }