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 12 matching lines...) Expand all Loading... |
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 // HTML 5 draft spec: | 27 // HTML 5 draft spec: |
28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window | 28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window |
29 // FIXME: explain all uses of [DoNotCheckSecurity] | 29 // FIXME: explain all uses of [DoNotCheckSecurity] |
30 [ | 30 [ |
31 CheckSecurity=Frame, | 31 CheckSecurity=Frame, |
32 Custom=ToV8, | 32 Custom=ToV8, |
33 ImplementedAs=DOMWindow, | 33 ImplementedAs=LocalDOMWindow, |
| 34 PrimaryGlobal, |
| 35 WillBeGarbageCollected, |
34 ] interface Window : EventTarget { | 36 ] interface Window : EventTarget { |
35 // DOM Level 0 | 37 // DOM Level 0 |
36 [Replaceable] readonly attribute Screen screen; | 38 readonly attribute Screen screen; |
37 [Replaceable] readonly attribute History history; | 39 readonly attribute History history; |
38 [Replaceable] readonly attribute BarProp locationbar; | 40 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; |
39 [Replaceable] readonly attribute BarProp menubar; | 41 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; |
40 [Replaceable] readonly attribute BarProp personalbar; | 42 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; |
41 [Replaceable] readonly attribute BarProp scrollbars; | 43 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; |
42 [Replaceable] readonly attribute BarProp statusbar; | 44 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; |
43 [Replaceable] readonly attribute BarProp toolbar; | 45 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; |
44 [Replaceable, PerWorldBindings, ActivityLogging=GetterForIsolatedWorlds] rea
donly attribute Navigator navigator; | 46 [LogActivity=GetterOnly] readonly attribute Navigator navigator; |
45 [Replaceable] readonly attribute Navigator clientInformation; | 47 [Replaceable] readonly attribute Navigator clientInformation; |
46 [DoNotCheckSecurity, Unforgeable, Replaceable, PerWorldBindings, ActivityLog
ging=ForIsolatedWorlds, PutForwards=href] readonly attribute Location location; | 48 [DoNotCheckSecurity, Unforgeable, Replaceable, LogActivity, PutForwards=href
] readonly attribute Location location; |
47 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; | 49 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; |
48 | 50 |
49 Selection getSelection(); | 51 Selection getSelection(); |
50 | 52 |
51 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; | 53 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; |
52 | 54 |
53 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 55 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
54 [DoNotCheckSecurity] void blur(); | 56 [DoNotCheckSecurity] void blur(); |
55 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); | 57 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); |
56 | 58 |
57 void print(); | 59 void print(); |
58 void stop(); | 60 void stop(); |
59 | 61 |
60 [Custom] Window open(DOMString url, | 62 [Custom] Window open(DOMString url, |
61 DOMString name, | 63 DOMString name, |
62 optional DOMString options); | 64 optional DOMString options); |
63 | 65 |
64 [Custom] any showModalDialog(DOMString url, | 66 [RuntimeEnabled=ShowModalDialog, Custom] any showModalDialog(DOMString url, |
65 optional any dialogArgs, | 67 optional any dialogArgs, |
66 optional DOMString featureArgs); | 68 optional DOMString featureArgs); |
67 | 69 |
68 void alert([Default=NullString] optional DOMString message); | 70 void alert(); |
69 boolean confirm([Default=NullString] optional DOMString message); | 71 void alert(DOMString message); |
70 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=NullString] optio
nal DOMString message, | 72 boolean confirm(optional DOMString message = null); |
71 [Default=NullString] optio
nal DOMString defaultValue); | 73 [TreatReturnedNullStringAs=Null] DOMString prompt(optional DOMString message
= null, |
| 74 optional DOMString default
Value = null); |
72 | 75 |
73 boolean find([Default=Undefined] optional DOMString string, | 76 boolean find([Default=Undefined] optional DOMString string, |
74 [Default=Undefined] optional boolean caseSensitive, | 77 [Default=Undefined] optional boolean caseSensitive, |
75 [Default=Undefined] optional boolean backwards, | 78 [Default=Undefined] optional boolean backwards, |
76 [Default=Undefined] optional boolean wrap, | 79 [Default=Undefined] optional boolean wrap, |
77 [Default=Undefined] optional boolean wholeWord, | 80 [Default=Undefined] optional boolean wholeWord, |
78 [Default=Undefined] optional boolean searchInFrames, | 81 [Default=Undefined] optional boolean searchInFrames, |
79 [Default=Undefined] optional boolean showDialog); | 82 [Default=Undefined] optional boolean showDialog); |
80 | 83 |
81 [Replaceable] readonly attribute boolean offscreenBuffering; | 84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean
offscreenBuffering; |
82 | 85 |
83 [Replaceable] readonly attribute long outerHeight; | 86 [Replaceable] readonly attribute long outerHeight; |
84 [Replaceable] readonly attribute long outerWidth; | 87 [Replaceable] readonly attribute long outerWidth; |
85 [Replaceable] readonly attribute long innerHeight; | 88 [Replaceable] readonly attribute long innerHeight; |
86 [Replaceable] readonly attribute long innerWidth; | 89 [Replaceable] readonly attribute long innerWidth; |
87 [Replaceable] readonly attribute long screenX; | 90 [Replaceable] readonly attribute long screenX; |
88 [Replaceable] readonly attribute long screenY; | 91 [Replaceable] readonly attribute long screenY; |
89 [Replaceable] readonly attribute long screenLeft; | 92 [Replaceable] readonly attribute long screenLeft; |
90 [Replaceable] readonly attribute long screenTop; | 93 [Replaceable] readonly attribute long screenTop; |
91 [Replaceable] readonly attribute long scrollX; | 94 [Replaceable] readonly attribute long scrollX; |
92 [Replaceable] readonly attribute long scrollY; | 95 [Replaceable] readonly attribute long scrollY; |
93 readonly attribute long pageXOffset; | 96 readonly attribute long pageXOffset; |
94 readonly attribute long pageYOffset; | 97 readonly attribute long pageYOffset; |
95 | 98 |
96 // FIXME: should be: | 99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by |
97 // void scrollBy(long x, long y); | 100 // changing the third argument to *optional* Dictionary scrollOptions |
98 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x,
long y, optional Dictionary scrollOptions); | 101 void scrollBy(long x, long y); |
99 // void scrollTo(long x, long y); | 102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo
ng y, Dictionary scrollOptions); |
100 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x,
long y, optional Dictionary scrollOptions); | 103 void scrollTo(long x, long y); |
101 // void scroll(long x, long y); | 104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo
ng y, Dictionary scrollOptions); |
102 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, l
ong y, optional Dictionary scrollOptions); | 105 void scroll(long x, long y); |
103 // http://crbug.com/339000 | 106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long
y, Dictionary scrollOptions); |
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); | |
107 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. |
108 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. |
109 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. |
110 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. |
111 | 111 |
112 [DoNotCheckSecurity] readonly attribute boolean closed; | 112 [DoNotCheckSecurity] readonly attribute boolean closed; |
113 | 113 |
114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
115 | 115 |
116 attribute DOMString name; | 116 attribute DOMString name; |
117 | 117 |
118 attribute DOMString status; | 118 attribute DOMString status; |
119 attribute DOMString defaultStatus; | 119 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; |
120 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. | 120 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. |
121 [ImplementedAs=defaultStatus] attribute DOMString defaultstatus; | 121 [ImplementedAs=defaultStatus, MeasureAs=WindowDefaultstatus] attribute DOMSt
ring defaultstatus; |
122 | 122 |
123 // Self referential attributes | 123 // Self referential attributes |
124 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; | 124 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; |
125 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; | 125 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; |
126 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; | 126 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; |
127 | 127 |
128 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; | 128 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; |
129 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; | 129 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; |
130 [DoNotCheckSecurity, Unforgeable] readonly attribute Window top; | 130 [DoNotCheckSecurity, Unforgeable] readonly attribute Window top; |
131 | 131 |
132 // DOM Level 2 AbstractView Interface | 132 // DOM Level 2 AbstractView Interface |
133 readonly attribute Document document; | 133 readonly attribute Document document; |
134 | 134 |
135 // CSSOM View Module | 135 // CSSOM View Module |
136 MediaQueryList matchMedia(DOMString query); | 136 MediaQueryList matchMedia(DOMString query); |
137 | 137 |
138 // styleMedia has been removed from the CSSOM View specification. | 138 // styleMedia has been removed from the CSSOM View specification. |
139 readonly attribute StyleMedia styleMedia; | 139 readonly attribute StyleMedia styleMedia; |
140 | 140 |
141 // DOM Level 2 Style Interface | 141 // DOM Level 2 Style Interface |
142 [PerWorldBindings] CSSStyleDeclaration getComputedStyle([Default=Undefined]
optional Element element, | 142 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement, |
143 [TreatNullAs=NullS
tring, TreatUndefinedAs=NullString,Default=Undefined] optional DOMString pseudoE
lement); | 143 [TreatNullAs=NullStr
ing, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoEl
ement); |
144 | 144 |
145 // WebKit extensions | 145 // WebKit extensions |
146 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, | 146 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef
ined] optional Element element, |
147 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); | 147 [TreatNullAs=N
ullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString ps
eudoElement); |
148 | 148 |
149 [Replaceable] readonly attribute double devicePixelRatio; | 149 [Replaceable] readonly attribute double devicePixelRatio; |
150 | 150 |
151 WebKitPoint webkitConvertPointFromPageToNode([Default=Undefined] optional No
de node, | 151 [MeasureAs=PrefixedConvertPointFromPageToNode] WebKitPoint webkitConvertPoin
tFromPageToNode([Default=Undefined] optional Node node, |
152 [Default=Undefined] optional We
bKitPoint p); | 152
[Default=Undefined] optional WebKitPoint p); |
153 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, | 153 [MeasureAs=PrefixedConvertPointFromNodeToPage] WebKitPoint webkitConvertPoin
tFromNodeToPage([Default=Undefined] optional Node node, |
154 [Default=Undefined] optional We
bKitPoint p); | 154
[Default=Undefined] optional WebKitPoint p); |
155 | 155 |
156 [RuntimeEnabled=ApplicationCache, PerWorldBindings, ActivityLogging=GetterFo
rIsolatedWorlds] readonly attribute ApplicationCache applicationCache; | 156 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute
ApplicationCache applicationCache; |
157 | 157 |
158 [RuntimeEnabled=SessionStorage, PerWorldBindings, ActivityLogging=GetterForI
solatedWorlds, RaisesException=Getter] readonly attribute Storage sessionStorage
; | 158 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett
er] readonly attribute Storage sessionStorage; |
159 [RuntimeEnabled=LocalStorage, PerWorldBindings, ActivityLogging=GetterForIso
latedWorlds, RaisesException=Getter] readonly attribute Storage localStorage; | 159 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter
] readonly attribute Storage localStorage; |
160 | 160 |
161 // This is the interface orientation in degrees. Some examples are: | 161 // This is the interface orientation in degrees. Some examples are: |
162 // 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; |
163 // 90 is when rotated counter clockwise. | 163 // 90 is when rotated counter clockwise. |
164 [RuntimeEnabled=OrientationEvent] readonly attribute long orientation; | 164 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; |
165 | 165 |
166 [Replaceable] readonly attribute Console console; | 166 [Replaceable] readonly attribute Console console; |
167 | 167 |
168 // cross-document messaging | 168 // cross-document messaging |
169 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); | 169 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); |
170 | 170 |
171 [Replaceable] readonly attribute Performance performance; | 171 [Replaceable] readonly attribute Performance performance; |
172 | 172 |
173 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 173 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
174 void cancelAnimationFrame(long id); | 174 void cancelAnimationFrame(long id); |
175 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R
equestAnimationFrameCallback callback); | 175 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(RequestAnimationFrameCallback callback); |
176 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id
); | 176 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); |
177 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(
long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove
this when removing vendor prefix. | 177 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); |
178 | 178 |
179 [Replaceable] readonly attribute CSS CSS; | 179 [Replaceable] readonly attribute CSS CSS; |
180 | 180 |
181 // Event handler attributes | 181 // Event handler attributes |
182 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; | 182 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; |
183 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; | 183 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; |
184 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst
art; | 184 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst
art; |
185 [RuntimeEnabled=DeviceMotion] attribute EventHandler ondevicemotion; | |
186 [RuntimeEnabled=DeviceOrientation] attribute EventHandler ondeviceorientatio
n; | |
187 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange
; | 185 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange
; |
188 attribute EventHandler onsearch; | 186 attribute EventHandler onsearch; |
189 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 187 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
190 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 188 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
191 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 189 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
192 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 190 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
193 attribute EventHandler ontransitionend; | 191 attribute EventHandler ontransitionend; |
194 attribute EventHandler onwebkitanimationend; | 192 attribute EventHandler onwebkitanimationend; |
195 attribute EventHandler onwebkitanimationiteration; | 193 attribute EventHandler onwebkitanimationiteration; |
196 attribute EventHandler onwebkitanimationstart; | 194 attribute EventHandler onwebkitanimationstart; |
197 attribute EventHandler onwebkittransitionend; | 195 attribute EventHandler onwebkittransitionend; |
198 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 196 [LogActivity=SetterOnly] attribute EventHandler onwheel; |
199 | 197 |
200 [DeprecateAs=CaptureEvents] void captureEvents(); | 198 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
201 [DeprecateAs=ReleaseEvents] void releaseEvents(); | 199 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
202 | 200 |
203 // Additional constructors. | 201 // Additional constructors. |
204 attribute TransitionEventConstructor WebKitTransitionEvent; | 202 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; |
205 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; | 203 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; |
206 attribute URLConstructor webkitURL; // FIXME: deprecate this. | 204 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. |
207 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 205 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; |
208 attribute IDBCursorConstructor webkitIDBCursor; | |
209 attribute IDBDatabaseConstructor webkitIDBDatabase; | |
210 attribute IDBFactoryConstructor webkitIDBFactory; | |
211 attribute IDBIndexConstructor webkitIDBIndex; | |
212 attribute IDBKeyRangeConstructor webkitIDBKeyRange; | |
213 attribute IDBObjectStoreConstructor webkitIDBObjectStore; | |
214 attribute IDBRequestConstructor webkitIDBRequest; | |
215 attribute IDBTransactionConstructor webkitIDBTransaction; | |
216 | |
217 // Constructors whose name does not match the interface name. | |
218 // FIXME: Remove these once [ImplementedAs] is used and once constructor nam
es match interface names. | |
219 [RuntimeEnabled=MediaStream] attribute MediaStreamConstructor webkitMediaStr
eam; | |
220 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute AudioContextConst
ructor webkitAudioContext; | |
221 [Conditional=WEB_AUDIO, RuntimeEnabled=WebAudio] attribute OfflineAudioConte
xtConstructor webkitOfflineAudioContext; | |
222 [RuntimeEnabled=PeerConnection] attribute RTCPeerConnectionConstructor webki
tRTCPeerConnection; | |
223 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarConstructor webkitSpe
echGrammar; | |
224 [RuntimeEnabled=ScriptedSpeech] attribute SpeechGrammarListConstructor webki
tSpeechGrammarList; | |
225 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionConstructor webki
tSpeechRecognition; | |
226 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionErrorConstructor
webkitSpeechRecognitionError; | |
227 [RuntimeEnabled=ScriptedSpeech] attribute SpeechRecognitionEventConstructor
webkitSpeechRecognitionEvent; | |
228 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; | |
229 | |
230 // Prefixed ShadowRoot constructor should be phased out eventually, but for
the moment it must be always exposed. | |
231 // Unprefixed ShadowRoot constructor should be visible when the feature flag
is enabled. | |
232 // FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constr
uctors from Window.idl and remove | |
233 // [NoInterfaceObject] from ShadowRoot interface definition. | |
234 [RuntimeEnabled=ShadowDOM] attribute ShadowRootConstructor ShadowRoot; | |
235 [MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor We
bKitShadowRoot; | |
236 | 206 |
237 // window.toString() requires special handling in V8 | 207 // window.toString() requires special handling in V8 |
238 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 208 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
239 | 209 |
240 [NotEnumerable] getter Window (unsigned long index); | 210 [NotEnumerable] getter Window (unsigned long index); |
241 [Custom, NotEnumerable] getter Window (DOMString name); | 211 [Custom, NotEnumerable] getter Window (DOMString name); |
242 }; | 212 }; |
243 | 213 |
244 Window implements GlobalEventHandlers; | 214 Window implements GlobalEventHandlers; |
245 Window implements ImageBitmapFactories; | |
246 Window implements WindowBase64; | 215 Window implements WindowBase64; |
247 Window implements WindowEventHandlers; | 216 Window implements WindowEventHandlers; |
248 Window implements WindowTimers; | 217 Window implements WindowTimers; |
OLD | NEW |