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

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: 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
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 18 matching lines...) Expand all
134 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do cument) 136 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do cument)
135 { 137 {
136 if (!document.hasFullscreenElementStack()) 138 if (!document.hasFullscreenElementStack())
137 return 0; 139 return 0;
138 return fromIfExistsSlow(document); 140 return fromIfExistsSlow(document);
139 } 141 }
140 142
141 } // namespace blink 143 } // namespace blink
142 144
143 #endif // FullscreenElementStack_h 145 #endif // FullscreenElementStack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698