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

Side by Side Diff: Source/core/dom/FullscreenElementStack.h

Issue 462103002: Extract "fullscreen element ready check" from requestFullscreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fullscreen/trusted-event.js ('k') | Source/core/dom/FullscreenElementStack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 virtual void trace(Visitor*) OVERRIDE; 97 virtual void trace(Visitor*) OVERRIDE;
98 98
99 private: 99 private:
100 static FullscreenElementStack* fromIfExistsSlow(Document&); 100 static FullscreenElementStack* fromIfExistsSlow(Document&);
101 101
102 explicit FullscreenElementStack(Document&); 102 explicit FullscreenElementStack(Document&);
103 103
104 Document* document(); 104 Document* document();
105 105
106 static bool elementReady(Element&, RequestType);
107
106 void clearFullscreenElementStack(); 108 void clearFullscreenElementStack();
107 void popFullscreenElementStack(); 109 void popFullscreenElementStack();
108 void pushFullscreenElementStack(Element&, RequestType); 110 void pushFullscreenElementStack(Element&, RequestType);
109 111
110 void enqueueChangeEvent(Document&, RequestType); 112 void enqueueChangeEvent(Document&, RequestType);
111 void enqueueErrorEvent(Element&, RequestType); 113 void enqueueErrorEvent(Element&, RequestType);
112 void eventQueueTimerFired(Timer<FullscreenElementStack>*); 114 void eventQueueTimerFired(Timer<FullscreenElementStack>*);
113 115
114 void fullScreenElementRemoved(); 116 void fullScreenElementRemoved();
115 117
(...skipping 27 matching lines...) Expand all
143 // Needed by the HeapVector<> element stack. 145 // Needed by the HeapVector<> element stack.
144 namespace WTF { 146 namespace WTF {
145 147
146 template<>struct IsPod<blink::FullscreenElementStack::RequestType> { 148 template<>struct IsPod<blink::FullscreenElementStack::RequestType> {
147 static const bool value = true; 149 static const bool value = true;
148 }; 150 };
149 151
150 } // namespace WTF 152 } // namespace WTF
151 153
152 #endif // FullscreenElementStack_h 154 #endif // FullscreenElementStack_h
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/trusted-event.js ('k') | Source/core/dom/FullscreenElementStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698