Chromium Code Reviews| Index: client/dom/frog/dom_frog.dart |
| diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart |
| index c4e68a3c49061fd8c99e8e245554efd81959a9b1..c237e86ef4e3ebba4e7494c0fbea143452648041 100644 |
| --- a/client/dom/frog/dom_frog.dart |
| +++ b/client/dom/frog/dom_frog.dart |
| @@ -9121,7 +9121,23 @@ 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.'); |
| +"""; |
|
sra1
2012/01/09 22:20:06
The native method needs a Dart body that reference
vsm
2012/01/10 00:42:00
Done.
|
| + |
| + 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.'); |
| + """; |
| String get typeName() native; |
| } |