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