| 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 |
| 11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
| 12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
| 13 * | 13 * |
| 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
| 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
| 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 [ | 27 [ |
| 28 CheckSecurity, | 28 CheckSecurity, |
| 29 JSCustomDefineOwnProperty, | |
| 30 CustomDeleteProperty, | 29 CustomDeleteProperty, |
| 31 CustomGetOwnPropertySlot, | 30 CustomGetOwnPropertySlot, |
| 32 CustomEnumerateProperty, | 31 CustomEnumerateProperty, |
| 33 JSCustomMarkFunction, | |
| 34 JSCustomToNativeObject, | |
| 35 CustomPutFunction, | 32 CustomPutFunction, |
| 36 EventTarget, | 33 EventTarget, |
| 37 ExtendsDOMGlobalObject, | 34 ExtendsDOMGlobalObject, |
| 38 JSGenerateToNativeObject, | |
| 39 ReplaceableConstructor, | 35 ReplaceableConstructor, |
| 40 JSLegacyParent=JSDOMWindowBase, | |
| 41 V8CustomToJSObject, | 36 V8CustomToJSObject, |
| 42 V8NoWrapperCache, | 37 V8NoWrapperCache, |
| 43 V8CustomIndexedGetter, | 38 V8CustomIndexedGetter, |
| 44 InterfaceName=Window | 39 InterfaceName=Window |
| 45 ] interface DOMWindow { | 40 ] interface DOMWindow { |
| 46 // DOM Level 0 | 41 // DOM Level 0 |
| 47 [Replaceable] readonly attribute Screen screen; | 42 [Replaceable] readonly attribute Screen screen; |
| 48 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute History history
; | 43 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute History history
; |
| 49 [Replaceable] readonly attribute BarInfo locationbar; | 44 [Replaceable] readonly attribute BarInfo locationbar; |
| 50 [Replaceable] readonly attribute BarInfo menubar; | 45 [Replaceable] readonly attribute BarInfo menubar; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 attribute HTMLTitleElementConstructor HTMLTitleElement; | 466 attribute HTMLTitleElementConstructor HTMLTitleElement; |
| 472 attribute HTMLUListElementConstructor HTMLUListElement; | 467 attribute HTMLUListElementConstructor HTMLUListElement; |
| 473 | 468 |
| 474 attribute HTMLCollectionConstructor HTMLCollection; | 469 attribute HTMLCollectionConstructor HTMLCollection; |
| 475 attribute HTMLAllCollectionConstructor HTMLAllCollection; | 470 attribute HTMLAllCollectionConstructor HTMLAllCollection; |
| 476 attribute HTMLFormControlsCollectionConstructor HTMLFormControlsCollection; | 471 attribute HTMLFormControlsCollectionConstructor HTMLFormControlsCollection; |
| 477 attribute HTMLOptionsCollectionConstructor HTMLOptionsCollection; | 472 attribute HTMLOptionsCollectionConstructor HTMLOptionsCollection; |
| 478 [Conditional=MICRODATA] attribute HTMLPropertiesCollectionConstructor HTMLPr
opertiesCollection; | 473 [Conditional=MICRODATA] attribute HTMLPropertiesCollectionConstructor HTMLPr
opertiesCollection; |
| 479 attribute HTMLUnknownElementConstructor HTMLUnknownElement; | 474 attribute HTMLUnknownElementConstructor HTMLUnknownElement; |
| 480 | 475 |
| 481 [JSCustomGetter, CustomConstructor] attribute HTMLImageElementConstructorCon
structor Image; // Usable with new operator | 476 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image;
// Usable with new operator |
| 482 [JSCustomGetter] attribute HTMLOptionElementConstructorConstructor Option; /
/ Usable with new operator | 477 attribute HTMLOptionElementConstructorConstructor Option; // Usable with new
operator |
| 483 | 478 |
| 484 [Conditional=ENCRYPTED_MEDIA, V8EnabledAtRuntime=encryptedMedia] attribute M
ediaKeyEventConstructor MediaKeyEvent; | 479 [Conditional=ENCRYPTED_MEDIA, V8EnabledAtRuntime=encryptedMedia] attribute M
ediaKeyEventConstructor MediaKeyEvent; |
| 485 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeysConstructor MediaKeys; | 480 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeysConstructor MediaKeys; |
| 486 attribute [Conditional=ENCRYPTED_MEDIA_V2|ENCRYPTED_MEDIA, V8EnabledAtRuntim
e=encryptedMedia] MediaKeyErrorConstructor MediaKeyError; | 481 attribute [Conditional=ENCRYPTED_MEDIA_V2|ENCRYPTED_MEDIA, V8EnabledAtRuntim
e=encryptedMedia] MediaKeyErrorConstructor MediaKeyError; |
| 487 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeyMessageEventConstructor MediaKeyMessageEvent; | 482 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeyMessageEventConstructor MediaKeyMessageEvent; |
| 488 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeyNeededEventConstructor MediaKeyNeededEvent; | 483 attribute [Conditional=ENCRYPTED_MEDIA_V2, V8EnabledAtRuntime=encryptedMedia
] MediaKeyNeededEventConstructor MediaKeyNeededEvent; |
| 489 | 484 |
| 490 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute HTM
LTrackElementConstructor HTMLTrackElement; | 485 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute HTM
LTrackElementConstructor HTMLTrackElement; |
| 491 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackConstructor TextTrack; | 486 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackConstructor TextTrack; |
| 492 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackCueConstructor TextTrackCue; // Usable with the new operator | 487 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackCueConstructor TextTrackCue; // Usable with the new operator |
| 493 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackCueListConstructor TextTrackCueList; | 488 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackCueListConstructor TextTrackCueList; |
| 494 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackListConstructor TextTrackList; | 489 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tex
tTrackListConstructor TextTrackList; |
| 495 [Conditional=VIDEO_TRACK & WEBVTT_REGIONS, V8EnabledAtRuntime=webkitVideoTra
ck] attribute TextTrackRegionConstructor TextTrackRegion; // Usable with the new
operator | 490 [Conditional=VIDEO_TRACK & WEBVTT_REGIONS, V8EnabledAtRuntime=webkitVideoTra
ck] attribute TextTrackRegionConstructor TextTrackRegion; // Usable with the new
operator |
| 496 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tra
ckEventConstructor TrackEvent; | 491 [Conditional=VIDEO_TRACK, V8EnabledAtRuntime=webkitVideoTrack] attribute Tra
ckEventConstructor TrackEvent; |
| 497 | 492 |
| 498 [JSCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioE
lementConstructorConstructor Audio; // Usable with the new operator | 493 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioElementConstructo
rConstructor Audio; // Usable with the new operator |
| 499 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioElementConstructo
r HTMLAudioElement; | 494 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLAudioElementConstructo
r HTMLAudioElement; |
| 500 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLMediaElementConstructo
r HTMLMediaElement; | 495 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLMediaElementConstructo
r HTMLMediaElement; |
| 501 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLVideoElementConstructo
r HTMLVideoElement; | 496 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLVideoElementConstructo
r HTMLVideoElement; |
| 502 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaErrorConstructor Medi
aError; | 497 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaErrorConstructor Medi
aError; |
| 503 [Conditional=VIDEO, V8EnabledAtRuntime] attribute TimeRangesConstructor Time
Ranges; | 498 [Conditional=VIDEO, V8EnabledAtRuntime] attribute TimeRangesConstructor Time
Ranges; |
| 504 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLSourceElementConstruct
or HTMLSourceElement; | 499 [Conditional=VIDEO, V8EnabledAtRuntime] attribute HTMLSourceElementConstruct
or HTMLSourceElement; |
| 505 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaControllerConstructor
MediaController; | 500 [Conditional=VIDEO, V8EnabledAtRuntime] attribute MediaControllerConstructor
MediaController; |
| 506 | 501 |
| 507 attribute CanvasPatternConstructor CanvasPattern; | 502 attribute CanvasPatternConstructor CanvasPattern; |
| 508 attribute CanvasGradientConstructor CanvasGradient; | 503 attribute CanvasGradientConstructor CanvasGradient; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] attribute DeviceMotionE
ventConstructor DeviceMotionEvent; | 558 [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] attribute DeviceMotionE
ventConstructor DeviceMotionEvent; |
| 564 [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] attribute DeviceOrienta
tionEventConstructor DeviceOrientationEvent; | 559 [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] attribute DeviceOrienta
tionEventConstructor DeviceOrientationEvent; |
| 565 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchConstruc
tor Touch; | 560 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchConstruc
tor Touch; |
| 566 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchEventCon
structor TouchEvent; | 561 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchEventCon
structor TouchEvent; |
| 567 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchListCons
tructor TouchList; | 562 [Conditional=TOUCH_EVENTS, V8EnabledAtRuntime=touch] attribute TouchListCons
tructor TouchList; |
| 568 attribute StorageEventConstructor StorageEvent; | 563 attribute StorageEventConstructor StorageEvent; |
| 569 [Conditional=INPUT_SPEECH] attribute SpeechInputEventConstructor SpeechInput
Event; | 564 [Conditional=INPUT_SPEECH] attribute SpeechInputEventConstructor SpeechInput
Event; |
| 570 [Conditional=WEBGL] attribute WebGLContextEventConstructor WebGLContextEvent
; | 565 [Conditional=WEBGL] attribute WebGLContextEventConstructor WebGLContextEvent
; |
| 571 [Conditional=PROXIMITY_EVENTS] attribute DeviceProximityEventConstructor Dev
iceProximityEvent; | 566 [Conditional=PROXIMITY_EVENTS] attribute DeviceProximityEventConstructor Dev
iceProximityEvent; |
| 572 [Conditional=REQUEST_AUTOCOMPLETE] attribute AutocompleteErrorEventConstruct
or AutocompleteErrorEvent; | 567 [Conditional=REQUEST_AUTOCOMPLETE] attribute AutocompleteErrorEventConstruct
or AutocompleteErrorEvent; |
| 573 [Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContentSecurityPolicyF
eatures] attribute SecurityPolicyViolationEventConstructor SecurityPolicyViolati
onEvent; | 568 [V8EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute Sec
urityPolicyViolationEventConstructor SecurityPolicyViolationEvent; |
| 574 | 569 |
| 575 attribute EventExceptionConstructor EventException; | 570 attribute EventExceptionConstructor EventException; |
| 576 | 571 |
| 577 attribute WebKitCSSKeyframeRuleConstructor WebKitCSSKeyframeRule; | 572 attribute WebKitCSSKeyframeRuleConstructor WebKitCSSKeyframeRule; |
| 578 attribute WebKitCSSKeyframesRuleConstructor WebKitCSSKeyframesRule; | 573 attribute WebKitCSSKeyframesRuleConstructor WebKitCSSKeyframesRule; |
| 579 [Conditional=CSS_REGIONS, V8EnabledAtRuntime=cssRegions] attribute WebKitCSS
RegionRuleConstructor WebKitCSSRegionRule; | 574 [Conditional=CSS_REGIONS, V8EnabledAtRuntime=cssRegions] attribute WebKitCSS
RegionRuleConstructor WebKitCSSRegionRule; |
| 580 | 575 |
| 581 attribute WebKitCSSMatrixConstructor WebKitCSSMatrix; // Usable with the new
operator | 576 attribute WebKitCSSMatrixConstructor WebKitCSSMatrix; // Usable with the new
operator |
| 582 | 577 |
| 583 attribute WebKitPointConstructor WebKitPoint; // Usable with new the operato
r | 578 attribute WebKitPointConstructor WebKitPoint; // Usable with new the operato
r |
| 584 | 579 |
| 585 attribute ClipboardConstructor Clipboard; | 580 attribute ClipboardConstructor Clipboard; |
| 586 | 581 |
| 587 [Conditional=WORKERS] attribute WorkerConstructor Worker; // Usable with the
new operator | 582 [Conditional=WORKERS] attribute WorkerConstructor Worker; // Usable with the
new operator |
| 588 [Conditional=SHARED_WORKERS, JSCustomGetter, V8EnabledAtRuntime] attribute S
haredWorkerConstructor SharedWorker; // Usable with the new operator | 583 [Conditional=SHARED_WORKERS, V8EnabledAtRuntime] attribute SharedWorkerConst
ructor SharedWorker; // Usable with the new operator |
| 589 | 584 |
| 590 attribute FileConstructor File; | 585 attribute FileConstructor File; |
| 591 attribute FileListConstructor FileList; | 586 attribute FileListConstructor FileList; |
| 592 attribute BlobConstructor Blob; | 587 attribute BlobConstructor Blob; |
| 593 | 588 |
| 594 attribute NodeFilterConstructor NodeFilter; | 589 attribute NodeFilterConstructor NodeFilter; |
| 595 attribute RangeConstructor Range; | 590 attribute RangeConstructor Range; |
| 596 attribute RangeExceptionConstructor RangeException; | 591 attribute RangeExceptionConstructor RangeException; |
| 597 | 592 |
| 598 attribute EventSourceConstructor EventSource; // Usable with new the operato
r | 593 attribute EventSourceConstructor EventSource; // Usable with new the operato
r |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 785 |
| 791 [Conditional=BLOB|FILE_SYSTEM] attribute FileErrorConstructor FileError; | 786 [Conditional=BLOB|FILE_SYSTEM] attribute FileErrorConstructor FileError; |
| 792 [Conditional=BLOB] attribute FileReaderConstructor FileReader; | 787 [Conditional=BLOB] attribute FileReaderConstructor FileReader; |
| 793 | 788 |
| 794 [Conditional=BLOB] attribute DOMURLConstructor URL; | 789 [Conditional=BLOB] attribute DOMURLConstructor URL; |
| 795 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat
e this. | 790 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat
e this. |
| 796 | 791 |
| 797 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 792 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. |
| 798 attribute MutationObserverConstructor MutationObserver; | 793 attribute MutationObserverConstructor MutationObserver; |
| 799 | 794 |
| 800 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute MediaSo
urceConstructor WebKitMediaSource; | 795 [V8EnabledAtRuntime=mediaSource] attribute MediaSourceConstructor WebKitMedi
aSource; |
| 801 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB
ufferConstructor WebKitSourceBuffer; | 796 [V8EnabledAtRuntime=mediaSource] attribute SourceBufferConstructor WebKitSou
rceBuffer; |
| 802 [Conditional=MEDIA_SOURCE, V8EnabledAtRuntime=mediaSource] attribute SourceB
ufferListConstructor WebKitSourceBufferList; | 797 [V8EnabledAtRuntime=mediaSource] attribute SourceBufferListConstructor WebKi
tSourceBufferList; |
| 803 | 798 |
| 804 #endif // defined(LANGUAGE_JAVASCRIPT) | 799 #endif // defined(LANGUAGE_JAVASCRIPT) |
| 805 | 800 |
| 806 #if defined(V8_BINDING) && V8_BINDING | 801 #if defined(V8_BINDING) && V8_BINDING |
| 807 // window.toString() requires special handling in V8 | 802 // window.toString() requires special handling in V8 |
| 808 [V8DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString
toString(); | 803 [V8DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString
toString(); |
| 809 #endif // defined(V8_BINDING) | 804 #endif // defined(V8_BINDING) |
| 810 }; | 805 }; |
| 811 | 806 |
| OLD | NEW |