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

Side by Side Diff: client/html/generated/html/dartium/TextTrackList.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 _TextTrackListImpl extends _DOMTypeBase implements TextTrackList {
3 _TextTrackListImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get length() => _wrap(_ptr.length);
6
7 EventListener get onaddtrack() => _wrap(_ptr.onaddtrack);
8
9 void set onaddtrack(EventListener value) { _ptr.onaddtrack = _unwrap(value); }
10
11 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
12 if (useCapture === null) {
13 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
14 return;
15 } else {
16 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture ));
17 return;
18 }
19 }
20
21 bool dispatchEvent(Event evt) {
22 return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
23 }
24
25 TextTrack item(int index) {
26 return _wrap(_ptr.item(_unwrap(index)));
27 }
28
29 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
30 if (useCapture === null) {
31 _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
32 return;
33 } else {
34 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt ure));
35 return;
36 }
37 }
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698