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

Unified Diff: dart/tools/dom/templates/html/impl/impl_Window.darttemplate

Issue 57393002: Version 0.8.10.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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
« no previous file with comments | « dart/tools/dom/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/dom/templates/html/impl/impl_Window.darttemplate
===================================================================
--- dart/tools/dom/templates/html/impl/impl_Window.darttemplate (revision 29787)
+++ dart/tools/dom/templates/html/impl/impl_Window.darttemplate (working copy)
@@ -12,39 +12,6 @@
$endif
/**
- * Lookup a port by its [name]. Return null if no port is
- * registered under [name].
- */
- SendPortSync lookupPort(String name) {
- var portStr = document.documentElement.attributes['dart-port:$name'];
- if (portStr == null) {
- return null;
- }
- var port = JSON.decode(portStr);
- 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.
- */
- void registerPort(String name, var port) {
- var serialized = _serialize(port);
- document.documentElement.attributes['dart-port:$name'] =
- JSON.encode(serialized);
- }
-
- /**
- * Deregister 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 deregisterPort(String name) {
- document.documentElement.attributes.remove('dart-port:$name');
- }
-
- /**
* Returns a Future that completes just before the window is about to
* repaint so the user can draw an animation frame.
*
« no previous file with comments | « dart/tools/dom/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698