chrome: Implement GetWindowHandle() for --multi-threaded-message-loop (see issue #3294)

This commit is contained in:
Marshall Greenblatt
2022-04-19 10:45:03 -07:00
parent 2ea7459a89
commit c04895b222
7 changed files with 45 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ class CefBrowserPlatformDelegateChrome
void WebContentsDestroyed(content::WebContents* web_contents) override;
void BrowserCreated(CefBrowserHostBase* browser) override;
void BrowserDestroyed(CefBrowserHostBase* browser) override;
CefWindowHandle GetHostWindowHandle() const override;
SkColor GetBackgroundColor() const override;
void SendKeyEvent(const CefKeyEvent& event) override;
void SendMouseClickEvent(const CefMouseEvent& event,
@@ -50,6 +51,8 @@ class CefBrowserPlatformDelegateChrome
}
protected:
gfx::NativeWindow GetNativeWindow() const;
std::unique_ptr<CefBrowserPlatformDelegateNative> native_delegate_;
Browser* chrome_browser_ = nullptr;