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 EventTarget, | |
30 CustomToV8, | 29 CustomToV8, |
31 DoNotGenerateWrap, | 30 DoNotGenerateWrap, |
32 ImplementedAs=DOMWindow | 31 ImplementedAs=DOMWindow |
33 ] interface Window { | 32 ] interface Window : EventTarget { |
34 // DOM Level 0 | 33 // DOM Level 0 |
35 [Replaceable] readonly attribute Screen screen; | 34 [Replaceable] readonly attribute Screen screen; |
36 [Replaceable] readonly attribute History history; | 35 [Replaceable] readonly attribute History history; |
37 [Replaceable] readonly attribute BarProp locationbar; | 36 [Replaceable] readonly attribute BarProp locationbar; |
38 [Replaceable] readonly attribute BarProp menubar; | 37 [Replaceable] readonly attribute BarProp menubar; |
39 [Replaceable] readonly attribute BarProp personalbar; | 38 [Replaceable] readonly attribute BarProp personalbar; |
40 [Replaceable] readonly attribute BarProp scrollbars; | 39 [Replaceable] readonly attribute BarProp scrollbars; |
41 [Replaceable] readonly attribute BarProp statusbar; | 40 [Replaceable] readonly attribute BarProp statusbar; |
42 [Replaceable] readonly attribute BarProp toolbar; | 41 [Replaceable] readonly attribute BarProp toolbar; |
43 [Replaceable, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds] readonl
y attribute Navigator navigator; | 42 [Replaceable, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds] readonl
y attribute Navigator navigator; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 attribute EventListener ontransitionend; | 255 attribute EventListener ontransitionend; |
257 [Conditional=ORIENTATION_EVENTS] attribute EventListener onorientationchange
; | 256 [Conditional=ORIENTATION_EVENTS] attribute EventListener onorientationchange
; |
258 [EnabledAtRuntime=touch] attribute EventListener ontouchstart; | 257 [EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
259 [EnabledAtRuntime=touch] attribute EventListener ontouchmove; | 258 [EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
260 [EnabledAtRuntime=touch] attribute EventListener ontouchend; | 259 [EnabledAtRuntime=touch] attribute EventListener ontouchend; |
261 [EnabledAtRuntime=touch] attribute EventListener ontouchcancel; | 260 [EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
262 | 261 |
263 [EnabledAtRuntime=deviceMotion] attribute EventListener ondevicemotion; | 262 [EnabledAtRuntime=deviceMotion] attribute EventListener ondevicemotion; |
264 [EnabledAtRuntime=deviceOrientation] attribute EventListener ondeviceorienta
tion; | 263 [EnabledAtRuntime=deviceOrientation] attribute EventListener ondeviceorienta
tion; |
265 | 264 |
266 // EventTarget interface | |
267 [Custom] void addEventListener(DOMString type, | |
268 EventListener listener, | |
269 optional boolean useCapture); | |
270 [Custom] void removeEventListener(DOMString type, | |
271 EventListener listener, | |
272 optional boolean useCapture); | |
273 [RaisesException] boolean dispatchEvent(Event evt); | |
274 | |
275 // Additional constructors. | 265 // Additional constructors. |
276 attribute TransitionEventConstructor WebKitTransitionEvent; | 266 attribute TransitionEventConstructor WebKitTransitionEvent; |
277 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image;
// Usable with new operator | 267 [CustomConstructor] attribute HTMLImageElementConstructorConstructor Image;
// Usable with new operator |
278 // Mozilla has a separate XMLDocument object for XML documents. | 268 // Mozilla has a separate XMLDocument object for XML documents. |
279 // We just use Document for this. | 269 // We just use Document for this. |
280 attribute DocumentConstructor XMLDocument; | 270 attribute DocumentConstructor XMLDocument; |
281 attribute URLConstructor webkitURL; // FIXME: deprecate this. | 271 attribute URLConstructor webkitURL; // FIXME: deprecate this. |
282 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 272 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. |
283 attribute IDBCursorConstructor webkitIDBCursor; | 273 attribute IDBCursorConstructor webkitIDBCursor; |
284 attribute IDBDatabaseConstructor webkitIDBDatabase; | 274 attribute IDBDatabaseConstructor webkitIDBDatabase; |
(...skipping 20 matching lines...) Expand all Loading... |
305 | 295 |
306 // window.toString() requires special handling in V8 | 296 // window.toString() requires special handling in V8 |
307 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 297 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
308 | 298 |
309 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); | 299 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); |
310 [Custom, NotEnumerable] getter Window (DOMString name); | 300 [Custom, NotEnumerable] getter Window (DOMString name); |
311 }; | 301 }; |
312 | 302 |
313 Window implements WindowTimers; | 303 Window implements WindowTimers; |
314 | 304 |
OLD | NEW |