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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (!fullscreenElementReady(element)) | 235 if (!fullscreenElementReady(element)) |
236 break; | 236 break; |
237 | 237 |
238 // This algorithm is not allowed to show a pop-up: | 238 // This algorithm is not allowed to show a pop-up: |
239 // An algorithm is allowed to show a pop-up if, in the task in which t
he algorithm is running, either: | 239 // An algorithm is allowed to show a pop-up if, in the task in which t
he algorithm is running, either: |
240 // - an activation behavior is currently being processed whose click e
vent was trusted, or | 240 // - an activation behavior is currently being processed whose click e
vent was trusted, or |
241 // - the event listener for a trusted click event is being handled. | 241 // - the event listener for a trusted click event is being handled. |
242 if (!UserGestureIndicator::processingUserGesture()) { | 242 if (!UserGestureIndicator::processingUserGesture()) { |
243 String message = ExceptionMessages::failedToExecute("requestFullScre
en", | 243 String message = ExceptionMessages::failedToExecute("requestFullScre
en", |
244 "Element", "API can only be initiated by a user gesture."); | 244 "Element", "API can only be initiated by a user gesture."); |
245 document()->executionContext()->addConsoleMessage( | 245 document()->getExecutionContext()->addConsoleMessage( |
246 ConsoleMessage::create(JSMessageSource, WarningMessageLevel, mes
sage)); | 246 ConsoleMessage::create(JSMessageSource, WarningMessageLevel, mes
sage)); |
247 break; | 247 break; |
248 } | 248 } |
249 | 249 |
250 // Fullscreen is not supported. | 250 // Fullscreen is not supported. |
251 if (!fullscreenIsSupported(element.document())) | 251 if (!fullscreenIsSupported(element.document())) |
252 break; | 252 break; |
253 | 253 |
254 // 2. Let doc be element's node document. (i.e. "this") | 254 // 2. Let doc be element's node document. (i.e. "this") |
255 Document* currentDoc = document(); | 255 Document* currentDoc = document(); |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 #if ENABLE(OILPAN) | 622 #if ENABLE(OILPAN) |
623 visitor->trace(m_fullScreenElement); | 623 visitor->trace(m_fullScreenElement); |
624 visitor->trace(m_fullScreenElementStack); | 624 visitor->trace(m_fullScreenElementStack); |
625 visitor->trace(m_eventQueue); | 625 visitor->trace(m_eventQueue); |
626 #endif | 626 #endif |
627 WillBeHeapSupplement<Document>::trace(visitor); | 627 WillBeHeapSupplement<Document>::trace(visitor); |
628 DocumentLifecycleObserver::trace(visitor); | 628 DocumentLifecycleObserver::trace(visitor); |
629 } | 629 } |
630 | 630 |
631 } // namespace blink | 631 } // namespace blink |
OLD | NEW |