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

Side by Side 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: Daniel's comments 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2013 Google Inc. All rights reserved. 9 * Copyright (C) 2013 Google Inc. All rights reserved.
10 * 10 *
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 PrefixedRequest, 67 PrefixedRequest,
68 }; 68 };
69 69
70 void requestFullscreen(Element&, RequestType); 70 void requestFullscreen(Element&, RequestType);
71 static void fullyExitFullscreen(Document&); 71 static void fullyExitFullscreen(Document&);
72 void exitFullscreen(); 72 void exitFullscreen();
73 73
74 static bool fullscreenEnabled(Document&); 74 static bool fullscreenEnabled(Document&);
75 Element* fullscreenElement() const { return !m_fullScreenElementStack.isEmpt y() ? m_fullScreenElementStack.last().first.get() : 0; } 75 Element* fullscreenElement() const { return !m_fullScreenElementStack.isEmpt y() ? m_fullScreenElementStack.last().first.get() : 0; }
76 76
77 void didEnterFullScreenForElement(Element*); 77 // |isAncestorOfFullscreenElement| is used in OOPIF scenarios and is set to
78 void didExitFullScreenForElement(Element*); 78 // true when these functions are called to enter/exit fullscreen for an
79 // out-of-process descendant element. In this case, we enter fullscreen
80 // for its (local) iframe container and make sure to also set the
81 // ContainsFullScreenElement flag on it (so that it gains the
82 // -webkit-full-screen-ancestor style).
83 void didEnterFullScreenForElement(Element*, bool isAncestorOfFullscreenEleme nt);
84 void didExitFullScreenForElement(bool isAncestorOfFullscreenElement);
79 85
80 void setFullScreenLayoutObject(LayoutFullScreen*); 86 void setFullScreenLayoutObject(LayoutFullScreen*);
81 LayoutFullScreen* fullScreenLayoutObject() const { return m_fullScreenLayout Object; } 87 LayoutFullScreen* fullScreenLayoutObject() const { return m_fullScreenLayout Object; }
82 void fullScreenLayoutObjectDestroyed(); 88 void fullScreenLayoutObjectDestroyed();
83 89
84 void elementRemoved(Element&); 90 void elementRemoved(Element&);
85 91
86 // Mozilla API 92 // Mozilla API
87 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement .get(); } 93 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement .get(); }
88 94
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 inline Fullscreen* Fullscreen::fromIfExists(Document& document) 132 inline Fullscreen* Fullscreen::fromIfExists(Document& document)
127 { 133 {
128 if (!document.hasFullscreenSupplement()) 134 if (!document.hasFullscreenSupplement())
129 return 0; 135 return 0;
130 return fromIfExistsSlow(document); 136 return fromIfExistsSlow(document);
131 } 137 }
132 138
133 } // namespace blink 139 } // namespace blink
134 140
135 #endif // Fullscreen_h 141 #endif // Fullscreen_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698