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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 [Replaceable] readonly attribute double pageXOffset; | 120 [Replaceable] readonly attribute double pageXOffset; |
121 [Replaceable] readonly attribute double scrollY; | 121 [Replaceable] readonly attribute double scrollY; |
122 [Replaceable] readonly attribute double pageYOffset; | 122 [Replaceable] readonly attribute double pageYOffset; |
123 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti
ons); | 123 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti
ons); |
124 void scroll(unrestricted double x, unrestricted double y); | 124 void scroll(unrestricted double x, unrestricted double y); |
125 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); | 125 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
126 void scrollTo(unrestricted double x, unrestricted double y); | 126 void scrollTo(unrestricted double x, unrestricted double y); |
127 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); | 127 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); |
128 void scrollBy(unrestricted double x, unrestricted double y); | 128 void scrollBy(unrestricted double x, unrestricted double y); |
129 | 129 |
| 130 // Visual Viewport API |
| 131 // https://github.com/WICG/ViewportAPI |
| 132 [RuntimeEnabled=VisualViewportAPI] readonly attribute VisualViewport? visual
Viewport; |
| 133 |
130 // client | 134 // client |
131 [Replaceable] readonly attribute long screenX; | 135 [Replaceable] readonly attribute long screenX; |
132 [Replaceable] readonly attribute long screenY; | 136 [Replaceable] readonly attribute long screenY; |
133 [Replaceable] readonly attribute long outerWidth; | 137 [Replaceable] readonly attribute long outerWidth; |
134 [Replaceable] readonly attribute long outerHeight; | 138 [Replaceable] readonly attribute long outerHeight; |
135 [Replaceable] readonly attribute double devicePixelRatio; | 139 [Replaceable] readonly attribute double devicePixelRatio; |
136 | 140 |
137 // Selection API | 141 // Selection API |
138 // http://w3c.github.io/selection-api/#extensions-to-window-interface | 142 // http://w3c.github.io/selection-api/#extensions-to-window-interface |
139 Selection? getSelection(); | 143 Selection? getSelection(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 207 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
204 // is in place. | 208 // is in place. |
205 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 209 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
206 // utility type definitions. | 210 // utility type definitions. |
207 typedef MessagePort Transferable; | 211 typedef MessagePort Transferable; |
208 | 212 |
209 Window implements GlobalEventHandlers; | 213 Window implements GlobalEventHandlers; |
210 Window implements WindowBase64; | 214 Window implements WindowBase64; |
211 Window implements WindowEventHandlers; | 215 Window implements WindowEventHandlers; |
212 Window implements WindowTimers; | 216 Window implements WindowTimers; |
OLD | NEW |