| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 [Default=NullString] optio
nal DOMString defaultValue); | 72 [Default=NullString] optio
nal DOMString defaultValue); |
| 73 | 73 |
| 74 boolean find([Default=Undefined] optional DOMString string, | 74 boolean find([Default=Undefined] optional DOMString string, |
| 75 [Default=Undefined] optional boolean caseSensitive, | 75 [Default=Undefined] optional boolean caseSensitive, |
| 76 [Default=Undefined] optional boolean backwards, | 76 [Default=Undefined] optional boolean backwards, |
| 77 [Default=Undefined] optional boolean wrap, | 77 [Default=Undefined] optional boolean wrap, |
| 78 [Default=Undefined] optional boolean wholeWord, | 78 [Default=Undefined] optional boolean wholeWord, |
| 79 [Default=Undefined] optional boolean searchInFrames, | 79 [Default=Undefined] optional boolean searchInFrames, |
| 80 [Default=Undefined] optional boolean showDialog); | 80 [Default=Undefined] optional boolean showDialog); |
| 81 | 81 |
| 82 [Replaceable] readonly attribute boolean offscreenBuffering; | 82 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean
offscreenBuffering; |
| 83 | 83 |
| 84 [Replaceable] readonly attribute long outerHeight; | 84 [Replaceable] readonly attribute long outerHeight; |
| 85 [Replaceable] readonly attribute long outerWidth; | 85 [Replaceable] readonly attribute long outerWidth; |
| 86 [Replaceable] readonly attribute long innerHeight; | 86 [Replaceable] readonly attribute long innerHeight; |
| 87 [Replaceable] readonly attribute long innerWidth; | 87 [Replaceable] readonly attribute long innerWidth; |
| 88 [Replaceable] readonly attribute long screenX; | 88 [Replaceable] readonly attribute long screenX; |
| 89 [Replaceable] readonly attribute long screenY; | 89 [Replaceable] readonly attribute long screenY; |
| 90 [Replaceable] readonly attribute long screenLeft; | 90 [Replaceable] readonly attribute long screenLeft; |
| 91 [Replaceable] readonly attribute long screenTop; | 91 [Replaceable] readonly attribute long screenTop; |
| 92 [Replaceable] readonly attribute long scrollX; | 92 [Replaceable] readonly attribute long scrollX; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 110 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. | 110 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. |
| 111 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. | 111 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. |
| 112 | 112 |
| 113 [DoNotCheckSecurity] readonly attribute boolean closed; | 113 [DoNotCheckSecurity] readonly attribute boolean closed; |
| 114 | 114 |
| 115 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 115 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
| 116 | 116 |
| 117 attribute DOMString name; | 117 attribute DOMString name; |
| 118 | 118 |
| 119 attribute DOMString status; | 119 attribute DOMString status; |
| 120 attribute DOMString defaultStatus; | 120 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; |
| 121 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. | 121 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. |
| 122 [ImplementedAs=defaultStatus] attribute DOMString defaultstatus; | 122 [ImplementedAs=defaultStatus, MeasureAs=WindowDefaultstatus] attribute DOMSt
ring defaultstatus; |
| 123 | 123 |
| 124 // Self referential attributes | 124 // Self referential attributes |
| 125 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; | 125 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; |
| 126 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; | 126 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; |
| 127 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; | 127 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; |
| 128 | 128 |
| 129 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; | 129 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; |
| 130 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; | 130 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; |
| 131 [DoNotCheckSecurity, Unforgeable] readonly attribute Window top; | 131 [DoNotCheckSecurity, Unforgeable] readonly attribute Window top; |
| 132 | 132 |
| 133 // DOM Level 2 AbstractView Interface | 133 // DOM Level 2 AbstractView Interface |
| 134 readonly attribute Document document; | 134 readonly attribute Document document; |
| 135 | 135 |
| 136 // CSSOM View Module | 136 // CSSOM View Module |
| 137 MediaQueryList matchMedia(DOMString query); | 137 MediaQueryList matchMedia(DOMString query); |
| 138 | 138 |
| 139 // styleMedia has been removed from the CSSOM View specification. | 139 // styleMedia has been removed from the CSSOM View specification. |
| 140 readonly attribute StyleMedia styleMedia; | 140 readonly attribute StyleMedia styleMedia; |
| 141 | 141 |
| 142 // DOM Level 2 Style Interface | 142 // DOM Level 2 Style Interface |
| 143 [PerWorldBindings] CSSStyleDeclaration getComputedStyle([Default=Undefined]
optional Element element, | 143 [PerWorldBindings] CSSStyleDeclaration getComputedStyle([Default=Undefined]
optional Element element, |
| 144 [TreatNullAs=NullStr
ing, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoEl
ement); | 144 [TreatNullAs=NullStr
ing, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoEl
ement); |
| 145 | 145 |
| 146 // WebKit extensions | 146 // WebKit extensions |
| 147 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef
ined] optional Element element, | 147 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef
ined] optional Element element, |
| 148 [TreatNullAs=N
ullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString ps
eudoElement); | 148 [TreatNullAs=N
ullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString ps
eudoElement); |
| 149 | 149 |
| 150 [Replaceable] readonly attribute double devicePixelRatio; | 150 [Replaceable] readonly attribute double devicePixelRatio; |
| 151 | 151 |
| 152 WebKitPoint webkitConvertPointFromPageToNode([Default=Undefined] optional No
de node, | 152 [MeasureAs=PrefixedConvertPointFromPageToNode] WebKitPoint webkitConvertPoin
tFromPageToNode([Default=Undefined] optional Node node, |
| 153 [Default=Undefined] optional We
bKitPoint p); | 153
[Default=Undefined] optional WebKitPoint p); |
| 154 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, | 154 [MeasureAs=PrefixedConvertPointFromNodeToPage] WebKitPoint webkitConvertPoin
tFromNodeToPage([Default=Undefined] optional Node node, |
| 155 [Default=Undefined] optional We
bKitPoint p); | 155
[Default=Undefined] optional WebKitPoint p); |
| 156 | 156 |
| 157 [RuntimeEnabled=ApplicationCache, PerWorldBindings, LogActivity=GetterOnly]
readonly attribute ApplicationCache applicationCache; | 157 [RuntimeEnabled=ApplicationCache, PerWorldBindings, LogActivity=GetterOnly]
readonly attribute ApplicationCache applicationCache; |
| 158 | 158 |
| 159 [RuntimeEnabled=SessionStorage, PerWorldBindings, LogActivity=GetterOnly, Ra
isesException=Getter] readonly attribute Storage sessionStorage; | 159 [RuntimeEnabled=SessionStorage, PerWorldBindings, LogActivity=GetterOnly, Ra
isesException=Getter] readonly attribute Storage sessionStorage; |
| 160 [RuntimeEnabled=LocalStorage, PerWorldBindings, LogActivity=GetterOnly, Rais
esException=Getter] readonly attribute Storage localStorage; | 160 [RuntimeEnabled=LocalStorage, PerWorldBindings, LogActivity=GetterOnly, Rais
esException=Getter] readonly attribute Storage localStorage; |
| 161 | 161 |
| 162 // This is the interface orientation in degrees. Some examples are: | 162 // This is the interface orientation in degrees. Some examples are: |
| 163 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 163 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 164 // 90 is when rotated counter clockwise. | 164 // 90 is when rotated counter clockwise. |
| 165 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; | 165 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 193 attribute EventHandler onwebkitanimationend; | 193 attribute EventHandler onwebkitanimationend; |
| 194 attribute EventHandler onwebkitanimationiteration; | 194 attribute EventHandler onwebkitanimationiteration; |
| 195 attribute EventHandler onwebkitanimationstart; | 195 attribute EventHandler onwebkitanimationstart; |
| 196 attribute EventHandler onwebkittransitionend; | 196 attribute EventHandler onwebkittransitionend; |
| 197 [PerWorldBindings, LogActivity=SetterOnly] attribute EventHandler onwheel; | 197 [PerWorldBindings, LogActivity=SetterOnly] attribute EventHandler onwheel; |
| 198 | 198 |
| 199 [MeasureAs=WindowCaptureEvents] void captureEvents(); | 199 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
| 200 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | 200 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
| 201 | 201 |
| 202 // Additional constructors. | 202 // Additional constructors. |
| 203 attribute TransitionEventConstructor WebKitTransitionEvent; | 203 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; |
| 204 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; | 204 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; |
| 205 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. | 205 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. |
| 206 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 206 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; |
| 207 attribute IDBCursorConstructor webkitIDBCursor; | 207 [MeasureAs=PrefixedIDBCursorConstructor] attribute IDBCursorConstructor webk
itIDBCursor; |
| 208 attribute IDBDatabaseConstructor webkitIDBDatabase; | 208 [MeasureAs=PrefixedIDBDatabaseConstructor] attribute IDBDatabaseConstructor
webkitIDBDatabase; |
| 209 attribute IDBFactoryConstructor webkitIDBFactory; | 209 [MeasureAs=PrefixedIDBFactoryConstructor] attribute IDBFactoryConstructor we
bkitIDBFactory; |
| 210 attribute IDBIndexConstructor webkitIDBIndex; | 210 [MeasureAs=PrefixedIDBIndexConstructor] attribute IDBIndexConstructor webkit
IDBIndex; |
| 211 attribute IDBKeyRangeConstructor webkitIDBKeyRange; | 211 [MeasureAs=PrefixedIDBKeyRangeConstructor] attribute IDBKeyRangeConstructor
webkitIDBKeyRange; |
| 212 attribute IDBObjectStoreConstructor webkitIDBObjectStore; | 212 [MeasureAs=PrefixedIDBObjectStoreConstructor] attribute IDBObjectStoreConstr
uctor webkitIDBObjectStore; |
| 213 attribute IDBRequestConstructor webkitIDBRequest; | 213 [MeasureAs=PrefixedIDBRequestConstructor] attribute IDBRequestConstructor we
bkitIDBRequest; |
| 214 attribute IDBTransactionConstructor webkitIDBTransaction; | 214 [MeasureAs=PrefixedIDBTransactionConstructor] attribute IDBTransactionConstr
uctor webkitIDBTransaction; |
| 215 | 215 |
| 216 // Constructors whose name does not match the interface name. | 216 // Constructors whose name does not match the interface name. |
| 217 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam
es match interface names. | 217 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam
es match interface names. |
| 218 [RuntimeEnabled=MediaStream] attribute MediaStreamConstructor webkitMediaStr
eam; | 218 [RuntimeEnabled=MediaStream] attribute MediaStreamConstructor webkitMediaStr
eam; |
| 219 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute AudioContextConst
ructor AudioContext; | 219 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute AudioContextConst
ructor AudioContext; |
| 220 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute OfflineAudioConte
xtConstructor OfflineAudioContext; | 220 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute OfflineAudioConte
xtConstructor OfflineAudioContext; |
| 221 [RuntimeEnabled=PeerConnection] attribute RTCPeerConnectionConstructor webki
tRTCPeerConnection; | 221 [RuntimeEnabled=PeerConnection] attribute RTCPeerConnectionConstructor webki
tRTCPeerConnection; |
| 222 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarConstructor webkitSpe
echGrammar; | 222 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarConstructor webkitSpe
echGrammar; |
| 223 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarListConstructor webki
tSpeechGrammarList; | 223 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarListConstructor webki
tSpeechGrammarList; |
| 224 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionConstructor webki
tSpeechRecognition; | 224 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionConstructor webki
tSpeechRecognition; |
| 225 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionErrorConstructor
webkitSpeechRecognitionError; | 225 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionErrorConstructor
webkitSpeechRecognitionError; |
| 226 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionEventConstructor
webkitSpeechRecognitionEvent; | 226 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionEventConstructor
webkitSpeechRecognitionEvent; |
| 227 | 227 |
| 228 // window.toString() requires special handling in V8 | 228 // window.toString() requires special handling in V8 |
| 229 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 229 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
| 230 | 230 |
| 231 [NotEnumerable] getter Window (unsigned long index); | 231 [NotEnumerable] getter Window (unsigned long index); |
| 232 [Custom, NotEnumerable] getter Window (DOMString name); | 232 [Custom, NotEnumerable] getter Window (DOMString name); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 Window implements GlobalEventHandlers; | 235 Window implements GlobalEventHandlers; |
| 236 Window implements ImageBitmapFactories; | 236 Window implements ImageBitmapFactories; |
| 237 Window implements WindowBase64; | 237 Window implements WindowBase64; |
| 238 Window implements WindowEventHandlers; | 238 Window implements WindowEventHandlers; |
| 239 Window implements WindowTimers; | 239 Window implements WindowTimers; |
| OLD | NEW |