| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 [Replaceable] readonly attribute long innerWidth; | 88 [Replaceable] readonly attribute long innerWidth; |
| 89 [Replaceable] readonly attribute long screenX; | 89 [Replaceable] readonly attribute long screenX; |
| 90 [Replaceable] readonly attribute long screenY; | 90 [Replaceable] readonly attribute long screenY; |
| 91 [Replaceable] readonly attribute long screenLeft; | 91 [Replaceable] readonly attribute long screenLeft; |
| 92 [Replaceable] readonly attribute long screenTop; | 92 [Replaceable] readonly attribute long screenTop; |
| 93 [Replaceable] readonly attribute double scrollX; | 93 [Replaceable] readonly attribute double scrollX; |
| 94 [Replaceable] readonly attribute double scrollY; | 94 [Replaceable] readonly attribute double scrollY; |
| 95 readonly attribute double pageXOffset; | 95 readonly attribute double pageXOffset; |
| 96 readonly attribute double pageYOffset; | 96 readonly attribute double pageYOffset; |
| 97 | 97 |
| 98 // Overloading can be replaced by optional if RuntimeEnabled is removed, by | |
| 99 // changing the third argument to *optional* Dictionary scrollOptions | |
| 100 void scrollBy(double x, double y); | 98 void scrollBy(double x, double y); |
| 101 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(double x,
double y, ScrollOptions scrollOptions); | 99 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); |
| 102 void scrollTo(double x, double y); | 100 void scrollTo(double x, double y); |
| 103 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(double x,
double y, ScrollOptions scrollOptions); | 101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona
l ScrollToOptions scrollToOptions); |
| 104 void scroll(double x, double y); | 102 void scroll(double x, double y); |
| 105 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(double x, do
uble y, ScrollOptions scrollOptions); | 103 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional
ScrollToOptions scrollOptions); |
| 106 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 104 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 107 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 105 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 108 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. | 106 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. |
| 109 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. | 107 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. |
| 110 | 108 |
| 111 [DoNotCheckSecurity] readonly attribute boolean closed; | 109 [DoNotCheckSecurity] readonly attribute boolean closed; |
| 112 | 110 |
| 113 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; | 111 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; |
| 114 | 112 |
| 115 attribute DOMString name; | 113 attribute DOMString name; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 | 214 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 |
| 217 // is in place. | 215 // is in place. |
| 218 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 216 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 219 // utility type definitions. | 217 // utility type definitions. |
| 220 typedef MessagePort Transferable; | 218 typedef MessagePort Transferable; |
| 221 | 219 |
| 222 Window implements GlobalEventHandlers; | 220 Window implements GlobalEventHandlers; |
| 223 Window implements WindowBase64; | 221 Window implements WindowBase64; |
| 224 Window implements WindowEventHandlers; | 222 Window implements WindowEventHandlers; |
| 225 Window implements WindowTimers; | 223 Window implements WindowTimers; |
| OLD | NEW |