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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 [Replaceable] readonly attribute long innerWidth; | 89 [Replaceable] readonly attribute long innerWidth; |
90 [Replaceable] readonly attribute long screenX; | 90 [Replaceable] readonly attribute long screenX; |
91 [Replaceable] readonly attribute long screenY; | 91 [Replaceable] readonly attribute long screenY; |
92 [Replaceable] readonly attribute long screenLeft; | 92 [Replaceable] readonly attribute long screenLeft; |
93 [Replaceable] readonly attribute long screenTop; | 93 [Replaceable] readonly attribute long screenTop; |
94 [Replaceable] readonly attribute long scrollX; | 94 [Replaceable] readonly attribute long scrollX; |
95 [Replaceable] readonly attribute long scrollY; | 95 [Replaceable] readonly attribute long scrollY; |
96 readonly attribute long pageXOffset; | 96 readonly attribute long pageXOffset; |
97 readonly attribute long pageYOffset; | 97 readonly attribute long pageYOffset; |
98 | 98 |
99 // FIXME: should be: | 99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by |
100 // void scrollBy(long x, long y); | 100 // changing the third argument to *optional* Dictionary scrollOptions |
101 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x,
long y, optional Dictionary scrollOptions); | 101 void scrollBy(long x, long y); |
102 // void scrollTo(long x, long y); | 102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo
ng y, Dictionary scrollOptions); |
103 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x,
long y, optional Dictionary scrollOptions); | 103 void scrollTo(long x, long y); |
104 // void scroll(long x, long y); | 104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo
ng y, Dictionary scrollOptions); |
105 // [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, l
ong y, optional Dictionary scrollOptions); | 105 void scroll(long x, long y); |
106 // http://crbug.com/339000 | 106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long
y, Dictionary scrollOptions); |
107 [RaisesException] void scrollBy(long x, long y, optional Dictionary scrollOp
tions); | |
108 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOp
tions); | |
109 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOpti
ons); | |
110 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 107 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
111 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 108 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
112 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. | 109 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. |
113 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. | 110 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. |
114 | 111 |
115 [DoNotCheckSecurity] readonly attribute boolean closed; | 112 [DoNotCheckSecurity] readonly attribute boolean closed; |
116 | 113 |
117 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
118 | 115 |
119 attribute DOMString name; | 116 attribute DOMString name; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 208 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
212 | 209 |
213 [NotEnumerable] getter Window (unsigned long index); | 210 [NotEnumerable] getter Window (unsigned long index); |
214 [Custom, NotEnumerable] getter Window (DOMString name); | 211 [Custom, NotEnumerable] getter Window (DOMString name); |
215 }; | 212 }; |
216 | 213 |
217 Window implements GlobalEventHandlers; | 214 Window implements GlobalEventHandlers; |
218 Window implements WindowBase64; | 215 Window implements WindowBase64; |
219 Window implements WindowEventHandlers; | 216 Window implements WindowEventHandlers; |
220 Window implements WindowTimers; | 217 Window implements WindowTimers; |
OLD | NEW |