Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: content/public/browser/web_contents.h

Issue 2906133004: JavaScript dialogs cause a page to lose fullscreen. (Closed)
Patch Set: with a test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 3e1ed690eb54a397b4dc557f18de0e0b39156b15..2e46bb250c98852f9cfe0d16e8d884273d10fb9f 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -739,6 +739,9 @@ class WebContents : public PageNavigator,
// Requests the manifest URL and the Manifest of the main frame's document.
virtual void GetManifest(const GetManifestCallback& callback) = 0;
+ // Returns whether the renderer is in fullscreen mode.
+ virtual bool IsFullscreenForCurrentTab() const = 0;
Matt Giuca 2017/06/09 06:16:37 Hmmm... It's a bit weird to have the same method i
Avi (use Gerrit) 2017/06/09 14:36:23 Yes, this is done in a few places.
+
// Requests the renderer to exit fullscreen.
// |will_cause_resize| indicates whether the fullscreen change causes a
// view resize. e.g. This will be false when going from tab fullscreen to

Powered by Google App Engine
This is Rietveld 408576698