Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Unified Diff: lib/html/templates/html/dartium/impl_LocalWindow.darttemplate

Issue 11365019: Merging dart:html interfaces and implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding generated files. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698