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

Side by Side Diff: client/html/generated/html/dartium/DOMTokenList.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 _DOMTokenListImpl extends _DOMTypeBase implements DOMTokenList {
3 _DOMTokenListImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get length() => _wrap(_ptr.length);
6
7 void add(String token) {
8 _ptr.add(_unwrap(token));
9 return;
10 }
11
12 bool contains(String token) {
13 return _wrap(_ptr.contains(_unwrap(token)));
14 }
15
16 String item(int index) {
17 return _wrap(_ptr.item(_unwrap(index)));
18 }
19
20 void remove(String token) {
21 _ptr.remove(_unwrap(token));
22 return;
23 }
24
25 String toString() {
26 return _wrap(_ptr.toString());
27 }
28
29 bool toggle(String token) {
30 return _wrap(_ptr.toggle(_unwrap(token)));
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698