Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 $!COMMENT | 7 $!COMMENT |
| 8 interface $ID$EXTENDS { | 8 interface $ID$EXTENDS { |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * Register a [port] on this window under the given [name]. This | |
| 12 * port may be retrieved by any isolate (or JavaScript script) | |
| 13 * running in this window. | |
| 14 */ | |
| 15 void registerPort(String name, SendPortSync port); | |
|
Siggi Cherem (dart-lang)
2012/07/10 23:50:41
should this be registerSyncPort? (do we expect to
vsm
2012/07/10 23:53:24
We do want to allow SendPort (i.e., the async one)
| |
| 16 | |
| 17 /** | |
| 18 * Lookup a port by its [name]. Return null if no port is | |
| 19 * registered under [name]. | |
| 20 */ | |
| 21 SendPortSync lookupPort(String name); | |
| 22 | |
| 23 /** | |
| 11 * Executes a [callback] after the next batch of browser layout measurements | 24 * Executes a [callback] after the next batch of browser layout measurements |
| 12 * has completed or would have completed if any browser layout measurements | 25 * has completed or would have completed if any browser layout measurements |
| 13 * had been scheduled. | 26 * had been scheduled. |
| 14 */ | 27 */ |
| 15 void requestLayoutFrame(TimeoutHandler callback); | 28 void requestLayoutFrame(TimeoutHandler callback); |
| 16 | 29 |
| 17 | 30 |
| 18 /** @domName DOMWindow.webkitRequestAnimationFrame */ | 31 /** @domName DOMWindow.webkitRequestAnimationFrame */ |
| 19 int requestAnimationFrame(RequestAnimationFrameCallback callback); | 32 int requestAnimationFrame(RequestAnimationFrameCallback callback); |
| 20 | 33 |
| 21 void cancelAnimationFrame(int id); | 34 void cancelAnimationFrame(int id); |
| 22 | 35 |
| 23 IDBFactory get indexedDB(); | 36 IDBFactory get indexedDB(); |
| 24 | 37 |
| 25 $!MEMBERS | 38 $!MEMBERS |
| 26 } | 39 } |
| OLD | NEW |