| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, | 136 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, |
| 137 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); | 137 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); |
| 138 | 138 |
| 139 [Replaceable] readonly attribute double devicePixelRatio; | 139 [Replaceable] readonly attribute double devicePixelRatio; |
| 140 | 140 |
| 141 WebKitPoint webkitConvertPointFromPageToNode([Default=Undefined] optional No
de node, | 141 WebKitPoint webkitConvertPointFromPageToNode([Default=Undefined] optional No
de node, |
| 142 [Default=Undefined] optional We
bKitPoint p); | 142 [Default=Undefined] optional We
bKitPoint p); |
| 143 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, | 143 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, |
| 144 [Default=Undefined] optional We
bKitPoint p); | 144 [Default=Undefined] optional We
bKitPoint p); |
| 145 | 145 |
| 146 [EnabledAtRuntime, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds] re
adonly attribute ApplicationCache applicationCache; | 146 [EnabledAtRuntime=ApplicationCache, PerWorldBindings, ActivityLog=GetterForI
solatedWorlds] readonly attribute ApplicationCache applicationCache; |
| 147 | 147 |
| 148 [EnabledAtRuntime, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds, Ge
tterRaisesException] readonly attribute Storage sessionStorage; | 148 [EnabledAtRuntime=SessionStorage, PerWorldBindings, ActivityLog=GetterForIso
latedWorlds, GetterRaisesException] readonly attribute Storage sessionStorage; |
| 149 [EnabledAtRuntime, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds, Ge
tterRaisesException] readonly attribute Storage localStorage; | 149 [EnabledAtRuntime=LocalStorage, PerWorldBindings, ActivityLog=GetterForIsola
tedWorlds, GetterRaisesException] readonly attribute Storage localStorage; |
| 150 | 150 |
| 151 // This is the interface orientation in degrees. Some examples are: | 151 // This is the interface orientation in degrees. Some examples are: |
| 152 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 152 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 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); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // attribute EventHandler onafterprint; | 238 // attribute EventHandler onafterprint; |
| 239 // attribute EventHandler onbeforeprint; | 239 // attribute EventHandler onbeforeprint; |
| 240 // attribute EventHandler onreadystatechange; | 240 // attribute EventHandler onreadystatechange; |
| 241 // attribute EventHandler onredo; | 241 // attribute EventHandler onredo; |
| 242 // attribute EventHandler onshow; | 242 // attribute EventHandler onshow; |
| 243 // attribute EventHandler onundo; | 243 // attribute EventHandler onundo; |
| 244 | 244 |
| 245 // Webkit extensions | 245 // Webkit extensions |
| 246 attribute EventHandler onreset; | 246 attribute EventHandler onreset; |
| 247 attribute EventHandler onsearch; | 247 attribute EventHandler onsearch; |
| 248 [EnabledAtRuntime=CSSAnimationUnprefixed] attribute EventHandler onanimation
end; |
| 249 [EnabledAtRuntime=CSSAnimationUnprefixed] attribute EventHandler onanimation
iteration; |
| 250 [EnabledAtRuntime=CSSAnimationUnprefixed] attribute EventHandler onanimation
start; |
| 248 attribute EventHandler onwebkitanimationend; | 251 attribute EventHandler onwebkitanimationend; |
| 249 attribute EventHandler onwebkitanimationiteration; | 252 attribute EventHandler onwebkitanimationiteration; |
| 250 attribute EventHandler onwebkitanimationstart; | 253 attribute EventHandler onwebkitanimationstart; |
| 251 attribute EventHandler onwebkittransitionend; | 254 attribute EventHandler onwebkittransitionend; |
| 252 attribute EventHandler ontransitionend; | 255 attribute EventHandler ontransitionend; |
| 253 [Conditional=ORIENTATION_EVENTS] attribute EventHandler onorientationchange; | 256 [Conditional=ORIENTATION_EVENTS] attribute EventHandler onorientationchange; |
| 254 [EnabledAtRuntime=touch] attribute EventHandler ontouchstart; | 257 [EnabledAtRuntime=Touch] attribute EventHandler ontouchstart; |
| 255 [EnabledAtRuntime=touch] attribute EventHandler ontouchmove; | 258 [EnabledAtRuntime=Touch] attribute EventHandler ontouchmove; |
| 256 [EnabledAtRuntime=touch] attribute EventHandler ontouchend; | 259 [EnabledAtRuntime=Touch] attribute EventHandler ontouchend; |
| 257 [EnabledAtRuntime=touch] attribute EventHandler ontouchcancel; | 260 [EnabledAtRuntime=Touch] attribute EventHandler ontouchcancel; |
| 258 | 261 |
| 259 [EnabledAtRuntime=deviceMotion] attribute EventHandler ondevicemotion; | 262 [EnabledAtRuntime=DeviceMotion] attribute EventHandler ondevicemotion; |
| 260 [EnabledAtRuntime=deviceOrientation] attribute EventHandler ondeviceorientat
ion; | 263 [EnabledAtRuntime=DeviceOrientation] attribute EventHandler ondeviceorientat
ion; |
| 261 | 264 |
| 262 [DeprecateAs=CaptureEvents] void captureEvents(); | 265 [DeprecateAs=CaptureEvents] void captureEvents(); |
| 263 [DeprecateAs=ReleaseEvents] void releaseEvents(); | 266 [DeprecateAs=ReleaseEvents] void releaseEvents(); |
| 264 | 267 |
| 265 // Additional constructors. | 268 // Additional constructors. |
| 266 attribute TransitionEventConstructor WebKitTransitionEvent; | 269 attribute TransitionEventConstructor WebKitTransitionEvent; |
| 267 [EnabledAtRuntime=cssAnimationUnprefixed] attribute WebKitAnimationEventCons
tructor AnimationEvent; | 270 [EnabledAtRuntime=CSSAnimationUnprefixed] attribute WebKitAnimationEventCons
tructor AnimationEvent; |
| 268 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image;
// Usable with new operator | 271 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image;
// Usable with new operator |
| 269 // Mozilla has a separate XMLDocument object for XML documents. | 272 // Mozilla has a separate XMLDocument object for XML documents. |
| 270 // We just use Document for this. | 273 // We just use Document for this. |
| 271 attribute DocumentConstructor XMLDocument; | 274 attribute DocumentConstructor XMLDocument; |
| 272 attribute URLConstructor webkitURL; // FIXME: deprecate this. | 275 attribute URLConstructor webkitURL; // FIXME: deprecate this. |
| 273 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 276 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. |
| 274 attribute IDBCursorConstructor webkitIDBCursor; | 277 attribute IDBCursorConstructor webkitIDBCursor; |
| 275 attribute IDBDatabaseConstructor webkitIDBDatabase; | 278 attribute IDBDatabaseConstructor webkitIDBDatabase; |
| 276 attribute IDBFactoryConstructor webkitIDBFactory; | 279 attribute IDBFactoryConstructor webkitIDBFactory; |
| 277 attribute IDBIndexConstructor webkitIDBIndex; | 280 attribute IDBIndexConstructor webkitIDBIndex; |
| 278 attribute IDBKeyRangeConstructor webkitIDBKeyRange; | 281 attribute IDBKeyRangeConstructor webkitIDBKeyRange; |
| 279 attribute IDBObjectStoreConstructor webkitIDBObjectStore; | 282 attribute IDBObjectStoreConstructor webkitIDBObjectStore; |
| 280 attribute IDBRequestConstructor webkitIDBRequest; | 283 attribute IDBRequestConstructor webkitIDBRequest; |
| 281 attribute IDBTransactionConstructor webkitIDBTransaction; | 284 attribute IDBTransactionConstructor webkitIDBTransaction; |
| 282 | 285 |
| 283 // Constructors whose name does not match the interface name. | 286 // Constructors whose name does not match the interface name. |
| 284 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam
es match interface names. | 287 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam
es match interface names. |
| 285 [EnabledAtRuntime=mediaStream] attribute MediaStreamConstructor webkitMediaS
tream; | 288 [EnabledAtRuntime=MediaStream] attribute MediaStreamConstructor webkitMediaS
tream; |
| 286 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute AudioContextCon
structor webkitAudioContext; | 289 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute AudioContextCon
structor webkitAudioContext; |
| 287 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute OfflineAudioCon
textConstructor webkitOfflineAudioContext; | 290 [Conditional=WEB_AUDIO, EnabledAtRuntime=WebAudio] attribute OfflineAudioCon
textConstructor webkitOfflineAudioContext; |
| 288 [EnabledAtRuntime=peerConnection] attribute RTCPeerConnectionConstructor web
kitRTCPeerConnection; | 291 [EnabledAtRuntime=PeerConnection] attribute RTCPeerConnectionConstructor web
kitRTCPeerConnection; |
| 289 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarConstructor webkitS
peechGrammar; | 292 [EnabledAtRuntime=ScriptedSpeech] attribute SpeechGrammarConstructor webkitS
peechGrammar; |
| 290 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarListConstructor web
kitSpeechGrammarList; | 293 [EnabledAtRuntime=ScriptedSpeech] attribute SpeechGrammarListConstructor web
kitSpeechGrammarList; |
| 291 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionConstructor web
kitSpeechRecognition; | 294 [EnabledAtRuntime=ScriptedSpeech] attribute SpeechRecognitionConstructor web
kitSpeechRecognition; |
| 292 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionErrorConstructo
r webkitSpeechRecognitionError; | 295 [EnabledAtRuntime=ScriptedSpeech] attribute SpeechRecognitionErrorConstructo
r webkitSpeechRecognitionError; |
| 293 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionEventConstructo
r webkitSpeechRecognitionEvent; | 296 [EnabledAtRuntime=ScriptedSpeech] attribute SpeechRecognitionEventConstructo
r webkitSpeechRecognitionEvent; |
| 294 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; | 297 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; |
| 295 | 298 |
| 296 // Prefixed ShadowRoot constructor should be phased out eventually, but for
the moment it must be always exposed. | 299 // Prefixed ShadowRoot constructor should be phased out eventually, but for
the moment it must be always exposed. |
| 297 // Unprefixed ShadowRoot constructor should be visible when the feature flag
is enabled. | 300 // Unprefixed ShadowRoot constructor should be visible when the feature flag
is enabled. |
| 298 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr
uctors from Window.idl and remove | 301 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr
uctors from Window.idl and remove |
| 299 // [NoInterfaceObject] from ShadowRoot interface definition. | 302 // [NoInterfaceObject] from ShadowRoot interface definition. |
| 300 [EnabledAtRuntime=ShadowDOM] attribute ShadowRootConstructor ShadowRoot; | 303 [EnabledAtRuntime=ShadowDOM] attribute ShadowRootConstructor ShadowRoot; |
| 301 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We
bKitShadowRoot; | 304 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We
bKitShadowRoot; |
| 302 | 305 |
| 303 // window.toString() requires special handling in V8 | 306 // window.toString() requires special handling in V8 |
| 304 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 307 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
| 305 | 308 |
| 306 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); | 309 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); |
| 307 [Custom, NotEnumerable] getter Window (DOMString name); | 310 [Custom, NotEnumerable] getter Window (DOMString name); |
| 308 }; | 311 }; |
| 309 | 312 |
| 310 Window implements ImageBitmapFactories; | 313 Window implements ImageBitmapFactories; |
| 311 Window implements WindowTimers; | 314 Window implements WindowTimers; |
| 312 Window implements WindowBase64; | 315 Window implements WindowBase64; |
| OLD | NEW |