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 24 matching lines...) Expand all Loading... |
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] readonly attribute BarProp locationbar; |
40 [Replaceable] readonly attribute BarProp menubar; | 40 [Replaceable] readonly attribute BarProp menubar; |
41 [Replaceable] readonly attribute BarProp personalbar; | 41 [Replaceable] readonly attribute BarProp personalbar; |
42 [Replaceable] readonly attribute BarProp scrollbars; | 42 [Replaceable] readonly attribute BarProp scrollbars; |
43 [Replaceable] readonly attribute BarProp statusbar; | 43 [Replaceable] readonly attribute BarProp statusbar; |
44 [Replaceable] readonly attribute BarProp toolbar; | 44 [Replaceable] readonly attribute BarProp toolbar; |
45 [PerWorldBindings, ActivityLogging=GetterForIsolatedWorlds] readonly attribu
te Navigator navigator; | 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, ActivityLog
ging=ForIsolatedWorlds, 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(); |
55 [DoNotCheckSecurity] void blur(); | 55 [DoNotCheckSecurity] void blur(); |
56 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); | 56 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); |
57 | 57 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, | 147 CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element, |
148 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); | 148 [TreatNullAs=NullString, TreatUndefinedAs=Nul
lString,Default=Undefined] optional DOMString pseudoElement); |
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, ActivityLogging=GetterFo
rIsolatedWorlds] readonly attribute ApplicationCache applicationCache; | 157 [RuntimeEnabled=ApplicationCache, PerWorldBindings, LogActivity=GetterOnly]
readonly attribute ApplicationCache applicationCache; |
158 | 158 |
159 [RuntimeEnabled=SessionStorage, PerWorldBindings, ActivityLogging=GetterForI
solatedWorlds, RaisesException=Getter] readonly attribute Storage sessionStorage
; | 159 [RuntimeEnabled=SessionStorage, PerWorldBindings, LogActivity=GetterOnly, Ra
isesException=Getter] readonly attribute Storage sessionStorage; |
160 [RuntimeEnabled=LocalStorage, PerWorldBindings, ActivityLogging=GetterForIso
latedWorlds, RaisesException=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] readonly attribute 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); |
(...skipping 16 matching lines...) Expand all Loading... |
187 attribute EventHandler onsearch; | 187 attribute EventHandler onsearch; |
188 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 188 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
189 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 189 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
190 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 190 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
191 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 191 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
192 attribute EventHandler ontransitionend; | 192 attribute EventHandler ontransitionend; |
193 attribute EventHandler onwebkitanimationend; | 193 attribute EventHandler onwebkitanimationend; |
194 attribute EventHandler onwebkitanimationiteration; | 194 attribute EventHandler onwebkitanimationiteration; |
195 attribute EventHandler onwebkitanimationstart; | 195 attribute EventHandler onwebkitanimationstart; |
196 attribute EventHandler onwebkittransitionend; | 196 attribute EventHandler onwebkittransitionend; |
197 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 197 [PerWorldBindings, LogActivity=SetterOnly] attribute EventHandler onwheel; |
198 | 198 |
199 [MeasureAs=WindowCaptureEvents] void captureEvents(); | 199 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
200 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | 200 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
201 | 201 |
202 // Additional constructors. | 202 // Additional constructors. |
203 attribute TransitionEventConstructor WebKitTransitionEvent; | 203 attribute TransitionEventConstructor WebKitTransitionEvent; |
204 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; | 204 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr
uctor AnimationEvent; |
205 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. | 205 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME:
deprecate this. |
206 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. | 206 attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Add
metrics to determine when we can remove this. |
207 attribute IDBCursorConstructor webkitIDBCursor; | 207 attribute IDBCursorConstructor webkitIDBCursor; |
(...skipping 22 matching lines...) Expand all 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 |