| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // DOM Level 2 AbstractView Interface | 70 // DOM Level 2 AbstractView Interface |
| 71 readonly attribute Document document; | 71 readonly attribute Document document; |
| 72 | 72 |
| 73 // CSSOM View Module | 73 // CSSOM View Module |
| 74 MediaQueryList matchMedia(DOMString query); | 74 MediaQueryList matchMedia(DOMString query); |
| 75 | 75 |
| 76 // styleMedia has been removed from the CSSOM View specification. | 76 // styleMedia has been removed from the CSSOM View specification. |
| 77 readonly attribute StyleMedia styleMedia; | 77 readonly attribute StyleMedia styleMedia; |
| 78 | 78 |
| 79 // DOM Level 2 Style Interface | 79 // DOM Level 2 Style Interface |
| 80 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement, | 80 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el
ement); |
| 81 [TreatUndefinedAs=NullString, Default=U
ndefined] optional DOMString? pseudoElement); | |
| 82 | 81 |
| 83 [Replaceable] readonly attribute double devicePixelRatio; | 82 [Replaceable] readonly attribute double devicePixelRatio; |
| 84 | 83 |
| 85 // This is the interface orientation in degrees. Some examples are: | 84 // This is the interface orientation in degrees. Some examples are: |
| 86 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 85 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 87 // 90 is when rotated counter clockwise. | 86 // 90 is when rotated counter clockwise. |
| 88 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; | 87 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr
ibute long orientation; |
| 89 | 88 |
| 90 [Replaceable] readonly attribute Console console; | 89 [Replaceable] readonly attribute Console console; |
| 91 | 90 |
| 92 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 91 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
| 93 void cancelAnimationFrame(long id); | 92 void cancelAnimationFrame(long id); |
| 94 | 93 |
| 95 [Replaceable] readonly attribute CSS CSS; | 94 [Replaceable] readonly attribute CSS CSS; |
| 96 | 95 |
| 97 // window.toString() requires special handling in V8 | 96 // window.toString() requires special handling in V8 |
| 98 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; | 97 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; |
| 99 | 98 |
| 100 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. | 99 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. |
| 101 [Custom, NotEnumerable] getter Window (DOMString name); | 100 [Custom, NotEnumerable] getter Window (DOMString name); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 Window implements WindowBase64; | 103 Window implements WindowBase64; |
| 105 Window implements WindowTimers; | 104 Window implements WindowTimers; |
| OLD | NEW |