| 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 _TextTrackWrappingImplementation extends DOMWrapperBase implements TextTra
ck { | |
| 8 _TextTrackWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__TextTrackWrappingImplementation() native { | |
| 11 return new _TextTrackWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 TextTrackCueList get activeCues() { return _get_activeCues(this); } | |
| 15 static TextTrackCueList _get_activeCues(var _this) native; | |
| 16 | |
| 17 TextTrackCueList get cues() { return _get_cues(this); } | |
| 18 static TextTrackCueList _get_cues(var _this) native; | |
| 19 | |
| 20 String get kind() { return _get_kind(this); } | |
| 21 static String _get_kind(var _this) native; | |
| 22 | |
| 23 String get label() { return _get_label(this); } | |
| 24 static String _get_label(var _this) native; | |
| 25 | |
| 26 String get language() { return _get_language(this); } | |
| 27 static String _get_language(var _this) native; | |
| 28 | |
| 29 int get mode() { return _get_mode(this); } | |
| 30 static int _get_mode(var _this) native; | |
| 31 | |
| 32 void set mode(int value) { _set_mode(this, value); } | |
| 33 static void _set_mode(var _this, int value) native; | |
| 34 | |
| 35 EventListener get oncuechange() { return _get_oncuechange(this); } | |
| 36 static EventListener _get_oncuechange(var _this) native; | |
| 37 | |
| 38 void set oncuechange(EventListener value) { _set_oncuechange(this, value); } | |
| 39 static void _set_oncuechange(var _this, EventListener value) native; | |
| 40 | |
| 41 void addCue(TextTrackCue cue) { | |
| 42 _addCue(this, cue); | |
| 43 return; | |
| 44 } | |
| 45 static void _addCue(receiver, cue) native; | |
| 46 | |
| 47 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 48 if (useCapture === null) { | |
| 49 _addEventListener(this, type, listener); | |
| 50 return; | |
| 51 } else { | |
| 52 _addEventListener_2(this, type, listener, useCapture); | |
| 53 return; | |
| 54 } | |
| 55 } | |
| 56 static void _addEventListener(receiver, type, listener) native; | |
| 57 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
| 58 | |
| 59 bool dispatchEvent(Event evt) { | |
| 60 return _dispatchEvent(this, evt); | |
| 61 } | |
| 62 static bool _dispatchEvent(receiver, evt) native; | |
| 63 | |
| 64 void removeCue(TextTrackCue cue) { | |
| 65 _removeCue(this, cue); | |
| 66 return; | |
| 67 } | |
| 68 static void _removeCue(receiver, cue) native; | |
| 69 | |
| 70 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 71 if (useCapture === null) { | |
| 72 _removeEventListener(this, type, listener); | |
| 73 return; | |
| 74 } else { | |
| 75 _removeEventListener_2(this, type, listener, useCapture); | |
| 76 return; | |
| 77 } | |
| 78 } | |
| 79 static void _removeEventListener(receiver, type, listener) native; | |
| 80 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 81 | |
| 82 String get typeName() { return "TextTrack"; } | |
| 83 } | |
| OLD | NEW |