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 // HTML 5 draft spec: | 27 // https://html.spec.whatwg.org/#the-window-object |
28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window | 28 |
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 ImplementedAs=DOMWindow, |
33 ImplementedAs=LocalDOMWindow, | |
34 PrimaryGlobal, | 33 PrimaryGlobal, |
35 WillBeGarbageCollected, | |
36 ] interface Window : EventTarget { | 34 ] interface Window : EventTarget { |
37 // DOM Level 0 | 35 // the current browsing context |
38 readonly attribute Screen screen; | 36 // FIXME: The spec uses the WindowProxy type for this and many other attribu
tes. |
| 37 [Unforgeable, DoNotCheckSecurity] readonly attribute Window window; |
| 38 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; |
| 39 [Unforgeable] readonly attribute Document document; |
| 40 attribute DOMString name; |
| 41 [PutForwards=href, Unforgeable, DoNotCheckSecurity] readonly attribute Locat
ion location; |
39 readonly attribute History history; | 42 readonly attribute History history; |
40 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; | 43 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; |
41 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; | 44 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; |
42 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; | 45 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; |
43 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; | 46 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; |
44 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; | 47 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; |
45 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; | 48 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; |
46 [LogActivity=GetterOnly] readonly attribute Navigator navigator; | 49 attribute DOMString status; |
47 [Replaceable] readonly attribute Navigator clientInformation; | 50 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); |
48 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; | 51 [DoNotCheckSecurity] readonly attribute boolean closed; |
49 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; | 52 void stop(); |
50 | |
51 Selection getSelection(); | |
52 | |
53 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; | |
54 | |
55 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 53 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
56 [DoNotCheckSecurity] void blur(); | 54 [DoNotCheckSecurity] void blur(); |
57 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); | |
58 | 55 |
59 void print(); | 56 // other browsing contexts |
60 void stop(); | 57 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; |
| 58 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
| 59 [Unforgeable, DoNotCheckSecurity] readonly attribute Window top; |
| 60 // FIXME: opener should be of type any. |
| 61 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; |
| 62 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; |
| 63 [CheckSecurity=Node, Custom=Getter] readonly attribute Element? frameElement
; |
| 64 // FIXME: open() should have 4 optional arguments with defaults. |
| 65 [Custom] Window open(DOMString url, DOMString target, optional DOMString fea
tures); |
| 66 // FIXME: These getters should not have [NotEnumerable]. |
| 67 [NotEnumerable, DoNotCheckSecurity] getter Window (unsigned long index); |
| 68 [Custom, NotEnumerable, DoNotCheckSecurity] getter object (DOMString name); |
61 | 69 |
62 [Custom] Window open(DOMString url, | 70 // the user agent |
63 DOMString name, | 71 [LogActivity=GetterOnly] readonly attribute Navigator navigator; |
64 optional DOMString options); | 72 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute
ApplicationCache applicationCache; |
65 | 73 |
66 [RuntimeEnabled=ShowModalDialog, Custom] any showModalDialog(DOMString url, | 74 // user prompts |
67 optional any dialogArgs, | |
68 optional DOMString featureArgs); | |
69 | |
70 void alert(); | 75 void alert(); |
71 void alert(DOMString message); | 76 void alert(DOMString message); |
72 boolean confirm(optional DOMString message = ""); | 77 boolean confirm(optional DOMString message = ""); |
73 DOMString? prompt(optional DOMString message = "", | 78 DOMString? prompt(optional DOMString message = "", optional DOMString defaul
tValue = ""); |
74 optional DOMString defaultValue = ""); | 79 void print(); |
75 | 80 |
76 boolean find([Default=Undefined] optional DOMString string, | 81 // FIXME: requestAnimationFrame should take a FrameRequestCallback: |
77 [Default=Undefined] optional boolean caseSensitive, | 82 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152 |
78 [Default=Undefined] optional boolean backwards, | 83 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Frame
RequestCallback callback); |
79 [Default=Undefined] optional boolean wrap, | 84 void cancelAnimationFrame(long handle); |
80 [Default=Undefined] optional boolean wholeWord, | |
81 [Default=Undefined] optional boolean searchInFrames, | |
82 [Default=Undefined] optional boolean showDialog); | |
83 | 85 |
84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean
offscreenBuffering; | 86 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); |
85 | 87 |
86 [Replaceable] readonly attribute long outerHeight; | 88 // HTML obsolete features |
87 [Replaceable] readonly attribute long outerWidth; | 89 // https://html.spec.whatwg.org/#Window-partial |
| 90 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
| 91 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
| 92 |
| 93 // CSS Object Model (CSSOM) |
| 94 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface |
| 95 // FIXME: The optional pseudoElt argument should have no default. |
| 96 [NewObject, TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Ele
ment elt, optional DOMString? pseudoElt = null); |
| 97 |
| 98 // CSSOM View Module |
| 99 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface |
| 100 [NewObject] MediaQueryList matchMedia(DOMString query); |
| 101 [SameObject, Replaceable] readonly attribute Screen screen; |
| 102 |
| 103 // browsing context |
| 104 void moveTo(long x, long y); |
| 105 void moveBy(long x, long y); |
| 106 void resizeTo(long x, long y); |
| 107 void resizeBy(long x, long y); |
| 108 |
| 109 // viewport |
| 110 [Replaceable] readonly attribute long innerWidth; |
88 [Replaceable] readonly attribute long innerHeight; | 111 [Replaceable] readonly attribute long innerHeight; |
89 [Replaceable] readonly attribute long innerWidth; | 112 |
| 113 // viewport scrolling |
| 114 [Replaceable] readonly attribute double scrollX; |
| 115 [Replaceable] readonly attribute double pageXOffset; |
| 116 [Replaceable] readonly attribute double scrollY; |
| 117 [Replaceable] readonly attribute double pageYOffset; |
| 118 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti
ons); |
| 119 void scroll(unrestricted double x, unrestricted double y); |
| 120 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
| 121 void scrollTo(unrestricted double x, unrestricted double y); |
| 122 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); |
| 123 void scrollBy(unrestricted double x, unrestricted double y); |
| 124 |
| 125 // client |
90 [Replaceable] readonly attribute long screenX; | 126 [Replaceable] readonly attribute long screenX; |
91 [Replaceable] readonly attribute long screenY; | 127 [Replaceable] readonly attribute long screenY; |
92 [Replaceable] readonly attribute long screenLeft; | 128 [Replaceable] readonly attribute long outerWidth; |
93 [Replaceable] readonly attribute long screenTop; | 129 [Replaceable] readonly attribute long outerHeight; |
94 [Replaceable] readonly attribute double scrollX; | |
95 [Replaceable] readonly attribute double scrollY; | |
96 readonly attribute double pageXOffset; | |
97 readonly attribute double pageYOffset; | |
98 | |
99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by | |
100 // changing the third argument to *optional* Dictionary scrollOptions | |
101 void scrollBy(double x, double y); | |
102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(double x,
double y, ScrollOptions scrollOptions); | |
103 void scrollTo(double x, double y); | |
104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(double x,
double y, ScrollOptions scrollOptions); | |
105 void scroll(double x, double y); | |
106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(double x, do
uble y, ScrollOptions scrollOptions); | |
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. | |
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. | |
111 | |
112 [DoNotCheckSecurity] readonly attribute boolean closed; | |
113 | |
114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | |
115 | |
116 attribute DOMString name; | |
117 | |
118 attribute DOMString status; | |
119 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; | |
120 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. | |
121 [ImplementedAs=defaultStatus, MeasureAs=WindowDefaultstatus] attribute DOMSt
ring defaultstatus; | |
122 | |
123 // Self referential attributes | |
124 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; | |
125 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; | |
126 [Replaceable, DoNotCheckSecurity] readonly attribute Window frames; | |
127 | |
128 [DoNotCheckSecurity, Custom=Setter] attribute Window opener; | |
129 [Replaceable, DoNotCheckSecurity] readonly attribute Window parent; | |
130 [DoNotCheckSecurity, Unforgeable] readonly attribute Window top; | |
131 | |
132 // DOM Level 2 AbstractView Interface | |
133 readonly attribute Document document; | |
134 | |
135 // CSSOM View Module | |
136 MediaQueryList matchMedia(DOMString query); | |
137 | |
138 // styleMedia has been removed from the CSSOM View specification. | |
139 readonly attribute StyleMedia styleMedia; | |
140 | |
141 // DOM Level 2 Style Interface | |
142 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement, | |
143 [TreatUndefinedAs=NullString, Default=U
ndefined] optional DOMString? pseudoElement); | |
144 | |
145 // WebKit extensions | |
146 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef
ined] optional Element element, | |
147 [TreatUndefine
dAs=NullString, Default=Undefined] optional DOMString? pseudoElement); | |
148 | |
149 [Replaceable] readonly attribute double devicePixelRatio; | 130 [Replaceable] readonly attribute double devicePixelRatio; |
150 | 131 |
151 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute
ApplicationCache applicationCache; | 132 // Selection API |
| 133 // http://w3c.github.io/selection-api/#extensions-to-window-interface |
| 134 Selection? getSelection(); |
152 | 135 |
153 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett
er] readonly attribute Storage sessionStorage; | 136 // Console API (non-standard but widely implemented in some form) |
154 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter
] readonly attribute Storage localStorage; | 137 // https://developer.chrome.com/devtools/docs/console-api |
| 138 [Replaceable] readonly attribute Console console; |
155 | 139 |
| 140 // Non-standard APIs |
| 141 [MeasureAs=WindowClientInformation, Replaceable] readonly attribute Navigato
r clientInformation; |
| 142 [MeasureAs=WindowEvent, Custom, NotEnumerable] attribute Event event; |
| 143 [MeasureAs=WindowFind] boolean find([Default=Undefined] optional DOMString s
tring, |
| 144 [Default=Undefined] optional boolean cas
eSensitive, |
| 145 [Default=Undefined] optional boolean bac
kwards, |
| 146 [Default=Undefined] optional boolean wra
p, |
| 147 [Default=Undefined] optional boolean who
leWord, |
| 148 [Default=Undefined] optional boolean sea
rchInFrames, |
| 149 [Default=Undefined] optional boolean sho
wDialog); |
| 150 [MeasureAs=WindowOffscreenBuffering, Replaceable, NotEnumerable] readonly at
tribute boolean offscreenBuffering; |
| 151 [MeasureAs=WindowScreenLeft, Replaceable] readonly attribute long screenLeft
; |
| 152 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; |
| 153 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; |
| 154 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt
ring defaultstatus; |
| 155 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; |
| 156 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und
efined] optional Element element, |
| 157 [TreatUndefi
nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement); |
156 // This is the interface orientation in degrees. Some examples are: | 158 // This is the interface orientation in degrees. Some examples are: |
157 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 159 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
158 // 90 is when rotated counter clockwise. | 160 // 90 is when rotated counter clockwise. |
159 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; | 161 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr
ibute long orientation; |
160 | 162 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(FrameRequestCallback callback); |
161 [Replaceable] readonly attribute Console console; | |
162 | |
163 // cross-document messaging | |
164 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional sequence<Transferable> transf
er); | |
165 | |
166 [Replaceable] readonly attribute Performance performance; | |
167 | |
168 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | |
169 void cancelAnimationFrame(long id); | |
170 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(RequestAnimationFrameCallback callback); | |
171 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); | 163 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); |
172 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); | 164 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); |
173 | 165 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; |
174 [Replaceable] readonly attribute CSS CSS; | 166 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; |
| 167 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; |
| 168 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; |
175 | 169 |
176 // Event handler attributes | 170 // Event handler attributes |
177 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen
d; | 171 attribute EventHandler onanimationend; |
178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit
eration; | 172 attribute EventHandler onanimationiteration; |
179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst
art; | 173 attribute EventHandler onanimationstart; |
180 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange
; | 174 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange
; |
181 attribute EventHandler onsearch; | 175 attribute EventHandler onsearch; |
182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 176 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 177 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 178 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 179 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
186 attribute EventHandler ontransitionend; | 180 attribute EventHandler ontransitionend; |
187 attribute EventHandler onwebkitanimationend; | 181 attribute EventHandler onwebkitanimationend; |
188 attribute EventHandler onwebkitanimationiteration; | 182 attribute EventHandler onwebkitanimationiteration; |
189 attribute EventHandler onwebkitanimationstart; | 183 attribute EventHandler onwebkitanimationstart; |
190 attribute EventHandler onwebkittransitionend; | 184 attribute EventHandler onwebkittransitionend; |
191 attribute EventHandler onwheel; | 185 attribute EventHandler onwheel; |
192 | 186 |
193 [MeasureAs=WindowCaptureEvents] void captureEvents(); | |
194 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | |
195 | |
196 // Additional constructors. | |
197 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; | |
198 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; | |
199 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. | |
200 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo
nstructor WebKitMutationObserver; | |
201 | |
202 // window.toString() requires special handling in V8 | 187 // window.toString() requires special handling in V8 |
203 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; | 188 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; |
204 | |
205 [NotEnumerable] getter Window (unsigned long index); | |
206 [Custom, NotEnumerable] getter Window (DOMString name); | |
207 }; | 189 }; |
208 | 190 |
209 // http://www.whatwg.org/specs/web-apps/current-work/#transferable-objects | 191 // http://www.whatwg.org/specs/web-apps/current-work/#transferable-objects |
210 // | 192 // |
211 // Expressing the Transferable typedef in IDL depends on http://crbug.com/240176
. | 193 // Expressing the Transferable typedef in IDL depends on http://crbug.com/240176
. |
212 // The postMessage() methods taking a Transferable array argument have custom | 194 // The postMessage() methods taking a Transferable array argument have custom |
213 // binding code that is able to handle the Transferables that we currently | 195 // binding code that is able to handle the Transferables that we currently |
214 // recognize. To be able to declare a postMessage() signature that matches | 196 // recognize. To be able to declare a postMessage() signature that matches |
215 // the implementation, we provide a Transferable typedef but with an | 197 // the implementation, we provide a Transferable typedef but with an |
216 // incomplete type. | 198 // incomplete type. |
217 // | 199 // |
218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 200 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
219 // is in place. | 201 // is in place. |
220 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 202 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
221 // utility type definitions. | 203 // utility type definitions. |
222 typedef MessagePort Transferable; | 204 typedef MessagePort Transferable; |
223 | 205 |
224 Window implements GlobalEventHandlers; | 206 Window implements GlobalEventHandlers; |
225 Window implements WindowBase64; | 207 Window implements WindowBase64; |
226 Window implements WindowEventHandlers; | 208 Window implements WindowEventHandlers; |
227 Window implements WindowTimers; | 209 Window implements WindowTimers; |
OLD | NEW |