| 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 _TextTrackCueWrappingImplementation extends DOMWrapperBase implements Text
TrackCue { | 7 class _TextTrackCueWrappingImplementation extends DOMWrapperBase implements Text
TrackCue { |
| 8 _TextTrackCueWrappingImplementation() : super() {} | 8 _TextTrackCueWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__TextTrackCueWrappingImplementation() native { | 10 static create__TextTrackCueWrappingImplementation() native { |
| 11 return new _TextTrackCueWrappingImplementation(); | 11 return new _TextTrackCueWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 String get alignment() { return _get_alignment(this); } | 14 String get alignment() { return _get_alignment(this); } |
| 15 static String _get_alignment(var _this) native; | 15 static String _get_alignment(var _this) native; |
| 16 | 16 |
| 17 String get direction() { return _get_direction(this); } | 17 String get direction() { return _get_direction(this); } |
| 18 static String _get_direction(var _this) native; | 18 static String _get_direction(var _this) native; |
| 19 | 19 |
| 20 num get endTime() { return _get_endTime(this); } | 20 num get endTime() { return _get_endTime(this); } |
| 21 static num _get_endTime(var _this) native; | 21 static num _get_endTime(var _this) native; |
| 22 | 22 |
| 23 String get id() { return _get_id(this); } | 23 String get id() { return _get_id(this); } |
| 24 static String _get_id(var _this) native; | 24 static String _get_id(var _this) native; |
| 25 | 25 |
| 26 int get linePosition() { return _get_linePosition(this); } | 26 int get linePosition() { return _get_linePosition(this); } |
| 27 static int _get_linePosition(var _this) native; | 27 static int _get_linePosition(var _this) native; |
| 28 | 28 |
| 29 EventListener get onenter() { return _get_onenter(this); } | |
| 30 static EventListener _get_onenter(var _this) native; | |
| 31 | |
| 32 void set onenter(EventListener value) { _set_onenter(this, value); } | |
| 33 static void _set_onenter(var _this, EventListener value) native; | |
| 34 | |
| 35 EventListener get onexit() { return _get_onexit(this); } | |
| 36 static EventListener _get_onexit(var _this) native; | |
| 37 | |
| 38 void set onexit(EventListener value) { _set_onexit(this, value); } | |
| 39 static void _set_onexit(var _this, EventListener value) native; | |
| 40 | |
| 41 bool get pauseOnExit() { return _get_pauseOnExit(this); } | 29 bool get pauseOnExit() { return _get_pauseOnExit(this); } |
| 42 static bool _get_pauseOnExit(var _this) native; | 30 static bool _get_pauseOnExit(var _this) native; |
| 43 | 31 |
| 44 int get size() { return _get_size(this); } | 32 int get size() { return _get_size(this); } |
| 45 static int _get_size(var _this) native; | 33 static int _get_size(var _this) native; |
| 46 | 34 |
| 47 bool get snapToLines() { return _get_snapToLines(this); } | 35 bool get snapToLines() { return _get_snapToLines(this); } |
| 48 static bool _get_snapToLines(var _this) native; | 36 static bool _get_snapToLines(var _this) native; |
| 49 | 37 |
| 50 num get startTime() { return _get_startTime(this); } | 38 num get startTime() { return _get_startTime(this); } |
| 51 static num _get_startTime(var _this) native; | 39 static num _get_startTime(var _this) native; |
| 52 | 40 |
| 53 int get textPosition() { return _get_textPosition(this); } | 41 int get textPosition() { return _get_textPosition(this); } |
| 54 static int _get_textPosition(var _this) native; | 42 static int _get_textPosition(var _this) native; |
| 55 | 43 |
| 56 TextTrack get track() { return _get_track(this); } | 44 TextTrack get track() { return _get_track(this); } |
| 57 static TextTrack _get_track(var _this) native; | 45 static TextTrack _get_track(var _this) native; |
| 58 | 46 |
| 59 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 60 if (useCapture === null) { | |
| 61 _addEventListener(this, type, listener); | |
| 62 return; | |
| 63 } else { | |
| 64 _addEventListener_2(this, type, listener, useCapture); | |
| 65 return; | |
| 66 } | |
| 67 } | |
| 68 static void _addEventListener(receiver, type, listener) native; | |
| 69 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
| 70 | |
| 71 bool dispatchEvent(Event evt) { | |
| 72 return _dispatchEvent(this, evt); | |
| 73 } | |
| 74 static bool _dispatchEvent(receiver, evt) native; | |
| 75 | |
| 76 DocumentFragment getCueAsHTML() { | 47 DocumentFragment getCueAsHTML() { |
| 77 return _getCueAsHTML(this); | 48 return _getCueAsHTML(this); |
| 78 } | 49 } |
| 79 static DocumentFragment _getCueAsHTML(receiver) native; | 50 static DocumentFragment _getCueAsHTML(receiver) native; |
| 80 | 51 |
| 81 String getCueAsSource() { | 52 String getCueAsSource() { |
| 82 return _getCueAsSource(this); | 53 return _getCueAsSource(this); |
| 83 } | 54 } |
| 84 static String _getCueAsSource(receiver) native; | 55 static String _getCueAsSource(receiver) native; |
| 85 | 56 |
| 86 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 87 if (useCapture === null) { | |
| 88 _removeEventListener(this, type, listener); | |
| 89 return; | |
| 90 } else { | |
| 91 _removeEventListener_2(this, type, listener, useCapture); | |
| 92 return; | |
| 93 } | |
| 94 } | |
| 95 static void _removeEventListener(receiver, type, listener) native; | |
| 96 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 97 | |
| 98 String get typeName() { return "TextTrackCue"; } | 57 String get typeName() { return "TextTrackCue"; } |
| 99 } | 58 } |
| OLD | NEW |