| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // 90 is when rotated counter clockwise. | 154 // 90 is when rotated counter clockwise. |
| 155 [Conditional=ORIENTATION_EVENTS] readonly attribute long orientation; | 155 [Conditional=ORIENTATION_EVENTS] readonly attribute long orientation; |
| 156 | 156 |
| 157 [Replaceable] readonly attribute Console console; | 157 [Replaceable] readonly attribute Console console; |
| 158 | 158 |
| 159 // cross-document messaging | 159 // cross-document messaging |
| 160 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional Array messagePorts); | 160 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr
iptValue message, DOMString targetOrigin, optional Array messagePorts); |
| 161 | 161 |
| 162 [Replaceable] readonly attribute Performance performance; | 162 [Replaceable] readonly attribute Performance performance; |
| 163 | 163 |
| 164 // Timers | |
| 165 [Custom] long setTimeout(any handler, [Default=Undefined] optional long time
out); | |
| 166 void clearTimeout([Default=Undefined] optional long handle); | |
| 167 [Custom] long setInterval(any handler, [Default=Undefined] optional long tim
eout); | |
| 168 void clearInterval([Default=Undefined] optional long handle); | |
| 169 | |
| 170 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); | 164 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque
stAnimationFrameCallback callback); |
| 171 void cancelAnimationFrame(long id); | 165 void cancelAnimationFrame(long id); |
| 172 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R
equestAnimationFrameCallback callback); | 166 [MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(R
equestAnimationFrameCallback callback); |
| 173 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id
); | 167 [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id
); |
| 174 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(
long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove
this when removing vendor prefix. | 168 [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(
long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove
this when removing vendor prefix. |
| 175 | 169 |
| 176 // Base64 | 170 // Base64 |
| 177 [RaisesException] DOMString atob([TreatNullAs=NullString,Default=Undefined]
optional DOMString string); | 171 [RaisesException] DOMString atob([TreatNullAs=NullString,Default=Undefined]
optional DOMString string); |
| 178 [RaisesException] DOMString btoa([TreatNullAs=NullString,Default=Undefined]
optional DOMString string); | 172 [RaisesException] DOMString btoa([TreatNullAs=NullString,Default=Undefined]
optional DOMString string); |
| 179 | 173 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 attribute ShadowRootConstructor WebKitShadowRoot; | 301 attribute ShadowRootConstructor WebKitShadowRoot; |
| 308 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; | 302 [Conditional=WEB_AUDIO] attribute PannerNodeConstructor webkitAudioPannerNod
e; |
| 309 | 303 |
| 310 // window.toString() requires special handling in V8 | 304 // window.toString() requires special handling in V8 |
| 311 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); | 305 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t
oString(); |
| 312 | 306 |
| 313 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); | 307 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned
long index); |
| 314 [Custom, NotEnumerable] getter Window (DOMString name); | 308 [Custom, NotEnumerable] getter Window (DOMString name); |
| 315 }; | 309 }; |
| 316 | 310 |
| 311 Window implements WindowTimers; |
| 312 |
| OLD | NEW |