OLD | NEW |
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 Loading... |
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 // |isAncestorOfFullscreenElement| is used in OOPIF scenarios and is set to | 77 void didEnterFullScreenForElement(Element*); |
78 // true when these functions are called to enter/exit fullscreen for an | 78 void didExitFullScreenForElement(Element*); |
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); | |
85 | 79 |
86 void setFullScreenLayoutObject(LayoutFullScreen*); | 80 void setFullScreenLayoutObject(LayoutFullScreen*); |
87 LayoutFullScreen* fullScreenLayoutObject() const { return m_fullScreenLayout
Object; } | 81 LayoutFullScreen* fullScreenLayoutObject() const { return m_fullScreenLayout
Object; } |
88 void fullScreenLayoutObjectDestroyed(); | 82 void fullScreenLayoutObjectDestroyed(); |
89 | 83 |
90 void elementRemoved(Element&); | 84 void elementRemoved(Element&); |
91 | 85 |
92 // Mozilla API | 86 // Mozilla API |
93 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement
.get(); } | 87 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement
.get(); } |
94 | 88 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 inline Fullscreen* Fullscreen::fromIfExists(Document& document) | 126 inline Fullscreen* Fullscreen::fromIfExists(Document& document) |
133 { | 127 { |
134 if (!document.hasFullscreenSupplement()) | 128 if (!document.hasFullscreenSupplement()) |
135 return 0; | 129 return 0; |
136 return fromIfExistsSlow(document); | 130 return fromIfExistsSlow(document); |
137 } | 131 } |
138 | 132 |
139 } // namespace blink | 133 } // namespace blink |
140 | 134 |
141 #endif // Fullscreen_h | 135 #endif // Fullscreen_h |
OLD | NEW |