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 _TextTrackListWrappingImplementation extends DOMWrapperBase implements Tex
tTrackList { | |
8 _TextTrackListWrappingImplementation() : super() {} | |
9 | |
10 static create__TextTrackListWrappingImplementation() native { | |
11 return new _TextTrackListWrappingImplementation(); | |
12 } | |
13 | |
14 int get length() { return _get_length(this); } | |
15 static int _get_length(var _this) native; | |
16 | |
17 EventListener get onaddtrack() { return _get_onaddtrack(this); } | |
18 static EventListener _get_onaddtrack(var _this) native; | |
19 | |
20 void set onaddtrack(EventListener value) { _set_onaddtrack(this, value); } | |
21 static void _set_onaddtrack(var _this, EventListener value) native; | |
22 | |
23 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
24 if (useCapture === null) { | |
25 _addEventListener(this, type, listener); | |
26 return; | |
27 } else { | |
28 _addEventListener_2(this, type, listener, useCapture); | |
29 return; | |
30 } | |
31 } | |
32 static void _addEventListener(receiver, type, listener) native; | |
33 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
34 | |
35 bool dispatchEvent(Event evt) { | |
36 return _dispatchEvent(this, evt); | |
37 } | |
38 static bool _dispatchEvent(receiver, evt) native; | |
39 | |
40 TextTrack item(int index) { | |
41 return _item(this, index); | |
42 } | |
43 static TextTrack _item(receiver, index) native; | |
44 | |
45 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
46 if (useCapture === null) { | |
47 _removeEventListener(this, type, listener); | |
48 return; | |
49 } else { | |
50 _removeEventListener_2(this, type, listener, useCapture); | |
51 return; | |
52 } | |
53 } | |
54 static void _removeEventListener(receiver, type, listener) native; | |
55 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
56 | |
57 String get typeName() { return "TextTrackList"; } | |
58 } | |
OLD | NEW |