| 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 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 // HTML 5 draft spec: | 27 // HTML 5 draft spec: |
| 28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window | 28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window |
| 29 // FIXME: explain all uses of [DoNotCheckSecurity] | 29 // FIXME: explain all uses of [DoNotCheckSecurity] |
| 30 [ | 30 [ |
| 31 CheckSecurity=Frame, | 31 CheckSecurity=Frame, |
| 32 Custom=ToV8, | 32 Custom=ToV8, |
| 33 ImplementedAs=DOMWindow, | 33 ImplementedAs=DOMWindow, |
| 34 PrimaryGlobal, | 34 PrimaryGlobal, |
| 35 TypeChecking=Unrestricted, |
| 35 ] interface Window : EventTarget { | 36 ] interface Window : EventTarget { |
| 36 // DOM Level 0 | 37 // DOM Level 0 |
| 37 readonly attribute Screen screen; | 38 readonly attribute Screen screen; |
| 38 readonly attribute History history; | 39 readonly attribute History history; |
| 39 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; | 40 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat
ionbar; |
| 40 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; | 41 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; |
| 41 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; | 42 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso
nalbar; |
| 42 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; | 43 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll
bars; |
| 43 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; | 44 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb
ar; |
| 44 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; | 45 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 [Replaceable] readonly attribute long innerWidth; | 89 [Replaceable] readonly attribute long innerWidth; |
| 89 [Replaceable] readonly attribute long screenX; | 90 [Replaceable] readonly attribute long screenX; |
| 90 [Replaceable] readonly attribute long screenY; | 91 [Replaceable] readonly attribute long screenY; |
| 91 [Replaceable] readonly attribute long screenLeft; | 92 [Replaceable] readonly attribute long screenLeft; |
| 92 [Replaceable] readonly attribute long screenTop; | 93 [Replaceable] readonly attribute long screenTop; |
| 93 [Replaceable] readonly attribute double scrollX; | 94 [Replaceable] readonly attribute double scrollX; |
| 94 [Replaceable] readonly attribute double scrollY; | 95 [Replaceable] readonly attribute double scrollY; |
| 95 readonly attribute double pageXOffset; | 96 readonly attribute double pageXOffset; |
| 96 readonly attribute double pageYOffset; | 97 readonly attribute double pageYOffset; |
| 97 | 98 |
| 98 void scrollBy(double x, double y); | 99 void scrollBy(unrestricted double x, unrestricted double y); |
| 99 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); | 100 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); |
| 100 void scrollTo(double x, double y); | 101 void scrollTo(unrestricted double x, unrestricted double y); |
| 101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); | 102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); |
| 102 void scroll(double x, double y); | 103 void scroll(unrestricted double x, unrestricted double y); |
| 103 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional
ScrollToOptions scrollOptions); | 104 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional
ScrollToOptions scrollOptions); |
| 104 void moveBy(optional long x, optional long y); | 105 void moveBy(optional long x, optional long y); |
| 105 void moveTo(optional long x, optional long y); // FIXME: Arguments should no
t be optional, or should have defaults. | 106 void moveTo(optional long x, optional long y); // FIXME: Arguments should no
t be optional, or should have defaults. |
| 106 void resizeBy(optional long x, optional long y); | 107 void resizeBy(optional long x, optional long y); |
| 107 void resizeTo(optional long width, optional long height); // FIXME: Argument
s should not be optional, or should have defaults. | 108 void resizeTo(optional long width, optional long height); // FIXME: Argument
s should not be optional, or should have defaults. |
| 108 | 109 |
| 109 [DoNotCheckSecurity] readonly attribute boolean closed; | 110 [DoNotCheckSecurity] readonly attribute boolean closed; |
| 110 | 111 |
| 111 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 112 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
| 112 | 113 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 210 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
| 210 // is in place. | 211 // is in place. |
| 211 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 212 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 212 // utility type definitions. | 213 // utility type definitions. |
| 213 typedef MessagePort Transferable; | 214 typedef MessagePort Transferable; |
| 214 | 215 |
| 215 Window implements GlobalEventHandlers; | 216 Window implements GlobalEventHandlers; |
| 216 Window implements WindowBase64; | 217 Window implements WindowBase64; |
| 217 Window implements WindowEventHandlers; | 218 Window implements WindowEventHandlers; |
| 218 Window implements WindowTimers; | 219 Window implements WindowTimers; |
| OLD | NEW |