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 11 matching lines...) Expand all Loading... |
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, | 29 EventTarget, |
30 CustomToV8, | 30 CustomToV8, |
31 DoNotGenerateWrap, | 31 DoNotGenerateWrap, |
32 ImplementedAs=DOMWindow | 32 InterfaceName=Window |
33 ] interface Window { | 33 ] interface DOMWindow { |
34 // DOM Level 0 | 34 // DOM Level 0 |
35 [Replaceable] readonly attribute Screen screen; | 35 [Replaceable] readonly attribute Screen screen; |
36 [Replaceable] readonly attribute History history; | 36 [Replaceable] readonly attribute History history; |
37 [Replaceable] readonly attribute BarProp locationbar; | 37 [Replaceable] readonly attribute BarProp locationbar; |
38 [Replaceable] readonly attribute BarProp menubar; | 38 [Replaceable] readonly attribute BarProp menubar; |
39 [Replaceable] readonly attribute BarProp personalbar; | 39 [Replaceable] readonly attribute BarProp personalbar; |
40 [Replaceable] readonly attribute BarProp scrollbars; | 40 [Replaceable] readonly attribute BarProp scrollbars; |
41 [Replaceable] readonly attribute BarProp statusbar; | 41 [Replaceable] readonly attribute BarProp statusbar; |
42 [Replaceable] readonly attribute BarProp toolbar; | 42 [Replaceable] readonly attribute BarProp toolbar; |
43 [Replaceable, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds] readonl
y attribute Navigator navigator; | 43 [Replaceable, PerWorldBindings, ActivityLog=GetterForIsolatedWorlds] readonl
y attribute Navigator navigator; |
44 [Replaceable] readonly attribute Navigator clientInformation; | 44 [Replaceable] readonly attribute Navigator clientInformation; |
45 [DoNotCheckSecurity, CustomSetter, Unforgeable, Replaceable, PerWorldBinding
s, ActivityLog=AccessForIsolatedWorlds] readonly attribute Location location; | 45 [DoNotCheckSecurity, CustomSetter, Unforgeable, Replaceable, PerWorldBinding
s, ActivityLog=AccessForIsolatedWorlds] readonly attribute Location location; |
46 [MeasureAs=WindowEvent, NotEnumerable, Replaceable, CustomGetter, CustomSett
er] readonly attribute Event event; | 46 [MeasureAs=WindowEvent, NotEnumerable, Replaceable, CustomGetter, CustomSett
er] readonly attribute Event event; |
47 | 47 |
48 Selection getSelection(); | 48 Selection getSelection(); |
49 | 49 |
50 [CheckSecurityForNode] readonly attribute Element frameElement; | 50 [CheckSecurityForNode] readonly attribute Element frameElement; |
51 | 51 |
52 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void focus(); | 52 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void focus(); |
53 [DoNotCheckSecurity] void blur(); | 53 [DoNotCheckSecurity] void blur(); |
54 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void close(); | 54 [DoNotCheckSecurity, CallWith=ScriptExecutionContext] void close(); |
55 | 55 |
56 void print(); | 56 void print(); |
57 void stop(); | 57 void stop(); |
58 | 58 |
59 [Custom] Window open(DOMString url, | 59 [Custom] DOMWindow open(DOMString url, |
60 DOMString name, | 60 DOMString name, |
61 optional DOMString options); | 61 optional DOMString options); |
62 | 62 |
63 [Custom] any showModalDialog(DOMString url, | 63 [Custom] any showModalDialog(DOMString url, |
64 optional any dialogArgs, | 64 optional any dialogArgs, |
65 optional DOMString featureArgs); | 65 optional DOMString featureArgs); |
66 | 66 |
67 void alert([Default=Undefined] optional DOMString message); | 67 void alert([Default=Undefined] optional DOMString message); |
68 boolean confirm([Default=Undefined] optional DOMString message); | 68 boolean confirm([Default=Undefined] optional DOMString message); |
69 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=Undefined] option
al DOMString message, | 69 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=Undefined] option
al DOMString message, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute unsigned long l
ength; | 105 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute unsigned long l
ength; |
106 | 106 |
107 attribute DOMString name; | 107 attribute DOMString name; |
108 | 108 |
109 attribute DOMString status; | 109 attribute DOMString status; |
110 attribute DOMString defaultStatus; | 110 attribute DOMString defaultStatus; |
111 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. | 111 // This attribute is an alias of defaultStatus and is necessary for legacy u
ses. |
112 attribute DOMString defaultstatus; | 112 attribute DOMString defaultstatus; |
113 | 113 |
114 // Self referential attributes | 114 // Self referential attributes |
115 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute Window self; | 115 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow self; |
116 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; | 116 [DoNotCheckSecurity, Unforgeable] readonly attribute DOMWindow window; |
117 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute Window frames; | 117 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow fram
es; |
118 | 118 |
119 [Replaceable, DoNotCheckSecurityOnGetter, CustomSetter] readonly attribute W
indow opener; | 119 [Replaceable, DoNotCheckSecurityOnGetter, CustomSetter] readonly attribute D
OMWindow opener; |
120 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute Window parent; | 120 [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow paren
t; |
121 [DoNotCheckSecurityOnGetter, Unforgeable] readonly attribute Window top; | 121 [DoNotCheckSecurityOnGetter, Unforgeable] readonly attribute DOMWindow top; |
122 | 122 |
123 // DOM Level 2 AbstractView Interface | 123 // DOM Level 2 AbstractView Interface |
124 readonly attribute Document document; | 124 readonly attribute Document document; |
125 | 125 |
126 // CSSOM View Module | 126 // CSSOM View Module |
127 MediaQueryList matchMedia(DOMString query); | 127 MediaQueryList matchMedia(DOMString query); |
128 | 128 |
129 // styleMedia has been removed from the CSSOM View specification. | 129 // styleMedia has been removed from the CSSOM View specification. |
130 readonly attribute StyleMedia styleMedia; | 130 readonly attribute StyleMedia styleMedia; |
131 | 131 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarListConstructor web
kitSpeechGrammarList; | 307 [EnabledAtRuntime=scriptedSpeech] attribute SpeechGrammarListConstructor web
kitSpeechGrammarList; |
308 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionConstructor web
kitSpeechRecognition; | 308 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionConstructor web
kitSpeechRecognition; |
309 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionErrorConstructo
r webkitSpeechRecognitionError; | 309 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionErrorConstructo
r webkitSpeechRecognitionError; |
310 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionEventConstructo
r webkitSpeechRecognitionEvent; | 310 [EnabledAtRuntime=scriptedSpeech] attribute SpeechRecognitionEventConstructo
r webkitSpeechRecognitionEvent; |
311 attribute ShadowRootConstructor WebKitShadowRoot; | 311 attribute ShadowRootConstructor WebKitShadowRoot; |
312 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; | 312 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; |
313 | 313 |
314 // window.toString() requires special handling in V8 | 314 // window.toString() requires special handling in V8 |
315 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 315 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
316 | 316 |
317 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); | 317 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter DOMWindow(unsig
ned long index); |
318 [Custom, NotEnumerable] getter Window (DOMString name); | 318 [Custom, NotEnumerable] getter DOMWindow (DOMString name); |
319 }; | 319 }; |
320 | 320 |
OLD | NEW |