| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 m_areKeysEnabledInFullScreen = requestType != PrefixedMozillaRequest &&
requestType != PrefixedVideoRequest; | 288 m_areKeysEnabledInFullScreen = requestType != PrefixedMozillaRequest &&
requestType != PrefixedVideoRequest; |
| 289 document()->frameHost()->chrome().client().enterFullScreenForElement(&el
ement); | 289 document()->frameHost()->chrome().client().enterFullScreenForElement(&el
ement); |
| 290 | 290 |
| 291 // 7. Optionally, display a message indicating how the user can exit dis
playing the context object fullscreen. | 291 // 7. Optionally, display a message indicating how the user can exit dis
playing the context object fullscreen. |
| 292 return; | 292 return; |
| 293 } while (0); | 293 } while (0); |
| 294 | 294 |
| 295 enqueueErrorEvent(element, requestType); | 295 enqueueErrorEvent(element, requestType); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void Fullscreen::fullyExitFullscreen() | 298 void Fullscreen::fullyExitFullscreen(Document& document) |
| 299 { | 299 { |
| 300 // To fully exit fullscreen, run these steps: | 300 // To fully exit fullscreen, run these steps: |
| 301 | 301 |
| 302 // 1. Let |doc| be the top-level browsing context's document. | 302 // 1. Let |doc| be the top-level browsing context's document. |
| 303 Document& doc = document()->topDocument(); | 303 Document& doc = document.topDocument(); |
| 304 | 304 |
| 305 // 2. If |doc|'s fullscreen element stack is empty, terminate these steps. | 305 // 2. If |doc|'s fullscreen element stack is empty, terminate these steps. |
| 306 if (!fullscreenElementFrom(doc)) | 306 if (!fullscreenElementFrom(doc)) |
| 307 return; | 307 return; |
| 308 | 308 |
| 309 // 3. Remove elements from |doc|'s fullscreen element stack until only the t
op element is left. | 309 // 3. Remove elements from |doc|'s fullscreen element stack until only the t
op element is left. |
| 310 size_t stackSize = from(doc).m_fullScreenElementStack.size(); | 310 size_t stackSize = from(doc).m_fullScreenElementStack.size(); |
| 311 from(doc).m_fullScreenElementStack.remove(0, stackSize - 1); | 311 from(doc).m_fullScreenElementStack.remove(0, stackSize - 1); |
| 312 ASSERT(from(doc).m_fullScreenElementStack.size() == 1); | 312 ASSERT(from(doc).m_fullScreenElementStack.size() == 1); |
| 313 | 313 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 void Fullscreen::trace(Visitor* visitor) | 614 void Fullscreen::trace(Visitor* visitor) |
| 615 { | 615 { |
| 616 visitor->trace(m_fullScreenElement); | 616 visitor->trace(m_fullScreenElement); |
| 617 visitor->trace(m_fullScreenElementStack); | 617 visitor->trace(m_fullScreenElementStack); |
| 618 visitor->trace(m_fullScreenRenderer); | 618 visitor->trace(m_fullScreenRenderer); |
| 619 visitor->trace(m_eventQueue); | 619 visitor->trace(m_eventQueue); |
| 620 DocumentSupplement::trace(visitor); | 620 DocumentSupplement::trace(visitor); |
| 621 } | 621 } |
| 622 | 622 |
| 623 } // namespace blink | 623 } // namespace blink |
| OLD | NEW |