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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 8 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 | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowBase64.h" 10 #include "core/frame/DOMWindowBase64.h"
11 #include "core/frame/Location.h" 11 #include "core/frame/Location.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "platform/scroll/ScrollableArea.h" 13 #include "platform/scroll/ScrollableArea.h"
14 14
15 #include "wtf/Forward.h" 15 #include "wtf/Forward.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ApplicationCache; 19 class ApplicationCache;
20 class BarProp; 20 class BarProp;
21 class CSSRuleList; 21 class CSSRuleList;
22 class CSSStyleDeclaration; 22 class CSSStyleDeclaration;
23 class Console; 23 class Console;
24 class DOMSelection; 24 class DOMSelection;
25 class DOMWindowCSS; 25 class DOMWindowCSS;
26 class Document; 26 class Document;
27 class Element; 27 class Element;
28 class Frame; 28 class Frame;
29 class FrameRequestCallback;
29 class History; 30 class History;
30 class LocalDOMWindow; 31 class LocalDOMWindow;
31 class MediaQueryList; 32 class MediaQueryList;
32 class Navigator; 33 class Navigator;
33 class RequestAnimationFrameCallback;
34 class Screen; 34 class Screen;
35 class ScrollToOptions; 35 class ScrollToOptions;
36 class SerializedScriptValue; 36 class SerializedScriptValue;
37 class Storage; 37 class Storage;
38 class StyleMedia; 38 class StyleMedia;
39 39
40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; 40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray;
41 41
42 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public RefCounte dWillBeNoBase<DOMWindow>, public DOMWindowBase64 { 42 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public RefCounte dWillBeNoBase<DOMWindow>, public DOMWindowBase64 {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0 ; 161 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0 ;
162 162
163 // DOM Level 2 Style Interface 163 // DOM Level 2 Style Interface
164 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt) const = 0; 164 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt) const = 0;
165 165
166 // WebKit extensions 166 // WebKit extensions
167 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0; 167 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0;
168 168
169 // WebKit animation extensions 169 // WebKit animation extensions
170 virtual int requestAnimationFrame(RequestAnimationFrameCallback*) = 0; 170 virtual int requestAnimationFrame(FrameRequestCallback*) = 0;
171 virtual int webkitRequestAnimationFrame(RequestAnimationFrameCallback*) = 0; 171 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0;
172 virtual void cancelAnimationFrame(int id) = 0; 172 virtual void cancelAnimationFrame(int id) = 0;
173 173
174 void captureEvents() { } 174 void captureEvents() { }
175 void releaseEvents() { } 175 void releaseEvents() { }
176 176
177 // FIXME: This handles both window[index] and window.frames[index]. However, 177 // FIXME: This handles both window[index] and window.frames[index]. However,
178 // the spec exposes window.frames[index] across origins but not 178 // the spec exposes window.frames[index] across origins but not
179 // window[index]... 179 // window[index]...
180 DOMWindow* anonymousIndexedGetter(uint32_t) const; 180 DOMWindow* anonymousIndexedGetter(uint32_t) const;
181 181
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
215 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 215 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
216 216
217 private: 217 private:
218 mutable RefPtrWillBeMember<Location> m_location; 218 mutable RefPtrWillBeMember<Location> m_location;
219 }; 219 };
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif // DOMWindow_h 223 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698