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

Unified Diff: client/dom/generated/src/frog/Storage.dart

Issue 9138007: Frog DOM changes to support OLS on Storage objects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Some more cleanup Created 8 years, 11 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 | « client/dom/frog/dom_frog.dart ('k') | client/dom/scripts/dartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/generated/src/frog/Storage.dart
diff --git a/client/dom/generated/src/frog/Storage.dart b/client/dom/generated/src/frog/Storage.dart
index 8491c7a067ebede7134e0810140d1c14e642a348..c1165b76da538b2a0f70258998deed9d6a2a8ccb 100644
--- a/client/dom/generated/src/frog/Storage.dart
+++ b/client/dom/generated/src/frog/Storage.dart
@@ -13,7 +13,31 @@ class Storage native "*Storage" {
void setItem(String key, String data) native;
- var dartObjectLocalStorage;
+ var get dartObjectLocalStorage() native """
+
+ if (this === window.localStorage)
+ return window._dartLocalStorageLocalStorage;
+ else if (this === window.sessionStorage)
+ return window._dartSessionStorageLocalStorage;
+ else
+ throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.');
+
+""" {
+ throw new UnsupportedOperationException('');
+ }
+
+ void set dartObjectLocalStorage(var value) native """
+
+ if (this === window.localStorage)
+ window._dartLocalStorageLocalStorage = value;
+ else if (this === window.sessionStorage)
+ window._dartSessionStorageLocalStorage = value;
+ else
+ throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.');
+
+""" {
+ throw new UnsupportedOperationException('');
+ }
String get typeName() native;
}
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/scripts/dartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698