| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // CSS Conditional Rules Module | 99 // CSS Conditional Rules Module |
| 100 // http://dev.w3.org/csswg/css-conditional/#the-css-interface | 100 // http://dev.w3.org/csswg/css-conditional/#the-css-interface |
| 101 // FIXME: CSS should be an interface with static members, in which | 101 // FIXME: CSS should be an interface with static members, in which |
| 102 // case this getter would not be needed. | 102 // case this getter would not be needed. |
| 103 [Replaceable] readonly attribute CSS CSS; | 103 [Replaceable] readonly attribute CSS CSS; |
| 104 | 104 |
| 105 // CSSOM View Module | 105 // CSSOM View Module |
| 106 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface | 106 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface |
| 107 [NewObject] MediaQueryList matchMedia(DOMString query); | 107 [NewObject] MediaQueryList matchMedia(DOMString query); |
| 108 [SameObject] readonly attribute Screen screen; | 108 [SameObject, Replaceable] readonly attribute Screen screen; |
| 109 | 109 |
| 110 // browsing context | 110 // browsing context |
| 111 // FIXME: The x and y arguments should not be optional. crbug.com/453421 | 111 // FIXME: The x and y arguments should not be optional. crbug.com/453421 |
| 112 void moveTo(optional long x, optional long y); | 112 void moveTo(optional long x, optional long y); |
| 113 void moveBy(optional long x, optional long y); | 113 void moveBy(optional long x, optional long y); |
| 114 void resizeTo(optional long x, optional long y); | 114 void resizeTo(optional long x, optional long y); |
| 115 void resizeBy(optional long x, optional long y); | 115 void resizeBy(optional long x, optional long y); |
| 116 | 116 |
| 117 // viewport | 117 // viewport |
| 118 // FIXME: None of the CCSOM View Module attributes should be [Replaceable]. | |
| 119 [Replaceable] readonly attribute long innerWidth; | 118 [Replaceable] readonly attribute long innerWidth; |
| 120 [Replaceable] readonly attribute long innerHeight; | 119 [Replaceable] readonly attribute long innerHeight; |
| 121 | 120 |
| 122 // viewport scrolling | 121 // viewport scrolling |
| 123 [Replaceable] readonly attribute double scrollX; | 122 [Replaceable] readonly attribute double scrollX; |
| 124 readonly attribute double pageXOffset; | 123 [Replaceable] readonly attribute double pageXOffset; |
| 125 [Replaceable] readonly attribute double scrollY; | 124 [Replaceable] readonly attribute double scrollY; |
| 126 readonly attribute double pageYOffset; | 125 [Replaceable] readonly attribute double pageYOffset; |
| 127 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti
ons); | 126 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti
ons); |
| 128 void scroll(unrestricted double x, unrestricted double y); | 127 void scroll(unrestricted double x, unrestricted double y); |
| 129 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); | 128 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
| 130 void scrollTo(unrestricted double x, unrestricted double y); | 129 void scrollTo(unrestricted double x, unrestricted double y); |
| 131 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); | 130 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); |
| 132 void scrollBy(unrestricted double x, unrestricted double y); | 131 void scrollBy(unrestricted double x, unrestricted double y); |
| 133 | 132 |
| 134 // client | 133 // client |
| 135 [Replaceable] readonly attribute long screenX; | 134 [Replaceable] readonly attribute long screenX; |
| 136 [Replaceable] readonly attribute long screenY; | 135 [Replaceable] readonly attribute long screenY; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 208 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
| 210 // is in place. | 209 // is in place. |
| 211 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 210 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 212 // utility type definitions. | 211 // utility type definitions. |
| 213 typedef MessagePort Transferable; | 212 typedef MessagePort Transferable; |
| 214 | 213 |
| 215 Window implements GlobalEventHandlers; | 214 Window implements GlobalEventHandlers; |
| 216 Window implements WindowBase64; | 215 Window implements WindowBase64; |
| 217 Window implements WindowEventHandlers; | 216 Window implements WindowEventHandlers; |
| 218 Window implements WindowTimers; | 217 Window implements WindowTimers; |
| OLD | NEW |