| 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 22 matching lines...) Expand all Loading... |
| 33 ImplementedAs=LocalDOMWindow, | 33 ImplementedAs=LocalDOMWindow, |
| 34 PrimaryGlobal, | 34 PrimaryGlobal, |
| 35 ] interface Window : EventTarget { | 35 ] interface Window : EventTarget { |
| 36 readonly attribute Screen screen; | 36 readonly attribute Screen screen; |
| 37 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; | 37 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; |
| 38 | 38 |
| 39 Selection getSelection(); | 39 Selection getSelection(); |
| 40 | 40 |
| 41 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 41 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
| 42 | 42 |
| 43 boolean find([Default=Undefined] optional DOMString string, | |
| 44 [Default=Undefined] optional boolean caseSensitive, | |
| 45 [Default=Undefined] optional boolean backwards, | |
| 46 [Default=Undefined] optional boolean wrap, | |
| 47 [Default=Undefined] optional boolean wholeWord, | |
| 48 [Default=Undefined] optional boolean searchInFrames, | |
| 49 [Default=Undefined] optional boolean showDialog); | |
| 50 | |
| 51 [Replaceable] readonly attribute long outerHeight; | 43 [Replaceable] readonly attribute long outerHeight; |
| 52 [Replaceable] readonly attribute long outerWidth; | 44 [Replaceable] readonly attribute long outerWidth; |
| 53 [Replaceable] readonly attribute long innerHeight; | 45 [Replaceable] readonly attribute long innerHeight; |
| 54 [Replaceable] readonly attribute long innerWidth; | 46 [Replaceable] readonly attribute long innerWidth; |
| 55 [Replaceable] readonly attribute long screenX; | 47 [Replaceable] readonly attribute long screenX; |
| 56 [Replaceable] readonly attribute long screenY; | 48 [Replaceable] readonly attribute long screenY; |
| 57 [Replaceable] readonly attribute long screenLeft; | 49 [Replaceable] readonly attribute long screenLeft; |
| 58 [Replaceable] readonly attribute long screenTop; | 50 [Replaceable] readonly attribute long screenTop; |
| 59 | 51 |
| 60 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 52 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 61 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. | 53 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option
al float y); // FIXME: this should take longs not floats. |
| 62 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. | 54 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti
onal float y); // FIXME: this should take longs not floats. |
| 63 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. | 55 void resizeTo([Default=Undefined] optional float width, [Default=Undefined]
optional float height); // FIXME: this should take longs not floats. |
| 64 | 56 |
| 65 // Self referential attributes | 57 // Self referential attributes |
| 66 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; | |
| 67 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; | 58 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; |
| 68 | 59 |
| 69 // DOM Level 2 AbstractView Interface | 60 // DOM Level 2 AbstractView Interface |
| 70 readonly attribute Document document; | 61 readonly attribute Document document; |
| 71 | 62 |
| 72 // CSSOM View Module | 63 // CSSOM View Module |
| 73 MediaQueryList matchMedia(DOMString query); | 64 MediaQueryList matchMedia(DOMString query); |
| 74 | 65 |
| 75 // styleMedia has been removed from the CSSOM View specification. | |
| 76 readonly attribute StyleMedia styleMedia; | |
| 77 | |
| 78 // DOM Level 2 Style Interface | 66 // DOM Level 2 Style Interface |
| 79 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement); | 67 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement); |
| 80 | 68 |
| 81 [Replaceable] readonly attribute double devicePixelRatio; | 69 [Replaceable] readonly attribute double devicePixelRatio; |
| 82 | 70 |
| 83 // This is the interface orientation in degrees. Some examples are: | 71 // This is the interface orientation in degrees. Some examples are: |
| 84 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 72 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 85 // 90 is when rotated counter clockwise. | 73 // 90 is when rotated counter clockwise. |
| 86 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; | 74 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; |
| 87 | 75 |
| 88 [Replaceable] readonly attribute Console console; | 76 [Replaceable] readonly attribute Console console; |
| 89 | 77 |
| 90 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 78 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
| 91 void cancelAnimationFrame(long id); | 79 void cancelAnimationFrame(long id); |
| 92 | 80 |
| 93 [Replaceable] readonly attribute CSS CSS; | 81 [Replaceable] readonly attribute CSS CSS; |
| 94 | 82 |
| 95 // window.toString() requires special handling in V8 | 83 // window.toString() requires special handling in V8 |
| 96 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; | 84 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; |
| 97 | 85 |
| 98 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. | 86 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. |
| 99 [Custom, NotEnumerable] getter Window (DOMString name); | 87 [Custom, NotEnumerable] getter Window (DOMString name); |
| 100 }; | 88 }; |
| 101 | 89 |
| 102 Window implements WindowBase64; | 90 Window implements WindowBase64; |
| 103 Window implements WindowTimers; | 91 Window implements WindowTimers; |
| OLD | NEW |