| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #if !ENABLE(OILPAN) | 155 #if !ENABLE(OILPAN) |
| 156 void FullscreenElementStack::documentWasDisposed() | 156 void FullscreenElementStack::documentWasDisposed() |
| 157 { | 157 { |
| 158 // NOTE: the context dispose phase is not supported in oilpan. Please | 158 // NOTE: the context dispose phase is not supported in oilpan. Please |
| 159 // consider using the detach phase instead. | 159 // consider using the detach phase instead. |
| 160 m_fullScreenElement = nullptr; | 160 m_fullScreenElement = nullptr; |
| 161 m_fullScreenElementStack.clear(); | 161 m_fullScreenElementStack.clear(); |
| 162 } | 162 } |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 void FullscreenElementStack::requestFullScreenForElement(Element& element, Reque
stType requestType) | 165 void FullscreenElementStack::requestFullscreen(Element& element, RequestType req
uestType) |
| 166 { | 166 { |
| 167 // Ignore this request if the document is not in a live frame. | 167 // Ignore this request if the document is not in a live frame. |
| 168 if (!document()->isActive()) | 168 if (!document()->isActive()) |
| 169 return; | 169 return; |
| 170 | 170 |
| 171 // The Mozilla Full Screen API <https://wiki.mozilla.org/Gecko:FullScreenAPI
> has different requirements | 171 // The Mozilla Full Screen API <https://wiki.mozilla.org/Gecko:FullScreenAPI
> has different requirements |
| 172 // for full screen mode, and do not have the concept of a full screen elemen
t stack. | 172 // for full screen mode, and do not have the concept of a full screen elemen
t stack. |
| 173 bool inLegacyMozillaMode = requestType == PrefixedMozillaRequest || requestT
ype == PrefixedMozillaAllowKeyboardInputRequest; | 173 bool inLegacyMozillaMode = requestType == PrefixedMozillaRequest || requestT
ype == PrefixedMozillaAllowKeyboardInputRequest; |
| 174 | 174 |
| 175 do { | 175 do { |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 590 |
| 591 void FullscreenElementStack::trace(Visitor* visitor) | 591 void FullscreenElementStack::trace(Visitor* visitor) |
| 592 { | 592 { |
| 593 visitor->trace(m_fullScreenElement); | 593 visitor->trace(m_fullScreenElement); |
| 594 visitor->trace(m_fullScreenElementStack); | 594 visitor->trace(m_fullScreenElementStack); |
| 595 visitor->trace(m_eventQueue); | 595 visitor->trace(m_eventQueue); |
| 596 DocumentSupplement::trace(visitor); | 596 DocumentSupplement::trace(visitor); |
| 597 } | 597 } |
| 598 | 598 |
| 599 } // namespace blink | 599 } // namespace blink |
| OLD | NEW |