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

Unified Diff: lib/html/dartium/html_dartium.dart

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:
Download patch
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index dfe5957191db7b9f31f649ace41ebe4a3fed4650..85241e6662282f475213626a40663630ddb1208c 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -39018,6 +39018,19 @@ interface WheelEvent extends MouseEvent {
interface Window extends EventTarget {
/**
+ * 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);
+
+ /**
+ * 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.

Powered by Google App Engine
This is Rietveld 408576698