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

Side by Side Diff: client/html/generated/html/dartium/Storage.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _StorageImpl extends _DOMTypeBase implements Storage {
3 _StorageImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get length() => _wrap(_ptr.length);
6
7 void clear() {
8 _ptr.clear();
9 return;
10 }
11
12 String getItem(String key) {
13 return _wrap(_ptr.getItem(_unwrap(key)));
14 }
15
16 String key(int index) {
17 return _wrap(_ptr.key(_unwrap(index)));
18 }
19
20 void removeItem(String key) {
21 _ptr.removeItem(_unwrap(key));
22 return;
23 }
24
25 void setItem(String key, String data) {
26 _ptr.setItem(_unwrap(key), _unwrap(data));
27 return;
28 }
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698