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

Side by Side Diff: core/page/Window.idl

Issue 23014006: Roll IDL to multivm@1350 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 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 | « core/page/SpeechInputResultList.idl ('k') | core/scripts/action_derivedsourcesallinone.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // 90 is when rotated counter clockwise. 153 // 90 is when rotated counter clockwise.
154 [Conditional=ORIENTATION_EVENTS] readonly attribute long orientation; 154 [Conditional=ORIENTATION_EVENTS] readonly attribute long orientation;
155 155
156 [Replaceable] readonly attribute Console console; 156 [Replaceable] readonly attribute Console console;
157 157
158 // cross-document messaging 158 // cross-document messaging
159 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr iptValue message, DOMString targetOrigin, optional Array messagePorts); 159 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr iptValue message, DOMString targetOrigin, optional Array messagePorts);
160 160
161 [Replaceable] readonly attribute Performance performance; 161 [Replaceable] readonly attribute Performance performance;
162 162
163 // Images
164 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLImageElement image, ImageBitmapCallback callback);
165 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLImageElement image, ImageBitmapCallback callback, long sx, long sy , long sw, long sh);
166 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLVideoElement video, ImageBitmapCallback callback);
167 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLVideoElement video, ImageBitmapCallback callback, long sx, long sy , long sw, long sh);
168 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(CanvasRenderingContext2D context, ImageBitmapCallback callback);
169 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(CanvasRenderingContext2D context, ImageBitmapCallback callback, long s x, long sy, long sw, long sh);
170 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLCanvasElement canvas, ImageBitmapCallback callback);
171 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(HTMLCanvasElement canvas, ImageBitmapCallback callback, long sx, long sy, long sw, long sh);
172 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(ImageData data, ImageBitmapCallback callback);
173 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(ImageData data, ImageBitmapCallback callback, long sx, long sy, long s w, long sh);
174 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(ImageBitmap bitmap, ImageBitmapCallback callback);
175 [EnabledAtRuntime=experimentalCanvasFeatures, RaisesException] void createIm ageBitmap(ImageBitmap bitmap, ImageBitmapCallback callback, long sx, long sy, lo ng sw, long sh);
176
177 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque stAnimationFrameCallback callback); 163 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque stAnimationFrameCallback callback);
178 void cancelAnimationFrame(long id); 164 void cancelAnimationFrame(long id);
179 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R equestAnimationFrameCallback callback); 165 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R equestAnimationFrameCallback callback);
180 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id ); 166 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id );
181 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame( long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix. 167 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame( long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix.
182 168
183 [Replaceable] readonly attribute CSS CSS; 169 [Replaceable] readonly attribute CSS CSS;
184 170
185 // Events 171 // Events
186 attribute EventListener onabort; 172 attribute EventHandler onabort;
187 attribute EventListener onbeforeunload; 173 attribute EventHandler onbeforeunload;
188 attribute EventListener onblur; 174 attribute EventHandler onblur;
189 attribute EventListener oncanplay; 175 attribute EventHandler oncanplay;
190 attribute EventListener oncanplaythrough; 176 attribute EventHandler oncanplaythrough;
191 attribute EventListener onchange; 177 attribute EventHandler onchange;
192 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onclick; 178 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onclick;
193 attribute EventListener oncontextmenu; 179 attribute EventHandler oncontextmenu;
194 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondblclick; 180 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondblclick;
195 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondrag; 181 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondrag;
196 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondragend; 182 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondragend;
197 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondragenter; 183 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondragenter;
198 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondragleave; 184 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondragleave;
199 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondragover; 185 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondragover;
200 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondragstart; 186 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondragstart;
201 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner ondrop; 187 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er ondrop;
202 attribute EventListener ondurationchange; 188 attribute EventHandler ondurationchange;
203 attribute EventListener onemptied; 189 attribute EventHandler onemptied;
204 attribute EventListener onended; 190 attribute EventHandler onended;
205 attribute EventListener onerror; 191 attribute EventHandler onerror;
206 attribute EventListener onfocus; 192 attribute EventHandler onfocus;
207 attribute EventListener onhashchange; 193 attribute EventHandler onhashchange;
208 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner oninput; 194 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er oninput;
209 attribute EventListener oninvalid; 195 attribute EventHandler oninvalid;
210 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onkeydown; 196 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onkeydown;
211 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onkeypress; 197 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onkeypress;
212 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onkeyup; 198 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onkeyup;
213 attribute EventListener onload; 199 attribute EventHandler onload;
214 attribute EventListener onloadeddata; 200 attribute EventHandler onloadeddata;
215 attribute EventListener onloadedmetadata; 201 attribute EventHandler onloadedmetadata;
216 attribute EventListener onloadstart; 202 attribute EventHandler onloadstart;
217 attribute EventListener onmessage; 203 attribute EventHandler onmessage;
218 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmousedown; 204 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmousedown;
219 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmouseenter; 205 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmouseenter;
220 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmouseleave; 206 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmouseleave;
221 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmousemove; 207 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmousemove;
222 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmouseout; 208 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmouseout;
223 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmouseover; 209 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmouseover;
224 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmouseup; 210 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmouseup;
225 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListe ner onmousewheel; 211 [PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandl er onmousewheel;
226 attribute EventListener onoffline; 212 attribute EventHandler onoffline;
227 attribute EventListener ononline; 213 attribute EventHandler ononline;
228 attribute EventListener onpagehide; 214 attribute EventHandler onpagehide;
229 attribute EventListener onpageshow; 215 attribute EventHandler onpageshow;
230 attribute EventListener onpause; 216 attribute EventHandler onpause;
231 attribute EventListener onplay; 217 attribute EventHandler onplay;
232 attribute EventListener onplaying; 218 attribute EventHandler onplaying;
233 attribute EventListener onpopstate; 219 attribute EventHandler onpopstate;
234 attribute EventListener onprogress; 220 attribute EventHandler onprogress;
235 attribute EventListener onratechange; 221 attribute EventHandler onratechange;
236 attribute EventListener onresize; 222 attribute EventHandler onresize;
237 attribute EventListener onscroll; 223 attribute EventHandler onscroll;
238 attribute EventListener onseeked; 224 attribute EventHandler onseeked;
239 attribute EventListener onseeking; 225 attribute EventHandler onseeking;
240 attribute EventListener onselect; 226 attribute EventHandler onselect;
241 attribute EventListener onstalled; 227 attribute EventHandler onstalled;
242 attribute EventListener onstorage; 228 attribute EventHandler onstorage;
243 attribute EventListener onsubmit; 229 attribute EventHandler onsubmit;
244 attribute EventListener onsuspend; 230 attribute EventHandler onsuspend;
245 attribute EventListener ontimeupdate; 231 attribute EventHandler ontimeupdate;
246 attribute EventListener onunload; 232 attribute EventHandler onunload;
247 attribute EventListener onvolumechange; 233 attribute EventHandler onvolumechange;
248 attribute EventListener onwaiting; 234 attribute EventHandler onwaiting;
249 235
250 // Not implemented yet. 236 // Not implemented yet.
251 // attribute EventListener onafterprint; 237 // attribute EventHandler onafterprint;
252 // attribute EventListener onbeforeprint; 238 // attribute EventHandler onbeforeprint;
253 // attribute EventListener onreadystatechange; 239 // attribute EventHandler onreadystatechange;
254 // attribute EventListener onredo; 240 // attribute EventHandler onredo;
255 // attribute EventListener onshow; 241 // attribute EventHandler onshow;
256 // attribute EventListener onundo; 242 // attribute EventHandler onundo;
257 243
258 // Webkit extensions 244 // Webkit extensions
259 attribute EventListener onreset; 245 attribute EventHandler onreset;
260 attribute EventListener onsearch; 246 attribute EventHandler onsearch;
261 attribute EventListener onwebkitanimationend; 247 attribute EventHandler onwebkitanimationend;
262 attribute EventListener onwebkitanimationiteration; 248 attribute EventHandler onwebkitanimationiteration;
263 attribute EventListener onwebkitanimationstart; 249 attribute EventHandler onwebkitanimationstart;
264 attribute EventListener onwebkittransitionend; 250 attribute EventHandler onwebkittransitionend;
265 attribute EventListener ontransitionend; 251 attribute EventHandler ontransitionend;
266 [Conditional=ORIENTATION_EVENTS] attribute EventListener onorientationchange ; 252 [Conditional=ORIENTATION_EVENTS] attribute EventHandler onorientationchange;
267 [EnabledAtRuntime=touch] attribute EventListener ontouchstart; 253 [EnabledAtRuntime=touch] attribute EventHandler ontouchstart;
268 [EnabledAtRuntime=touch] attribute EventListener ontouchmove; 254 [EnabledAtRuntime=touch] attribute EventHandler ontouchmove;
269 [EnabledAtRuntime=touch] attribute EventListener ontouchend; 255 [EnabledAtRuntime=touch] attribute EventHandler ontouchend;
270 [EnabledAtRuntime=touch] attribute EventListener ontouchcancel; 256 [EnabledAtRuntime=touch] attribute EventHandler ontouchcancel;
271 257
272 [EnabledAtRuntime=deviceMotion] attribute EventListener ondevicemotion; 258 [EnabledAtRuntime=deviceMotion] attribute EventHandler ondevicemotion;
273 [EnabledAtRuntime=deviceOrientation] attribute EventListener ondeviceorienta tion; 259 [EnabledAtRuntime=deviceOrientation] attribute EventHandler ondeviceorientat ion;
260
261 [DeprecateAs=CaptureEvents] void captureEvents();
262 [DeprecateAs=ReleaseEvents] void releaseEvents();
274 263
275 // Additional constructors. 264 // Additional constructors.
276 attribute TransitionEventConstructor WebKitTransitionEvent; 265 attribute TransitionEventConstructor WebKitTransitionEvent;
277 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image; // Usable with new operator 266 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image; // Usable with new operator
278 // Mozilla has a separate XMLDocument object for XML documents. 267 // Mozilla has a separate XMLDocument object for XML documents.
279 // We just use Document for this. 268 // We just use Document for this.
280 attribute DocumentConstructor XMLDocument; 269 attribute DocumentConstructor XMLDocument;
281 attribute URLConstructor webkitURL; // FIXME: deprecate this. 270 attribute URLConstructor webkitURL; // FIXME: deprecate this.
282 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add metrics to determine when we can remove this. 271 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add metrics to determine when we can remove this.
283 attribute IDBCursorConstructor webkitIDBCursor; 272 attribute IDBCursorConstructor webkitIDBCursor;
284 attribute IDBDatabaseConstructor webkitIDBDatabase; 273 attribute IDBDatabaseConstructor webkitIDBDatabase;
285 attribute IDBFactoryConstructor webkitIDBFactory; 274 attribute IDBFactoryConstructor webkitIDBFactory;
286 attribute IDBIndexConstructor webkitIDBIndex; 275 attribute IDBIndexConstructor webkitIDBIndex;
287 attribute IDBKeyRangeConstructor webkitIDBKeyRange; 276 attribute IDBKeyRangeConstructor webkitIDBKeyRange;
288 attribute IDBObjectStoreConstructor webkitIDBObjectStore; 277 attribute IDBObjectStoreConstructor webkitIDBObjectStore;
289 attribute IDBRequestConstructor webkitIDBRequest; 278 attribute IDBRequestConstructor webkitIDBRequest;
290 attribute IDBTransactionConstructor webkitIDBTransaction; 279 attribute IDBTransactionConstructor webkitIDBTransaction;
291 280
292 // Constructors whose name does not match the interface name. 281 // Constructors whose name does not match the interface name.
293 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam es match interface names. 282 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam es match interface names.
294 [EnabledAtRuntime=mediaStream] attribute MediaStreamConstructor webkitMediaS tream; 283 [EnabledAtRuntime=mediaStream] attribute MediaStreamConstructor webkitMediaS tream;
295 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute AudioContextCon structor webkitAudioContext; 284 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute AudioContextCon structor webkitAudioContext;
296 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute OfflineAudioCon textConstructor webkitOfflineAudioContext; 285 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute OfflineAudioCon textConstructor webkitOfflineAudioContext;
297 [EnabledAtRuntime=peerConnection] attribute RTCPeerConnectionConstructor web kitRTCPeerConnection; 286 [EnabledAtRuntime=peerConnection] attribute RTCPeerConnectionConstructor web kitRTCPeerConnection;
298 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarConstructor webkitS peechGrammar; 287 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarConstructor webkitS peechGrammar;
299 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarListConstructor web kitSpeechGrammarList; 288 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarListConstructor web kitSpeechGrammarList;
300 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionConstructor web kitSpeechRecognition; 289 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionConstructor web kitSpeechRecognition;
301 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionErrorConstructo r webkitSpeechRecognitionError; 290 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionErrorConstructo r webkitSpeechRecognitionError;
302 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionEventConstructo r webkitSpeechRecognitionEvent; 291 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionEventConstructo r webkitSpeechRecognitionEvent;
303 attribute ShadowRootConstructor WebKitShadowRoot;
304 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod e; 292 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod e;
305 293
294 // Prefixed ShadowRoot constructor should be phased out eventually, but for the moment it must be always exposed.
295 // Unprefixed ShadowRoot constructor should be visible when the feature flag is enabled.
296 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr uctors from Window.idl and remove
297 // [NoInterfaceObject] from ShadowRoot interface definition.
298 [EnabledAtRuntime=ShadowDOM] attribute ShadowRootConstructor ShadowRoot;
299 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We bKitShadowRoot;
300
306 // window.toString() requires special handling in V8 301 // window.toString() requires special handling in V8
307 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t oString(); 302 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t oString();
308 303
309 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned long index); 304 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned long index);
310 [Custom, NotEnumerable] getter Window (DOMString name); 305 [Custom, NotEnumerable] getter Window (DOMString name);
311 }; 306 };
312 307
308 Window implements ImageBitmapFactories;
313 Window implements WindowTimers; 309 Window implements WindowTimers;
314 Window implements WindowBase64; 310 Window implements WindowBase64;
OLDNEW
« no previous file with comments | « core/page/SpeechInputResultList.idl ('k') | core/scripts/action_derivedsourcesallinone.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698