| OLD | NEW |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void stop(); | 58 void stop(); |
| 59 | 59 |
| 60 [Custom] Window open(DOMString url, | 60 [Custom] Window open(DOMString url, |
| 61 DOMString name, | 61 DOMString name, |
| 62 optional DOMString options); | 62 optional DOMString options); |
| 63 | 63 |
| 64 [Custom] any showModalDialog(DOMString url, | 64 [Custom] any showModalDialog(DOMString url, |
| 65 optional any dialogArgs, | 65 optional any dialogArgs, |
| 66 optional DOMString featureArgs); | 66 optional DOMString featureArgs); |
| 67 | 67 |
| 68 void alert([Default=Undefined] optional DOMString message); | 68 void alert([Default=NullString] optional DOMString message); |
| 69 boolean confirm([Default=Undefined] optional DOMString message); | 69 boolean confirm([Default=NullString] optional DOMString message); |
| 70 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=Undefined] option
al DOMString message, | 70 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=NullString] optio
nal DOMString message, |
| 71 [TreatNullAs=NullString, TreatUn
definedAs=NullString,Default=Undefined] optional DOMString defaultValue); | 71 [Default=NullString] optio
nal DOMString defaultValue); |
| 72 | 72 |
| 73 boolean find([Default=Undefined] optional DOMString string, | 73 boolean find([Default=Undefined] optional DOMString string, |
| 74 [Default=Undefined] optional boolean caseSensitive, | 74 [Default=Undefined] optional boolean caseSensitive, |
| 75 [Default=Undefined] optional boolean backwards, | 75 [Default=Undefined] optional boolean backwards, |
| 76 [Default=Undefined] optional boolean wrap, | 76 [Default=Undefined] optional boolean wrap, |
| 77 [Default=Undefined] optional boolean wholeWord, | 77 [Default=Undefined] optional boolean wholeWord, |
| 78 [Default=Undefined] optional boolean searchInFrames, | 78 [Default=Undefined] optional boolean searchInFrames, |
| 79 [Default=Undefined] optional boolean showDialog); | 79 [Default=Undefined] optional boolean showDialog); |
| 80 | 80 |
| 81 [Replaceable] readonly attribute boolean offscreenBuffering; | 81 [Replaceable] readonly attribute boolean offscreenBuffering; |
| 82 | 82 |
| 83 [Replaceable] readonly attribute long outerHeight; | 83 [Replaceable] readonly attribute long outerHeight; |
| 84 [Replaceable] readonly attribute long outerWidth; | 84 [Replaceable] readonly attribute long outerWidth; |
| 85 [Replaceable] readonly attribute long innerHeight; | 85 [Replaceable] readonly attribute long innerHeight; |
| 86 [Replaceable] readonly attribute long innerWidth; | 86 [Replaceable] readonly attribute long innerWidth; |
| 87 [Replaceable] readonly attribute long screenX; | 87 [Replaceable] readonly attribute long screenX; |
| 88 [Replaceable] readonly attribute long screenY; | 88 [Replaceable] readonly attribute long screenY; |
| 89 [Replaceable] readonly attribute long screenLeft; | 89 [Replaceable] readonly attribute long screenLeft; |
| 90 [Replaceable] readonly attribute long screenTop; | 90 [Replaceable] readonly attribute long screenTop; |
| 91 [Replaceable] readonly attribute long scrollX; | 91 [Replaceable] readonly attribute long scrollX; |
| 92 [Replaceable] readonly attribute long scrollY; | 92 [Replaceable] readonly attribute long scrollY; |
| 93 readonly attribute long pageXOffset; | 93 readonly attribute long pageXOffset; |
| 94 readonly attribute long pageYOffset; | 94 readonly attribute long pageYOffset; |
| 95 | 95 |
| 96 void scrollBy(long x, long y); | 96 // FIXME: should be: |
| 97 void scrollTo(long x, long y); | 97 // void scrollBy(long x, long y); |
| 98 void scroll(long x, long y); | 98 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x,
long y, optional Dictionary scrollOptions); |
| 99 // void scrollTo(long x, long y); |
| 100 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x,
long y, optional Dictionary scrollOptions); |
| 101 // void scroll(long x, long y); |
| 102 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, l
ong y, optional Dictionary scrollOptions); |
| 103 // http://crbug.com/339000 |
| 104 [RaisesException] void scrollBy(long x, long y, optional Dictionary scrollOp
tions); |
| 105 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOp
tions); |
| 106 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOpti
ons); |
| 99 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 107 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 100 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 108 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 101 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. | 109 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. |
| 102 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. | 110 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. |
| 103 | 111 |
| 104 [DoNotCheckSecurity] readonly attribute boolean closed; | 112 [DoNotCheckSecurity] readonly attribute boolean closed; |
| 105 | 113 |
| 106 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
| 107 | 115 |
| 108 attribute DOMString name; | 116 attribute DOMString name; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 [Default=Undefined] optional We
bKitPoint p); | 154 [Default=Undefined] optional We
bKitPoint p); |
| 147 | 155 |
| 148 [RuntimeEnabled=ApplicationCache, PerWorldBindings, ActivityLogging=GetterFo
rIsolatedWorlds] readonly attribute ApplicationCache applicationCache; | 156 [RuntimeEnabled=ApplicationCache, PerWorldBindings, ActivityLogging=GetterFo
rIsolatedWorlds] readonly attribute ApplicationCache applicationCache; |
| 149 | 157 |
| 150 [RuntimeEnabled=SessionStorage, PerWorldBindings, ActivityLogging=GetterForI
solatedWorlds, RaisesException=Getter] readonly attribute Storage sessionStorage
; | 158 [RuntimeEnabled=SessionStorage, PerWorldBindings, ActivityLogging=GetterForI
solatedWorlds, RaisesException=Getter] readonly attribute Storage sessionStorage
; |
| 151 [RuntimeEnabled=LocalStorage, PerWorldBindings, ActivityLogging=GetterForIso
latedWorlds, RaisesException=Getter] readonly attribute Storage localStorage; | 159 [RuntimeEnabled=LocalStorage, PerWorldBindings, ActivityLogging=GetterForIso
latedWorlds, RaisesException=Getter] readonly attribute Storage localStorage; |
| 152 | 160 |
| 153 // This is the interface orientation in degrees. Some examples are: | 161 // This is the interface orientation in degrees. Some examples are: |
| 154 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 162 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 155 // 90 is when rotated counter clockwise. | 163 // 90 is when rotated counter clockwise. |
| 156 [Conditional=ORIENTATION_EVENTS] readonly attribute long orientation; | 164 [RuntimeEnabled=OrientationEvent] readonly attribute long orientation; |
| 157 | 165 |
| 158 [Replaceable] readonly attribute Console console; | 166 [Replaceable] readonly attribute Console console; |
| 159 | 167 |
| 160 // cross-document messaging | 168 // cross-document messaging |
| 161 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional Array messagePorts); | 169 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); |
| 162 | 170 |
| 163 [Replaceable] readonly attribute Performance performance; | 171 [Replaceable] readonly attribute Performance performance; |
| 164 | 172 |
| 165 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 173 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
| 166 void cancelAnimationFrame(long id); | 174 void cancelAnimationFrame(long id); |
| 167 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R
equestAnimationFrameCallback callback); | 175 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R
equestAnimationFrameCallback callback); |
| 168 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id
); | 176 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id
); |
| 169 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(
long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove
this when removing vendor prefix. | 177 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(
long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove
this when removing vendor prefix. |
| 170 | 178 |
| 171 [Replaceable] readonly attribute CSS CSS; | 179 [Replaceable] readonly attribute CSS CSS; |
| 172 | 180 |
| 173 // Event handler attributes | 181 // Event handler attributes |
| 174 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; | 182 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; |
| 175 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; | 183 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; |
| 176 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst
art; | 184 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst
art; |
| 177 [RuntimeEnabled=DeviceMotion] attribute EventHandler ondevicemotion; | 185 [RuntimeEnabled=DeviceMotion] attribute EventHandler ondevicemotion; |
| 178 [RuntimeEnabled=DeviceOrientation] attribute EventHandler ondeviceorientatio
n; | 186 [RuntimeEnabled=DeviceOrientation] attribute EventHandler ondeviceorientatio
n; |
| 179 [Conditional=ORIENTATION_EVENTS] attribute EventHandler onorientationchange; | 187 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange
; |
| 180 attribute EventHandler onsearch; | 188 attribute EventHandler onsearch; |
| 181 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 189 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
| 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 190 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 191 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 192 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 185 attribute EventHandler ontransitionend; | 193 attribute EventHandler ontransitionend; |
| 186 attribute EventHandler onwebkitanimationend; | 194 attribute EventHandler onwebkitanimationend; |
| 187 attribute EventHandler onwebkitanimationiteration; | 195 attribute EventHandler onwebkitanimationiteration; |
| 188 attribute EventHandler onwebkitanimationstart; | 196 attribute EventHandler onwebkitanimationstart; |
| 189 attribute EventHandler onwebkittransitionend; | 197 attribute EventHandler onwebkittransitionend; |
| 190 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 198 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; |
| 191 | 199 |
| 192 [DeprecateAs=CaptureEvents] void captureEvents(); | 200 [DeprecateAs=CaptureEvents] void captureEvents(); |
| 193 [DeprecateAs=ReleaseEvents] void releaseEvents(); | 201 [DeprecateAs=ReleaseEvents] void releaseEvents(); |
| 194 | 202 |
| 195 // Additional constructors. | 203 // Additional constructors. |
| 196 attribute TransitionEventConstructor WebKitTransitionEvent; | 204 attribute TransitionEventConstructor WebKitTransitionEvent; |
| 197 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; | 205 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; |
| 198 // Mozilla has a separate XMLDocument object for XML documents. | |
| 199 // We just use Document for this. | |
| 200 attribute DocumentConstructor XMLDocument; | |
| 201 attribute URLConstructor webkitURL; // FIXME: deprecate this. | 206 attribute URLConstructor webkitURL; // FIXME: deprecate this. |
| 202 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 207 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. |
| 203 attribute IDBCursorConstructor webkitIDBCursor; | 208 attribute IDBCursorConstructor webkitIDBCursor; |
| 204 attribute IDBDatabaseConstructor webkitIDBDatabase; | 209 attribute IDBDatabaseConstructor webkitIDBDatabase; |
| 205 attribute IDBFactoryConstructor webkitIDBFactory; | 210 attribute IDBFactoryConstructor webkitIDBFactory; |
| 206 attribute IDBIndexConstructor webkitIDBIndex; | 211 attribute IDBIndexConstructor webkitIDBIndex; |
| 207 attribute IDBKeyRangeConstructor webkitIDBKeyRange; | 212 attribute IDBKeyRangeConstructor webkitIDBKeyRange; |
| 208 attribute IDBObjectStoreConstructor webkitIDBObjectStore; | 213 attribute IDBObjectStoreConstructor webkitIDBObjectStore; |
| 209 attribute IDBRequestConstructor webkitIDBRequest; | 214 attribute IDBRequestConstructor webkitIDBRequest; |
| 210 attribute IDBTransactionConstructor webkitIDBTransaction; | 215 attribute IDBTransactionConstructor webkitIDBTransaction; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 225 // Prefixed ShadowRoot constructor should be phased out eventually, but for
the moment it must be always exposed. | 230 // Prefixed ShadowRoot constructor should be phased out eventually, but for
the moment it must be always exposed. |
| 226 // Unprefixed ShadowRoot constructor should be visible when the feature flag
is enabled. | 231 // Unprefixed ShadowRoot constructor should be visible when the feature flag
is enabled. |
| 227 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr
uctors from Window.idl and remove | 232 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr
uctors from Window.idl and remove |
| 228 // [NoInterfaceObject] from ShadowRoot interface definition. | 233 // [NoInterfaceObject] from ShadowRoot interface definition. |
| 229 [RuntimeEnabled=ShadowDOM] attribute ShadowRootConstructor ShadowRoot; | 234 [RuntimeEnabled=ShadowDOM] attribute ShadowRootConstructor ShadowRoot; |
| 230 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We
bKitShadowRoot; | 235 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We
bKitShadowRoot; |
| 231 | 236 |
| 232 // window.toString() requires special handling in V8 | 237 // window.toString() requires special handling in V8 |
| 233 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 238 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
| 234 | 239 |
| 235 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); | 240 [NotEnumerable] getter Window (unsigned long index); |
| 236 [Custom, NotEnumerable] getter Window (DOMString name); | 241 [Custom, NotEnumerable] getter Window (DOMString name); |
| 237 }; | 242 }; |
| 238 | 243 |
| 239 Window implements GlobalEventHandlers; | 244 Window implements GlobalEventHandlers; |
| 240 Window implements ImageBitmapFactories; | 245 Window implements ImageBitmapFactories; |
| 241 Window implements WindowBase64; | 246 Window implements WindowBase64; |
| 242 Window implements WindowEventHandlers; | 247 Window implements WindowEventHandlers; |
| 243 Window implements WindowTimers; | 248 Window implements WindowTimers; |
| OLD | NEW |