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

Side by Side Diff: Source/core/frame/Window.idl

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // user prompts 75 // user prompts
76 void alert(); 76 void alert();
77 void alert(DOMString message); 77 void alert(DOMString message);
78 boolean confirm(optional DOMString message = ""); 78 boolean confirm(optional DOMString message = "");
79 DOMString? prompt(optional DOMString message = "", optional DOMString defaul tValue = ""); 79 DOMString? prompt(optional DOMString message = "", optional DOMString defaul tValue = "");
80 void print(); 80 void print();
81 81
82 // FIXME: requestAnimationFrame should take a FrameRequestCallback: 82 // FIXME: requestAnimationFrame should take a FrameRequestCallback:
83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152
84 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque stAnimationFrameCallback callback); 84 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame RequestCallback callback);
85 void cancelAnimationFrame(long handle); 85 void cancelAnimationFrame(long handle);
86 86
87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer); 87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
88 88
89 // HTML obsolete features 89 // HTML obsolete features
90 // https://html.spec.whatwg.org/#Window-partial 90 // https://html.spec.whatwg.org/#Window-partial
91 [MeasureAs=WindowCaptureEvents] void captureEvents(); 91 [MeasureAs=WindowCaptureEvents] void captureEvents();
92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); 92 [MeasureAs=WindowReleaseEvents] void releaseEvents();
93 93
94 // CSS Object Model (CSSOM) 94 // CSS Object Model (CSSOM)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; 159 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop;
160 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; 160 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus;
161 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt ring defaultstatus; 161 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt ring defaultstatus;
162 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; 162 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia;
163 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und efined] optional Element element, 163 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und efined] optional Element element,
164 [TreatUndefi nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement); 164 [TreatUndefi nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement);
165 // This is the interface orientation in degrees. Some examples are: 165 // This is the interface orientation in degrees. Some examples are:
166 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 166 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
167 // 90 is when rotated counter clockwise. 167 // 90 is when rotated counter clockwise.
168 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr ibute long orientation; 168 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr ibute long orientation;
169 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame (RequestAnimationFrameCallback callback); 169 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame (FrameRequestCallback callback);
170 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram e] void webkitCancelAnimationFrame(long id); 170 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram e] void webkitCancelAnimationFrame(long id);
171 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat ionFrame] void webkitCancelRequestAnimationFrame(long id); 171 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat ionFrame] void webkitCancelRequestAnimationFrame(long id);
172 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons tructor WebKitTransitionEvent; 172 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons tructor WebKitTransitionEvent;
173 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; 173 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent;
174 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; 174 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL;
175 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo nstructor WebKitMutationObserver; 175 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo nstructor WebKitMutationObserver;
176 176
177 // Event handler attributes 177 // Event handler attributes
178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen d; 178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen d;
179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit eration; 179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit eration;
(...skipping 27 matching lines...) Expand all
207 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 207 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
208 // is in place. 208 // is in place.
209 // FIXME: consider putting this typedef in an .idl file containing spec-wide 209 // FIXME: consider putting this typedef in an .idl file containing spec-wide
210 // utility type definitions. 210 // utility type definitions.
211 typedef MessagePort Transferable; 211 typedef MessagePort Transferable;
212 212
213 Window implements GlobalEventHandlers; 213 Window implements GlobalEventHandlers;
214 Window implements WindowBase64; 214 Window implements WindowBase64;
215 Window implements WindowEventHandlers; 215 Window implements WindowEventHandlers;
216 Window implements WindowTimers; 216 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « Source/core/frame/RemoteDOMWindow.cpp ('k') | Source/core/inspector/InspectorDOMDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698