| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class StorageJs extends DOMTypeJs implements Storage native "*Storage" { | 5 class _StorageJs extends _DOMTypeJs implements Storage native "*Storage" { |
| 6 | 6 |
| 7 int get length() native "return this.length;"; | 7 int get length() native "return this.length;"; |
| 8 | 8 |
| 9 void clear() native; | 9 void clear() native; |
| 10 | 10 |
| 11 String getItem(String key) native; | 11 String getItem(String key) native; |
| 12 | 12 |
| 13 String key(int index) native; | 13 String key(int index) native; |
| 14 | 14 |
| 15 void removeItem(String key) native; | 15 void removeItem(String key) native; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 void set dartObjectLocalStorage(var value) native """ | 33 void set dartObjectLocalStorage(var value) native """ |
| 34 if (this === window.localStorage) | 34 if (this === window.localStorage) |
| 35 window._dartLocalStorageLocalStorage = value; | 35 window._dartLocalStorageLocalStorage = value; |
| 36 else if (this === window.sessionStorage) | 36 else if (this === window.sessionStorage) |
| 37 window._dartSessionStorageLocalStorage = value; | 37 window._dartSessionStorageLocalStorage = value; |
| 38 else | 38 else |
| 39 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); | 39 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); |
| 40 """ { throw new UnsupportedOperationException(''); } | 40 """ { throw new UnsupportedOperationException(''); } |
| 41 } | 41 } |
| OLD | NEW |