fix: webview should maximize on requestFullscreen (#29952)

This commit is contained in:
Cheng Zhao 2021-07-02 09:56:29 +09:00 committed by GitHub
commit 6eff9231b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 127 additions and 4 deletions

View file

@ -686,6 +686,8 @@ class WebContents : public gin::Wrappable<WebContents>,
// Set fullscreen mode triggered by html api.
void SetHtmlApiFullscreen(bool enter_fullscreen);
// Update the html fullscreen flag in both browser and renderer.
void UpdateHtmlApiFullscreen(bool fullscreen);
v8::Global<v8::Value> session_;
v8::Global<v8::Value> devtools_web_contents_;