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

Side by Side Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 { 624 {
625 Event* event; 625 Event* event;
626 if (requestType == UnprefixedRequest) 626 if (requestType == UnprefixedRequest)
627 event = createEvent(EventTypeNames::fullscreenerror, element.document()) ; 627 event = createEvent(EventTypeNames::fullscreenerror, element.document()) ;
628 else 628 else
629 event = createEvent(EventTypeNames::webkitfullscreenerror, element); 629 event = createEvent(EventTypeNames::webkitfullscreenerror, element);
630 m_eventQueue.append(event); 630 m_eventQueue.append(event);
631 m_eventQueueTimer.startOneShot(0, BLINK_FROM_HERE); 631 m_eventQueueTimer.startOneShot(0, BLINK_FROM_HERE);
632 } 632 }
633 633
634 void Fullscreen::eventQueueTimerFired(Timer<Fullscreen>*) 634 void Fullscreen::eventQueueTimerFired(TimerBase*)
635 { 635 {
636 HeapDeque<Member<Event>> eventQueue; 636 HeapDeque<Member<Event>> eventQueue;
637 m_eventQueue.swap(eventQueue); 637 m_eventQueue.swap(eventQueue);
638 638
639 while (!eventQueue.isEmpty()) { 639 while (!eventQueue.isEmpty()) {
640 Event* event = eventQueue.takeFirst(); 640 Event* event = eventQueue.takeFirst();
641 Node* target = event->target()->toNode(); 641 Node* target = event->target()->toNode();
642 642
643 // If the element was removed from our tree, also message the documentEl ement. 643 // If the element was removed from our tree, also message the documentEl ement.
644 if (!target->isConnected() && document()->documentElement()) { 644 if (!target->isConnected() && document()->documentElement()) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 DEFINE_TRACE(Fullscreen) 694 DEFINE_TRACE(Fullscreen)
695 { 695 {
696 visitor->trace(m_fullScreenElement); 696 visitor->trace(m_fullScreenElement);
697 visitor->trace(m_fullScreenElementStack); 697 visitor->trace(m_fullScreenElementStack);
698 visitor->trace(m_eventQueue); 698 visitor->trace(m_eventQueue);
699 Supplement<Document>::trace(visitor); 699 Supplement<Document>::trace(visitor);
700 ContextLifecycleObserver::trace(visitor); 700 ContextLifecycleObserver::trace(visitor);
701 } 701 }
702 702
703 } // namespace blink 703 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.h ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698