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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); | 87 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message,
DOMString targetOrigin, optional sequence<Transferable> transfer); |
88 | 88 |
89 // HTML obsolete features | 89 // HTML obsolete features |
90 // https://html.spec.whatwg.org/#Window-partial | 90 // https://html.spec.whatwg.org/#Window-partial |
91 [MeasureAs=WindowCaptureEvents] void captureEvents(); | 91 [MeasureAs=WindowCaptureEvents] void captureEvents(); |
92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); | 92 [MeasureAs=WindowReleaseEvents] void releaseEvents(); |
93 | 93 |
94 // CSS Object Model (CSSOM) | 94 // CSS Object Model (CSSOM) |
95 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface | 95 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface |
96 // FIXME: The optional pseudoElt argument should have no default. | 96 // FIXME: The optional pseudoElt argument should have no default. |
97 [NewObject, TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Ele
ment elt, optional DOMString? pseudoElt = null); | 97 [NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMSt
ring? pseudoElt = null); |
98 | 98 |
99 // CSSOM View Module | 99 // CSSOM View Module |
100 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface | 100 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface |
101 [NewObject] MediaQueryList matchMedia(DOMString query); | 101 [NewObject] MediaQueryList matchMedia(DOMString query); |
102 [SameObject, Replaceable] readonly attribute Screen screen; | 102 [SameObject, Replaceable] readonly attribute Screen screen; |
103 | 103 |
104 // browsing context | 104 // browsing context |
105 void moveTo(long x, long y); | 105 void moveTo(long x, long y); |
106 void moveBy(long x, long y); | 106 void moveBy(long x, long y); |
107 void resizeTo(long x, long y); | 107 void resizeTo(long x, long y); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 [Default=Undefined] optional boolean wra
p, | 147 [Default=Undefined] optional boolean wra
p, |
148 [Default=Undefined] optional boolean who
leWord, | 148 [Default=Undefined] optional boolean who
leWord, |
149 [Default=Undefined] optional boolean sea
rchInFrames, | 149 [Default=Undefined] optional boolean sea
rchInFrames, |
150 [Default=Undefined] optional boolean sho
wDialog); | 150 [Default=Undefined] optional boolean sho
wDialog); |
151 [MeasureAs=WindowOffscreenBuffering, Replaceable, NotEnumerable] readonly at
tribute boolean offscreenBuffering; | 151 [MeasureAs=WindowOffscreenBuffering, Replaceable, NotEnumerable] readonly at
tribute boolean offscreenBuffering; |
152 [MeasureAs=WindowScreenLeft, Replaceable] readonly attribute long screenLeft
; | 152 [MeasureAs=WindowScreenLeft, Replaceable] readonly attribute long screenLeft
; |
153 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; | 153 [MeasureAs=WindowScreenTop, Replaceable] readonly attribute long screenTop; |
154 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; | 154 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; |
155 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt
ring defaultstatus; | 155 [MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMSt
ring defaultstatus; |
156 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; | 156 [MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia; |
157 [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Und
efined] optional Element element, | 157 [DeprecateAs=GetMatchedCSSRules, LegacyInterfaceTypeChecking] CSSRuleList ge
tMatchedCSSRules([Default=Undefined] optional Element element, |
158 [TreatUndefi
nedAs=NullString, Default=Undefined] optional DOMString? pseudoElement); | 158
[TreatUndefinedAs=NullString, Default=Undefined] optional DOMSt
ring? pseudoElement); |
159 // This is the interface orientation in degrees. Some examples are: | 159 // This is the interface orientation in degrees. Some examples are: |
160 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 160 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
161 // 90 is when rotated counter clockwise. | 161 // 90 is when rotated counter clockwise. |
162 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr
ibute long orientation; | 162 [MeasureAs=WindowOrientation, RuntimeEnabled=OrientationEvent] readonly attr
ibute long orientation; |
163 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(FrameRequestCallback callback); | 163 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame
(FrameRequestCallback callback); |
164 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); | 164 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram
e] void webkitCancelAnimationFrame(long id); |
165 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); | 165 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat
ionFrame] void webkitCancelRequestAnimationFrame(long id); |
166 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; | 166 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons
tructor WebKitTransitionEvent; |
167 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; | 167 [Measure] attribute AnimationEventConstructor WebKitAnimationEvent; |
168 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; | 168 [DeprecateAs=PrefixedWindowURL] attribute URLConstructor webkitURL; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // 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 |
201 // is in place. | 201 // is in place. |
202 // 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 |
203 // utility type definitions. | 203 // utility type definitions. |
204 typedef MessagePort Transferable; | 204 typedef MessagePort Transferable; |
205 | 205 |
206 Window implements GlobalEventHandlers; | 206 Window implements GlobalEventHandlers; |
207 Window implements WindowBase64; | 207 Window implements WindowBase64; |
208 Window implements WindowEventHandlers; | 208 Window implements WindowEventHandlers; |
209 Window implements WindowTimers; | 209 Window implements WindowTimers; |
OLD | NEW |