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

Side by Side Diff: third_party/WebCore/page/DOMWindow.idl

Issue 12319151: WebKit IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « third_party/WebCore/page/Console.idl ('k') | third_party/WebCore/page/Location.idl » ('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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 [DoNotCheckSecurity] void blur(); 67 [DoNotCheckSecurity] void blur();
68 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void close(); 68 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void close();
69 69
70 void print(); 70 void print();
71 void stop(); 71 void stop();
72 72
73 [Custom] DOMWindow open(in DOMString url, 73 [Custom] DOMWindow open(in DOMString url,
74 in DOMString name, 74 in DOMString name,
75 in [Optional] DOMString options); 75 in [Optional] DOMString options);
76 76
77 [Custom] DOMObject showModalDialog(in DOMString url, 77 [Custom] any showModalDialog(in DOMString url,
78 in [Optional] DOMObject dialogArgs, 78 in [Optional] any dialogArgs,
79 in [Optional] DOMString featureArgs); 79 in [Optional] DOMString featureArgs);
80 80
81 void alert(in [Optional=DefaultIsUndefined] DOMString message); 81 void alert(in [Optional=DefaultIsUndefined] DOMString message);
82 boolean confirm(in [Optional=DefaultIsUndefined] DOMString message); 82 boolean confirm(in [Optional=DefaultIsUndefined] DOMString message);
83 [TreatReturnedNullStringAs=Null] DOMString prompt(in [Optional=DefaultIsUnde fined] DOMString message, 83 [TreatReturnedNullStringAs=Null] DOMString prompt(in [Optional=DefaultIsUnde fined] DOMString message,
84 in [TreatNullAs=NullString, Trea tUndefinedAs=NullString,Optional=DefaultIsUndefined] DOMString defaultValue); 84 in [TreatNullAs=NullString, Trea tUndefinedAs=NullString,Optional=DefaultIsUndefined] DOMString defaultValue);
85 85
86 boolean find(in [Optional=DefaultIsUndefined] DOMString string, 86 boolean find(in [Optional=DefaultIsUndefined] DOMString string,
87 in [Optional=DefaultIsUndefined] boolean caseSensitive, 87 in [Optional=DefaultIsUndefined] boolean caseSensitive,
88 in [Optional=DefaultIsUndefined] boolean backwards, 88 in [Optional=DefaultIsUndefined] boolean backwards,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // This is the interface orientation in degrees. Some examples are: 173 // This is the interface orientation in degrees. Some examples are:
174 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 174 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
175 // 90 is when rotated counter clockwise. 175 // 90 is when rotated counter clockwise.
176 readonly attribute long orientation; 176 readonly attribute long orientation;
177 #endif 177 #endif
178 178
179 [Replaceable] readonly attribute Console console; 179 [Replaceable] readonly attribute Console console;
180 180
181 // cross-document messaging 181 // cross-document messaging
182 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT 182 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
183 [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue messa ge, in DOMString targetOrigin) 183 [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue messa ge, in DOMString targetOrigin, in [Optional] Array messagePorts)
184 raises(DOMException);
185 [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue messa ge, in DOMString targetOrigin, in Array messagePorts)
186 raises(DOMException); 184 raises(DOMException);
187 #else 185 #else
188 // There's no good way to expose an array via the ObjC bindings, so for now just allow passing in a single port. 186 // There's no good way to expose an array via the ObjC bindings, so for now just allow passing in a single port.
189 [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue messa ge, in [Optional] MessagePort messagePort, in DOMString targetOrigin) 187 [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue messa ge, in [Optional] MessagePort messagePort, in DOMString targetOrigin)
190 raises(DOMException); 188 raises(DOMException);
191 #endif 189 #endif
192 190
193 #if defined(ENABLE_WEB_TIMING) && ENABLE_WEB_TIMING 191 #if defined(ENABLE_WEB_TIMING) && ENABLE_WEB_TIMING
194 [Replaceable] readonly attribute Performance performance; 192 [Replaceable] readonly attribute Performance performance;
195 #endif 193 #endif
(...skipping 16 matching lines...) Expand all
212 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(in long id); 210 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(in long id);
213 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame( in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Rem ove this when removing vendor prefix. 211 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame( in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Rem ove this when removing vendor prefix.
214 #endif 212 #endif
215 213
216 // Base64 214 // Base64
217 DOMString atob(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMSt ring string) 215 DOMString atob(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMSt ring string)
218 raises(DOMException); 216 raises(DOMException);
219 DOMString btoa(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMSt ring string) 217 DOMString btoa(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMSt ring string)
220 raises(DOMException); 218 raises(DOMException);
221 219
220 attribute [Replaceable,Conditional=CSS3_CONDITIONAL_RULES] DOMWindowCSS CSS;
221
222 // Events 222 // Events
223 attribute EventListener onabort; 223 attribute EventListener onabort;
224 attribute EventListener onbeforeunload; 224 attribute EventListener onbeforeunload;
225 attribute EventListener onblur; 225 attribute EventListener onblur;
226 attribute EventListener oncanplay; 226 attribute EventListener oncanplay;
227 attribute EventListener oncanplaythrough; 227 attribute EventListener oncanplaythrough;
228 attribute EventListener onchange; 228 attribute EventListener onchange;
229 attribute EventListener onclick; 229 attribute EventListener onclick;
230 attribute EventListener oncontextmenu; 230 attribute EventListener oncontextmenu;
231 attribute EventListener ondblclick; 231 attribute EventListener ondblclick;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // attribute UserDataHandlerConstructor UserDataHandler; 390 // attribute UserDataHandlerConstructor UserDataHandler;
391 // attribute DOMErrorConstructor DOMError; 391 // attribute DOMErrorConstructor DOMError;
392 // attribute DOMErrorHandlerConstructor DOMErrorHandler 392 // attribute DOMErrorHandlerConstructor DOMErrorHandler
393 // attribute DOMLocatorConstructor DOMLocator; 393 // attribute DOMLocatorConstructor DOMLocator;
394 // attribute DOMConfigurationConstructor DOMConfiguration; 394 // attribute DOMConfigurationConstructor DOMConfiguration;
395 attribute CDATASectionConstructor CDATASection; 395 attribute CDATASectionConstructor CDATASection;
396 attribute DocumentTypeConstructor DocumentType; 396 attribute DocumentTypeConstructor DocumentType;
397 attribute NotationConstructor Notation; 397 attribute NotationConstructor Notation;
398 attribute EntityConstructor Entity; 398 attribute EntityConstructor Entity;
399 attribute EntityReferenceConstructor EntityReference; 399 attribute EntityReferenceConstructor EntityReference;
400 [Conditional=CANVAS_PATH] attribute DOMPathConstructor Path; 400 [Conditional=CANVAS_PATH, V8EnabledAtRuntime=canvasPath] attribute DOMPathCo nstructor Path;
401 attribute ProcessingInstructionConstructor ProcessingInstruction; 401 attribute ProcessingInstructionConstructor ProcessingInstruction;
402 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute ShadowRootC onstructor WebKitShadowRoot; 402 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute ShadowRootC onstructor WebKitShadowRoot;
403 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute HTMLContent ElementConstructor HTMLContentElement; 403 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute HTMLContent ElementConstructor HTMLContentElement;
404 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute HTMLShadowE lementConstructor HTMLShadowElement; 404 [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] attribute HTMLShadowE lementConstructor HTMLShadowElement;
405 405
406 attribute DOMSelectionConstructor Selection; 406 attribute DOMSelectionConstructor Selection;
407 attribute DOMWindowConstructor Window; 407 attribute DOMWindowConstructor Window;
408 408
409 attribute HTMLDocumentConstructor HTMLDocument; 409 attribute HTMLDocumentConstructor HTMLDocument;
410 attribute HTMLElementConstructor HTMLElement; 410 attribute HTMLElementConstructor HTMLElement;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 501
502 [JSCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioE lementConstructorConstructor Audio; // Usable with the new operator 502 [JSCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioE lementConstructorConstructor Audio; // Usable with the new operator
503 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioElementConstructo r HTMLAudioElement; 503 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioElementConstructo r HTMLAudioElement;
504 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLMediaElementConstructo r HTMLMediaElement; 504 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLMediaElementConstructo r HTMLMediaElement;
505 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLVideoElementConstructo r HTMLVideoElement; 505 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLVideoElementConstructo r HTMLVideoElement;
506 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaErrorConstructor Medi aError; 506 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaErrorConstructor Medi aError;
507 [Conditional=VIDEO, V8EnabledAtRuntime] attribute TimeRangesConstructor Time Ranges; 507 [Conditional=VIDEO, V8EnabledAtRuntime] attribute TimeRangesConstructor Time Ranges;
508 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLSourceElementConstruct or HTMLSourceElement; 508 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLSourceElementConstruct or HTMLSourceElement;
509 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaControllerConstructor MediaController; 509 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaControllerConstructor MediaController;
510 510
511 [Conditional=WEB_INTENTS_TAG] attribute HTMLIntentElementConstructor HTMLInt entElement;
512
513 attribute CanvasPatternConstructor CanvasPattern; 511 attribute CanvasPatternConstructor CanvasPattern;
514 attribute CanvasGradientConstructor CanvasGradient; 512 attribute CanvasGradientConstructor CanvasGradient;
515 attribute CanvasRenderingContext2DConstructor CanvasRenderingContext2D; 513 attribute CanvasRenderingContext2DConstructor CanvasRenderingContext2D;
516 514
517 attribute ImageDataConstructor ImageData; 515 attribute ImageDataConstructor ImageData;
518 attribute TextMetricsConstructor TextMetrics; 516 attribute TextMetricsConstructor TextMetrics;
519 517
520 [Conditional=WEBGL] attribute WebGLActiveInfoConstructor WebGLActiveInfo; 518 [Conditional=WEBGL] attribute WebGLActiveInfoConstructor WebGLActiveInfo;
521 [Conditional=WEBGL] attribute WebGLBufferConstructor WebGLBuffer; 519 [Conditional=WEBGL] attribute WebGLBufferConstructor WebGLBuffer;
522 [Conditional=WEBGL] attribute WebGLFramebufferConstructor WebGLFramebuffer; 520 [Conditional=WEBGL] attribute WebGLFramebufferConstructor WebGLFramebuffer;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 #endif 790 #endif
793 791
794 attribute DOMFormDataConstructor FormData; 792 attribute DOMFormDataConstructor FormData;
795 793
796 [Conditional=BLOB|FILE_SYSTEM] attribute FileErrorConstructor FileError; 794 [Conditional=BLOB|FILE_SYSTEM] attribute FileErrorConstructor FileError;
797 [Conditional=BLOB] attribute FileReaderConstructor FileReader; 795 [Conditional=BLOB] attribute FileReaderConstructor FileReader;
798 796
799 [Conditional=BLOB] attribute DOMURLConstructor URL; 797 [Conditional=BLOB] attribute DOMURLConstructor URL;
800 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat e this. 798 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat e this.
801 799
802 attribute MutationObserverConstructor WebKitMutationObserver; 800 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add metrics to determine when we can remove this.
801 attribute MutationObserverConstructor MutationObserver;
803 802
804 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute MediaSo urceConstructor WebKitMediaSource; 803 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute MediaSo urceConstructor WebKitMediaSource;
805 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB ufferConstructor WebKitSourceBuffer; 804 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB ufferConstructor WebKitSourceBuffer;
806 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB ufferListConstructor WebKitSourceBufferList; 805 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB ufferListConstructor WebKitSourceBufferList;
807 806
808 #endif // defined(LANGUAGE_JAVASCRIPT) 807 #endif // defined(LANGUAGE_JAVASCRIPT)
809 808
810 #if defined(V8_BINDING) && V8_BINDING 809 #if defined(V8_BINDING) && V8_BINDING
811 // window.toString() requires special handling in V8 810 // window.toString() requires special handling in V8
812 [V8DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString toString(); 811 [V8DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString toString();
813 #endif // defined(V8_BINDING) 812 #endif // defined(V8_BINDING)
814 }; 813 };
815 814
OLDNEW
« no previous file with comments | « third_party/WebCore/page/Console.idl ('k') | third_party/WebCore/page/Location.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698