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

Unified Diff: third_party/WebKit/Source/core/dom/Fullscreen.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 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/Source/core/dom/Fullscreen.h
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.h b/third_party/WebKit/Source/core/dom/Fullscreen.h
index 8c1d0eda503eecd9664a109aae72aa2e2b14f60a..9761c4fea2205bd6afc79f296517ba7a32934f89 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.h
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.h
@@ -74,8 +74,14 @@ public:
static bool fullscreenEnabled(Document&);
Element* fullscreenElement() const { return !m_fullScreenElementStack.isEmpty() ? m_fullScreenElementStack.last().first.get() : 0; }
- void didEnterFullScreenForElement(Element*);
- void didExitFullScreenForElement(Element*);
+ // |isAncestorOfFullscreenElement| is used in OOPIF scenarios and is set to
+ // true when these functions are called to enter/exit fullscreen for an
+ // out-of-process descendant element. In this case, we enter fullscreen
+ // for its (local) iframe container and make sure to also set the
+ // ContainsFullScreenElement flag on it (so that it gains the
+ // -webkit-full-screen-ancestor style).
+ void didEnterFullScreenForElement(Element*, bool isAncestorOfFullscreenElement);
+ void didExitFullScreenForElement(bool isAncestorOfFullscreenElement);
void setFullScreenLayoutObject(LayoutFullScreen*);
LayoutFullScreen* fullScreenLayoutObject() const { return m_fullScreenLayoutObject; }

Powered by Google App Engine
This is Rietveld 408576698