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

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

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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 explicit Fullscreen(Document&); 106 explicit Fullscreen(Document&);
107 107
108 Document* document(); 108 Document* document();
109 109
110 void clearFullscreenElementStack(); 110 void clearFullscreenElementStack();
111 void popFullscreenElementStack(); 111 void popFullscreenElementStack();
112 void pushFullscreenElementStack(Element&, RequestType); 112 void pushFullscreenElementStack(Element&, RequestType);
113 113
114 void enqueueChangeEvent(Document&, RequestType); 114 void enqueueChangeEvent(Document&, RequestType);
115 void enqueueErrorEvent(Element&, RequestType); 115 void enqueueErrorEvent(Element&, RequestType);
116 void eventQueueTimerFired(Timer<Fullscreen>*); 116 void eventQueueTimerFired(TimerBase*);
117 117
118 Member<Element> m_fullScreenElement; 118 Member<Element> m_fullScreenElement;
119 HeapVector<std::pair<Member<Element>, RequestType>> m_fullScreenElementStack ; 119 HeapVector<std::pair<Member<Element>, RequestType>> m_fullScreenElementStack ;
120 LayoutFullScreen* m_fullScreenLayoutObject; 120 LayoutFullScreen* m_fullScreenLayoutObject;
121 Timer<Fullscreen> m_eventQueueTimer; 121 Timer<Fullscreen> m_eventQueueTimer;
122 HeapDeque<Member<Event>> m_eventQueue; 122 HeapDeque<Member<Event>> m_eventQueue;
123 LayoutRect m_savedPlaceholderFrameRect; 123 LayoutRect m_savedPlaceholderFrameRect;
124 RefPtr<ComputedStyle> m_savedPlaceholderComputedStyle; 124 RefPtr<ComputedStyle> m_savedPlaceholderComputedStyle;
125 125
126 // TODO(alexmos, dcheng): Currently, this assumes that if fullscreen was 126 // TODO(alexmos, dcheng): Currently, this assumes that if fullscreen was
(...skipping 19 matching lines...) Expand all
146 inline Fullscreen* Fullscreen::fromIfExists(Document& document) 146 inline Fullscreen* Fullscreen::fromIfExists(Document& document)
147 { 147 {
148 if (!document.hasFullscreenSupplement()) 148 if (!document.hasFullscreenSupplement())
149 return 0; 149 return 0;
150 return fromIfExistsSlow(document); 150 return fromIfExistsSlow(document);
151 } 151 }
152 152
153 } // namespace blink 153 } // namespace blink
154 154
155 #endif // Fullscreen_h 155 #endif // Fullscreen_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698