| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _StorageWrappingImplementation extends DOMWrapperBase implements Storage { | |
| 8 _StorageWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__StorageWrappingImplementation() native { | |
| 11 return new _StorageWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 int get length() { return _get_length(this); } | |
| 15 static int _get_length(var _this) native; | |
| 16 | |
| 17 void clear() { | |
| 18 _clear(this); | |
| 19 return; | |
| 20 } | |
| 21 static void _clear(receiver) native; | |
| 22 | |
| 23 String getItem(String key) { | |
| 24 return _getItem(this, key); | |
| 25 } | |
| 26 static String _getItem(receiver, key) native; | |
| 27 | |
| 28 String key(int index) { | |
| 29 return _key(this, index); | |
| 30 } | |
| 31 static String _key(receiver, index) native; | |
| 32 | |
| 33 void removeItem(String key) { | |
| 34 _removeItem(this, key); | |
| 35 return; | |
| 36 } | |
| 37 static void _removeItem(receiver, key) native; | |
| 38 | |
| 39 void setItem(String key, String data) { | |
| 40 _setItem(this, key, data); | |
| 41 return; | |
| 42 } | |
| 43 static void _setItem(receiver, key, data) native; | |
| 44 | |
| 45 String get typeName() { return "Storage"; } | |
| 46 } | |
| OLD | NEW |