| Index: lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
|
| diff --git a/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate b/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
|
| index ac6f2d15d45450a26acdfe3683a7629910f49c9c..8c7ca0dea791af1b0573863809263954b656e900 100644
|
| --- a/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
|
| +++ b/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate
|
| @@ -4,22 +4,41 @@
|
|
|
| class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
|
|
| + /**
|
| + * Executes a [callback] after the next batch of browser layout measurements
|
| + * has completed or would have completed if any browser layout measurements
|
| + * had been scheduled.
|
| + */
|
| void requestLayoutFrame(TimeoutHandler callback) {
|
| _addMeasurementFrameCallback(callback);
|
| }
|
|
|
| - // TODO(kasperl): Document these.
|
| + /**
|
| + * Lookup a port by its [name]. Return null if no port is
|
| + * registered under [name].
|
| + */
|
| lookupPort(String name) {
|
| var port = JSON.parse(localStorage['dart-port:$name']);
|
| return _deserialize(port);
|
| }
|
|
|
| + /**
|
| + * Register a [port] on this window under the given [name]. This
|
| + * port may be retrieved by any isolate (or JavaScript script)
|
| + * running in this window.
|
| + */
|
| registerPort(String name, var port) {
|
| var serialized = _serialize(port);
|
| localStorage['dart-port:$name'] = JSON.stringify(serialized);
|
| }
|
|
|
| + /**
|
| + * Creates a new object URL for the specified object. The URL will be
|
| + * available until revokeObjectUrl is called.
|
| + * [object] can be a Blob, MediaStream or MediaSource.
|
| + */
|
| String createObjectUrl(object) => DOMURL.createObjectURL(object);
|
| + /** @domName DOMURL.revokeObjectURL */
|
| void revokeObjectUrl(String url) {
|
| DOMURL.revokeObjectURL(url);
|
| }
|
|
|