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

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

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 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 | « Source/core/dom/ScriptedIdleTaskController.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"
(...skipping 10 matching lines...) Expand all
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 FrameRequestCallback;
30 class History; 30 class History;
31 class IdleRequestCallback;
31 class LocalDOMWindow; 32 class LocalDOMWindow;
32 class MediaQueryList; 33 class MediaQueryList;
33 class Navigator; 34 class Navigator;
34 class Screen; 35 class Screen;
35 class ScrollToOptions; 36 class ScrollToOptions;
36 class SerializedScriptValue; 37 class SerializedScriptValue;
37 class Storage; 38 class Storage;
38 class StyleMedia; 39 class StyleMedia;
39 40
40 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray; 41 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt) const = 0; 162 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt) const = 0;
162 163
163 // WebKit extensions 164 // WebKit extensions
164 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0; 165 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0;
165 166
166 // WebKit animation extensions 167 // WebKit animation extensions
167 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; 168 virtual int requestAnimationFrame(FrameRequestCallback*) = 0;
168 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; 169 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0;
169 virtual void cancelAnimationFrame(int id) = 0; 170 virtual void cancelAnimationFrame(int id) = 0;
170 171
172 // Idle callback extensions
173 virtual int requestIdleCallback(IdleRequestCallback*, double timeoutMillis) = 0;
174 virtual void cancelIdleCallback(int id) = 0;
175
171 void captureEvents() { } 176 void captureEvents() { }
172 void releaseEvents() { } 177 void releaseEvents() { }
173 178
174 // FIXME: This handles both window[index] and window.frames[index]. However, 179 // FIXME: This handles both window[index] and window.frames[index]. However,
175 // the spec exposes window.frames[index] across origins but not 180 // the spec exposes window.frames[index] across origins but not
176 // window[index]... 181 // window[index]...
177 DOMWindow* anonymousIndexedGetter(uint32_t) const; 182 DOMWindow* anonymousIndexedGetter(uint32_t) const;
178 183
179 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); 184 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
180 185
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // implementation details to scripts. 224 // implementation details to scripts.
220 bool m_windowIsClosing; 225 bool m_windowIsClosing;
221 226
222 private: 227 private:
223 mutable RefPtrWillBeMember<Location> m_location; 228 mutable RefPtrWillBeMember<Location> m_location;
224 }; 229 };
225 230
226 } // namespace blink 231 } // namespace blink
227 232
228 #endif // DOMWindow_h 233 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedIdleTaskController.cpp ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698