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

Unified Diff: lib/dom/templates/html/interface/interface_Window.darttemplate

Issue 10689150: Add registerPort / lookupPort to generated interfaces with documentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/interface/interface_Window.darttemplate
diff --git a/lib/dom/templates/html/interface/interface_Window.darttemplate b/lib/dom/templates/html/interface/interface_Window.darttemplate
index cc575b1c3c1f450f7b5d2d11bb65db13e60f8c3d..2cce70016a5bd7871585fbe8022f493ece59a2a1 100644
--- a/lib/dom/templates/html/interface/interface_Window.darttemplate
+++ b/lib/dom/templates/html/interface/interface_Window.darttemplate
@@ -8,6 +8,19 @@ $!COMMENT
interface $ID$EXTENDS {
/**
+ * 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.
+ */
+ 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)
+
+ /**
+ * Lookup a port by its [name]. Return null if no port is
+ * registered under [name].
+ */
+ SendPortSync lookupPort(String name);
+
+ /**
* 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.
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698