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 18 matching lines...) Expand all Loading... |
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=DOMWindow, |
34 WillBeGarbageCollected, | 34 WillBeGarbageCollected, |
35 ] interface Window : EventTarget { | 35 ] interface Window : EventTarget { |
36 // DOM Level 0 | 36 // DOM Level 0 |
37 [Replaceable] readonly attribute Screen screen; | 37 [Replaceable] readonly attribute Screen screen; |
38 readonly attribute History history; | 38 readonly attribute History history; |
39 [Replaceable] readonly attribute BarProp locationbar; | 39 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; |
40 [Replaceable] readonly attribute BarProp menubar; | 40 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; |
41 [Replaceable] readonly attribute BarProp personalbar; | 41 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; |
42 [Replaceable] readonly attribute BarProp scrollbars; | 42 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; |
43 [Replaceable] readonly attribute BarProp statusbar; | 43 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; |
44 [Replaceable] readonly attribute BarProp toolbar; | 44 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; |
45 [PerWorldBindings, LogActivity=GetterOnly] readonly attribute Navigator navi
gator; | 45 [PerWorldBindings, LogActivity=GetterOnly] readonly attribute Navigator navi
gator; |
46 [Replaceable] readonly attribute Navigator clientInformation; | 46 [Replaceable] readonly attribute Navigator clientInformation; |
47 [DoNotCheckSecurity, Unforgeable, Replaceable, PerWorldBindings, LogActivity
, PutForwards=href] readonly attribute Location location; | 47 [DoNotCheckSecurity, Unforgeable, Replaceable, PerWorldBindings, LogActivity
, PutForwards=href] readonly attribute Location location; |
48 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; | 48 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; |
49 | 49 |
50 Selection getSelection(); | 50 Selection getSelection(); |
51 | 51 |
52 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; | 52 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; |
53 | 53 |
54 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 54 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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=NullS
tring, TreatUndefinedAs=NullString,Default=Undefined] optional DOMString pseudoE
lement); | 144 [TreatNullAs=NullStr
ing, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoEl
ement); |
145 | 145 |
146 // WebKit extensions | 146 // WebKit extensions |
147 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, | 147 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef
ined] optional Element element, |
148 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); | 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 WebKitPoint webkitConvertPointFromPageToNode([Default=Undefined] optional No
de node, |
153 [Default=Undefined] optional We
bKitPoint p); | 153 [Default=Undefined] optional We
bKitPoint p); |
154 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, | 154 WebKitPoint webkitConvertPointFromNodeToPage([Default=Undefined] optional No
de node, |
155 [Default=Undefined] optional We
bKitPoint p); | 155 [Default=Undefined] optional We
bKitPoint 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] readonly attribute long orientation; | 165 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; |
166 | 166 |
167 [Replaceable] readonly attribute Console console; | 167 [Replaceable] readonly attribute Console console; |
168 | 168 |
169 // cross-document messaging | 169 // cross-document messaging |
170 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); | 170 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); |
171 | 171 |
172 [Replaceable] readonly attribute Performance performance; | 172 [Replaceable] readonly attribute Performance performance; |
173 | 173 |
174 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 174 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
175 void cancelAnimationFrame(long id); | 175 void cancelAnimationFrame(long id); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |