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

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

Issue 1367023002: Replace timeout argument with IdleRequestOptions in requestIdleCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rIC_histograms
Patch Set: Created 5 years, 2 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 // 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 11 matching lines...) Expand all
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 IdleRequestCallback;
32 class IdleRequestOptions;
32 class LocalDOMWindow; 33 class LocalDOMWindow;
33 class MediaQueryList; 34 class MediaQueryList;
34 class Navigator; 35 class Navigator;
35 class Screen; 36 class Screen;
36 class ScrollToOptions; 37 class ScrollToOptions;
37 class SerializedScriptValue; 38 class SerializedScriptValue;
38 class Storage; 39 class Storage;
39 class StyleMedia; 40 class StyleMedia;
40 41
41 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray; 42 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 164
164 // WebKit extensions 165 // WebKit extensions
165 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0; 166 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con st String& pseudoElt) const = 0;
166 167
167 // WebKit animation extensions 168 // WebKit animation extensions
168 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; 169 virtual int requestAnimationFrame(FrameRequestCallback*) = 0;
169 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; 170 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0;
170 virtual void cancelAnimationFrame(int id) = 0; 171 virtual void cancelAnimationFrame(int id) = 0;
171 172
172 // Idle callback extensions 173 // Idle callback extensions
173 virtual int requestIdleCallback(IdleRequestCallback*, double timeoutMillis) = 0; 174 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio ns&) = 0;
174 virtual void cancelIdleCallback(int id) = 0; 175 virtual void cancelIdleCallback(int id) = 0;
175 176
176 void captureEvents() { } 177 void captureEvents() { }
177 void releaseEvents() { } 178 void releaseEvents() { }
178 179
179 // FIXME: This handles both window[index] and window.frames[index]. However, 180 // FIXME: This handles both window[index] and window.frames[index]. However,
180 // the spec exposes window.frames[index] across origins but not 181 // the spec exposes window.frames[index] across origins but not
181 // window[index]... 182 // window[index]...
182 DOMWindow* anonymousIndexedGetter(uint32_t) const; 183 DOMWindow* anonymousIndexedGetter(uint32_t) const;
183 184
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // implementation details to scripts. 225 // implementation details to scripts.
225 bool m_windowIsClosing; 226 bool m_windowIsClosing;
226 227
227 private: 228 private:
228 mutable RefPtrWillBeMember<Location> m_location; 229 mutable RefPtrWillBeMember<Location> m_location;
229 }; 230 };
230 231
231 } // namespace blink 232 } // namespace blink
232 233
233 #endif // DOMWindow_h 234 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698