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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 1914643005: Add support for entering/exiting HTML fullscreen from OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (and deal with gfx:: -> display:: rename). Add replication CL as dependent and use its allowfullscreen test file. Created 4 years, 7 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: third_party/WebKit/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index d25040cf7bcebc4c889663ece89737b0b2990b08..0e119a5c3067f2b69247fd22ce05f081f746b22a 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -334,6 +334,14 @@ public:
float topControlsHeight,
bool topControlsShrinkLayout) = 0;
+ // This is called in OOPIF scenarios when an element contained in a remote
+ // <iframe> is about to enter fullscreen. The provided WebRemoteFrame
+ // identifies the frame containing the fullscreen element, and its frame
+ // owner corresponds to the HTMLFrameOwnerElement to be fullscreened.
+ // Calling this prepares FullscreenController to enter fullscreen for that
+ // frame owner.
+ virtual void willEnterFullScreen(WebRemoteFrame*) = 0;
dcheng 2016/05/18 01:04:35 Out of scope for this patch, but is there any hope
alexmos 2016/05/18 15:08:33 It could probably be done, though it might be a bi
dcheng 2016/05/19 00:21:34 I looked around the code at this: it looks like we
alexmos 2016/05/19 01:08:25 I wish that were true. But actually, in the common
dcheng 2016/05/19 05:29:14 Hmm. Tricky. It's particularly weird because we ca
+
// Auto-Resize -----------------------------------------------------------
// In auto-resize mode, the view is automatically adjusted to fit the html

Powered by Google App Engine
This is Rietveld 408576698