| 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 _HTMLMediaElementWrappingImplementation extends _HTMLElementWrappingImplem
entation implements HTMLMediaElement { | |
| 8 _HTMLMediaElementWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__HTMLMediaElementWrappingImplementation() native { | |
| 11 return new _HTMLMediaElementWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 bool get autoplay() { return _get_autoplay(this); } | |
| 15 static bool _get_autoplay(var _this) native; | |
| 16 | |
| 17 void set autoplay(bool value) { _set_autoplay(this, value); } | |
| 18 static void _set_autoplay(var _this, bool value) native; | |
| 19 | |
| 20 TimeRanges get buffered() { return _get_buffered(this); } | |
| 21 static TimeRanges _get_buffered(var _this) native; | |
| 22 | |
| 23 MediaController get controller() { return _get_controller(this); } | |
| 24 static MediaController _get_controller(var _this) native; | |
| 25 | |
| 26 void set controller(MediaController value) { _set_controller(this, value); } | |
| 27 static void _set_controller(var _this, MediaController value) native; | |
| 28 | |
| 29 bool get controls() { return _get_controls(this); } | |
| 30 static bool _get_controls(var _this) native; | |
| 31 | |
| 32 void set controls(bool value) { _set_controls(this, value); } | |
| 33 static void _set_controls(var _this, bool value) native; | |
| 34 | |
| 35 String get currentSrc() { return _get_currentSrc(this); } | |
| 36 static String _get_currentSrc(var _this) native; | |
| 37 | |
| 38 num get currentTime() { return _get_currentTime(this); } | |
| 39 static num _get_currentTime(var _this) native; | |
| 40 | |
| 41 void set currentTime(num value) { _set_currentTime(this, value); } | |
| 42 static void _set_currentTime(var _this, num value) native; | |
| 43 | |
| 44 bool get defaultMuted() { return _get_defaultMuted(this); } | |
| 45 static bool _get_defaultMuted(var _this) native; | |
| 46 | |
| 47 void set defaultMuted(bool value) { _set_defaultMuted(this, value); } | |
| 48 static void _set_defaultMuted(var _this, bool value) native; | |
| 49 | |
| 50 num get defaultPlaybackRate() { return _get_defaultPlaybackRate(this); } | |
| 51 static num _get_defaultPlaybackRate(var _this) native; | |
| 52 | |
| 53 void set defaultPlaybackRate(num value) { _set_defaultPlaybackRate(this, value
); } | |
| 54 static void _set_defaultPlaybackRate(var _this, num value) native; | |
| 55 | |
| 56 num get duration() { return _get_duration(this); } | |
| 57 static num _get_duration(var _this) native; | |
| 58 | |
| 59 bool get ended() { return _get_ended(this); } | |
| 60 static bool _get_ended(var _this) native; | |
| 61 | |
| 62 MediaError get error() { return _get_error(this); } | |
| 63 static MediaError _get_error(var _this) native; | |
| 64 | |
| 65 num get initialTime() { return _get_initialTime(this); } | |
| 66 static num _get_initialTime(var _this) native; | |
| 67 | |
| 68 bool get loop() { return _get_loop(this); } | |
| 69 static bool _get_loop(var _this) native; | |
| 70 | |
| 71 void set loop(bool value) { _set_loop(this, value); } | |
| 72 static void _set_loop(var _this, bool value) native; | |
| 73 | |
| 74 String get mediaGroup() { return _get_mediaGroup(this); } | |
| 75 static String _get_mediaGroup(var _this) native; | |
| 76 | |
| 77 void set mediaGroup(String value) { _set_mediaGroup(this, value); } | |
| 78 static void _set_mediaGroup(var _this, String value) native; | |
| 79 | |
| 80 bool get muted() { return _get_muted(this); } | |
| 81 static bool _get_muted(var _this) native; | |
| 82 | |
| 83 void set muted(bool value) { _set_muted(this, value); } | |
| 84 static void _set_muted(var _this, bool value) native; | |
| 85 | |
| 86 int get networkState() { return _get_networkState(this); } | |
| 87 static int _get_networkState(var _this) native; | |
| 88 | |
| 89 bool get paused() { return _get_paused(this); } | |
| 90 static bool _get_paused(var _this) native; | |
| 91 | |
| 92 num get playbackRate() { return _get_playbackRate(this); } | |
| 93 static num _get_playbackRate(var _this) native; | |
| 94 | |
| 95 void set playbackRate(num value) { _set_playbackRate(this, value); } | |
| 96 static void _set_playbackRate(var _this, num value) native; | |
| 97 | |
| 98 TimeRanges get played() { return _get_played(this); } | |
| 99 static TimeRanges _get_played(var _this) native; | |
| 100 | |
| 101 String get preload() { return _get_preload(this); } | |
| 102 static String _get_preload(var _this) native; | |
| 103 | |
| 104 void set preload(String value) { _set_preload(this, value); } | |
| 105 static void _set_preload(var _this, String value) native; | |
| 106 | |
| 107 int get readyState() { return _get_readyState(this); } | |
| 108 static int _get_readyState(var _this) native; | |
| 109 | |
| 110 TimeRanges get seekable() { return _get_seekable(this); } | |
| 111 static TimeRanges _get_seekable(var _this) native; | |
| 112 | |
| 113 bool get seeking() { return _get_seeking(this); } | |
| 114 static bool _get_seeking(var _this) native; | |
| 115 | |
| 116 String get src() { return _get_src(this); } | |
| 117 static String _get_src(var _this) native; | |
| 118 | |
| 119 void set src(String value) { _set_src(this, value); } | |
| 120 static void _set_src(var _this, String value) native; | |
| 121 | |
| 122 num get startTime() { return _get_startTime(this); } | |
| 123 static num _get_startTime(var _this) native; | |
| 124 | |
| 125 TextTrackList get textTracks() { return _get_textTracks(this); } | |
| 126 static TextTrackList _get_textTracks(var _this) native; | |
| 127 | |
| 128 num get volume() { return _get_volume(this); } | |
| 129 static num _get_volume(var _this) native; | |
| 130 | |
| 131 void set volume(num value) { _set_volume(this, value); } | |
| 132 static void _set_volume(var _this, num value) native; | |
| 133 | |
| 134 int get webkitAudioDecodedByteCount() { return _get_webkitAudioDecodedByteCoun
t(this); } | |
| 135 static int _get_webkitAudioDecodedByteCount(var _this) native; | |
| 136 | |
| 137 bool get webkitClosedCaptionsVisible() { return _get_webkitClosedCaptionsVisib
le(this); } | |
| 138 static bool _get_webkitClosedCaptionsVisible(var _this) native; | |
| 139 | |
| 140 void set webkitClosedCaptionsVisible(bool value) { _set_webkitClosedCaptionsVi
sible(this, value); } | |
| 141 static void _set_webkitClosedCaptionsVisible(var _this, bool value) native; | |
| 142 | |
| 143 bool get webkitHasClosedCaptions() { return _get_webkitHasClosedCaptions(this)
; } | |
| 144 static bool _get_webkitHasClosedCaptions(var _this) native; | |
| 145 | |
| 146 String get webkitMediaSourceURL() { return _get_webkitMediaSourceURL(this); } | |
| 147 static String _get_webkitMediaSourceURL(var _this) native; | |
| 148 | |
| 149 bool get webkitPreservesPitch() { return _get_webkitPreservesPitch(this); } | |
| 150 static bool _get_webkitPreservesPitch(var _this) native; | |
| 151 | |
| 152 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } | |
| 153 static void _set_webkitPreservesPitch(var _this, bool value) native; | |
| 154 | |
| 155 int get webkitSourceState() { return _get_webkitSourceState(this); } | |
| 156 static int _get_webkitSourceState(var _this) native; | |
| 157 | |
| 158 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } | |
| 159 static int _get_webkitVideoDecodedByteCount(var _this) native; | |
| 160 | |
| 161 TextTrack addTextTrack(String kind, [String label = null, String language = nu
ll]) { | |
| 162 if (label === null) { | |
| 163 if (language === null) { | |
| 164 return _addTextTrack(this, kind); | |
| 165 } | |
| 166 } else { | |
| 167 if (language === null) { | |
| 168 return _addTextTrack_2(this, kind, label); | |
| 169 } else { | |
| 170 return _addTextTrack_3(this, kind, label, language); | |
| 171 } | |
| 172 } | |
| 173 throw "Incorrect number or type of arguments"; | |
| 174 } | |
| 175 static TextTrack _addTextTrack(receiver, kind) native; | |
| 176 static TextTrack _addTextTrack_2(receiver, kind, label) native; | |
| 177 static TextTrack _addTextTrack_3(receiver, kind, label, language) native; | |
| 178 | |
| 179 String canPlayType(String type) { | |
| 180 return _canPlayType(this, type); | |
| 181 } | |
| 182 static String _canPlayType(receiver, type) native; | |
| 183 | |
| 184 void load() { | |
| 185 _load(this); | |
| 186 return; | |
| 187 } | |
| 188 static void _load(receiver) native; | |
| 189 | |
| 190 void pause() { | |
| 191 _pause(this); | |
| 192 return; | |
| 193 } | |
| 194 static void _pause(receiver) native; | |
| 195 | |
| 196 void play() { | |
| 197 _play(this); | |
| 198 return; | |
| 199 } | |
| 200 static void _play(receiver) native; | |
| 201 | |
| 202 void webkitSourceAppend(Uint8Array data) { | |
| 203 _webkitSourceAppend(this, data); | |
| 204 return; | |
| 205 } | |
| 206 static void _webkitSourceAppend(receiver, data) native; | |
| 207 | |
| 208 void webkitSourceEndOfStream(int status) { | |
| 209 _webkitSourceEndOfStream(this, status); | |
| 210 return; | |
| 211 } | |
| 212 static void _webkitSourceEndOfStream(receiver, status) native; | |
| 213 | |
| 214 String get typeName() { return "HTMLMediaElement"; } | |
| 215 } | |
| OLD | NEW |