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

Unified Diff: lib/dom/templates/html/dartium/impl_Window.darttemplate

Issue 10702110: Added Dartium support for JS to Dart PortSync calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed tabbing 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
Index: lib/dom/templates/html/dartium/impl_Window.darttemplate
diff --git a/lib/dom/templates/html/dartium/impl_Window.darttemplate b/lib/dom/templates/html/dartium/impl_Window.darttemplate
index 600b99e7aa65cfcaca87a88a072103c1fa880ad0..123b5908cbd16755362353aa1691c0cd06193e3e 100644
--- a/lib/dom/templates/html/dartium/impl_Window.darttemplate
+++ b/lib/dom/templates/html/dartium/impl_Window.darttemplate
@@ -15,11 +15,16 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
IDBFactory get indexedDB() => webkitIndexedDB;
- // TODO(kasperl): Document this.
+ // TODO(kasperl): Document these.
lookupPort(String name) {
var port = JSON.parse(localStorage['dart-port:$name']);
return _deserialize(port);
}
+ registerPort(String name, var port) {
+ var serialized = _serialize(port);
+ localStorage['dart-port:$name'] = JSON.stringify(serialized);
+ }
+
$!MEMBERS
}
« no previous file with comments | « lib/dom/templates/html/dartium/html_dartium.darttemplate ('k') | lib/dom/templates/html/frog/html_frog.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698