| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _TextTrackWrappingImplementation extends DOMWrapperBase implements TextTra
ck { | 7 class _TextTrackWrappingImplementation extends DOMWrapperBase implements TextTra
ck { |
| 8 _TextTrackWrappingImplementation() : super() {} | 8 _TextTrackWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__TextTrackWrappingImplementation() native { | 10 static create__TextTrackWrappingImplementation() native { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 String get language() { return _get_language(this); } | 26 String get language() { return _get_language(this); } |
| 27 static String _get_language(var _this) native; | 27 static String _get_language(var _this) native; |
| 28 | 28 |
| 29 int get mode() { return _get_mode(this); } | 29 int get mode() { return _get_mode(this); } |
| 30 static int _get_mode(var _this) native; | 30 static int _get_mode(var _this) native; |
| 31 | 31 |
| 32 void set mode(int value) { _set_mode(this, value); } | 32 void set mode(int value) { _set_mode(this, value); } |
| 33 static void _set_mode(var _this, int value) native; | 33 static void _set_mode(var _this, int value) native; |
| 34 | 34 |
| 35 EventListener get oncuechange() { return _get_oncuechange(this); } | 35 int get readyState() { return _get_readyState(this); } |
| 36 static EventListener _get_oncuechange(var _this) native; | 36 static int _get_readyState(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 | 37 |
| 41 void addCue(TextTrackCue cue) { | 38 void addCue(TextTrackCue cue) { |
| 42 _addCue(this, cue); | 39 _addCue(this, cue); |
| 43 return; | 40 return; |
| 44 } | 41 } |
| 45 static void _addCue(receiver, cue) native; | 42 static void _addCue(receiver, cue) native; |
| 46 | 43 |
| 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) { | 44 void removeCue(TextTrackCue cue) { |
| 65 _removeCue(this, cue); | 45 _removeCue(this, cue); |
| 66 return; | 46 return; |
| 67 } | 47 } |
| 68 static void _removeCue(receiver, cue) native; | 48 static void _removeCue(receiver, cue) native; |
| 69 | 49 |
| 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"; } | 50 String get typeName() { return "TextTrack"; } |
| 83 } | 51 } |
| OLD | NEW |