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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 double scrollX; | 94 [Replaceable] readonly attribute double scrollX; |
95 [Replaceable] readonly attribute double scrollY; | 95 [Replaceable] readonly attribute double scrollY; |
96 readonly attribute double pageXOffset; | 96 readonly attribute double pageXOffset; |
97 readonly attribute double pageYOffset; | 97 readonly attribute double pageYOffset; |
98 | 98 |
99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by | 99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by |
100 // changing the third argument to *optional* Dictionary scrollOptions | 100 // changing the third argument to *optional* Dictionary scrollOptions |
101 void scrollBy(long x, long y); | 101 void scrollBy(double x, double y); |
102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo
ng y, Dictionary scrollOptions); | 102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(double x,
double y, ScrollOptions scrollOptions); |
103 void scrollTo(long x, long y); | 103 void scrollTo(double x, double y); |
104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo
ng y, Dictionary scrollOptions); | 104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(double x,
double y, ScrollOptions scrollOptions); |
105 void scroll(long x, long y); | 105 void scroll(double x, double y); |
106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long
y, Dictionary scrollOptions); | 106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(double x, do
uble y, ScrollOptions scrollOptions); |
107 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. |
108 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. |
109 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. |
110 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. |
111 | 111 |
112 [DoNotCheckSecurity] readonly attribute boolean closed; | 112 [DoNotCheckSecurity] readonly attribute boolean closed; |
113 | 113 |
114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
115 | 115 |
116 attribute DOMString name; | 116 attribute DOMString name; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
219 // is in place. | 219 // is in place. |
220 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 220 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
221 // utility type definitions. | 221 // utility type definitions. |
222 typedef MessagePort Transferable; | 222 typedef MessagePort Transferable; |
223 | 223 |
224 Window implements GlobalEventHandlers; | 224 Window implements GlobalEventHandlers; |
225 Window implements WindowBase64; | 225 Window implements WindowBase64; |
226 Window implements WindowEventHandlers; | 226 Window implements WindowEventHandlers; |
227 Window implements WindowTimers; | 227 Window implements WindowTimers; |
OLD | NEW |