| 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 _HTMLMediaElementWrappingImplementation extends _HTMLElementWrappingImplem
entation implements HTMLMediaElement { | 7 class _HTMLMediaElementWrappingImplementation extends _HTMLElementWrappingImplem
entation implements HTMLMediaElement { |
| 8 _HTMLMediaElementWrappingImplementation() : super() {} | 8 _HTMLMediaElementWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__HTMLMediaElementWrappingImplementation() native { | 10 static create__HTMLMediaElementWrappingImplementation() native { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 bool get webkitClosedCaptionsVisible() { return _get_webkitClosedCaptionsVisib
le(this); } | 122 bool get webkitClosedCaptionsVisible() { return _get_webkitClosedCaptionsVisib
le(this); } |
| 123 static bool _get_webkitClosedCaptionsVisible(var _this) native; | 123 static bool _get_webkitClosedCaptionsVisible(var _this) native; |
| 124 | 124 |
| 125 void set webkitClosedCaptionsVisible(bool value) { _set_webkitClosedCaptionsVi
sible(this, value); } | 125 void set webkitClosedCaptionsVisible(bool value) { _set_webkitClosedCaptionsVi
sible(this, value); } |
| 126 static void _set_webkitClosedCaptionsVisible(var _this, bool value) native; | 126 static void _set_webkitClosedCaptionsVisible(var _this, bool value) native; |
| 127 | 127 |
| 128 bool get webkitHasClosedCaptions() { return _get_webkitHasClosedCaptions(this)
; } | 128 bool get webkitHasClosedCaptions() { return _get_webkitHasClosedCaptions(this)
; } |
| 129 static bool _get_webkitHasClosedCaptions(var _this) native; | 129 static bool _get_webkitHasClosedCaptions(var _this) native; |
| 130 | 130 |
| 131 String get webkitMediaSourceURL() { return _get_webkitMediaSourceURL(this); } |
| 132 static String _get_webkitMediaSourceURL(var _this) native; |
| 133 |
| 131 bool get webkitPreservesPitch() { return _get_webkitPreservesPitch(this); } | 134 bool get webkitPreservesPitch() { return _get_webkitPreservesPitch(this); } |
| 132 static bool _get_webkitPreservesPitch(var _this) native; | 135 static bool _get_webkitPreservesPitch(var _this) native; |
| 133 | 136 |
| 134 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } | 137 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } |
| 135 static void _set_webkitPreservesPitch(var _this, bool value) native; | 138 static void _set_webkitPreservesPitch(var _this, bool value) native; |
| 136 | 139 |
| 140 int get webkitSourceState() { return _get_webkitSourceState(this); } |
| 141 static int _get_webkitSourceState(var _this) native; |
| 142 |
| 137 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } | 143 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } |
| 138 static int _get_webkitVideoDecodedByteCount(var _this) native; | 144 static int _get_webkitVideoDecodedByteCount(var _this) native; |
| 139 | 145 |
| 146 TextTrack addTrack(String kind, [String label = null, String language = null])
{ |
| 147 if (label === null) { |
| 148 if (language === null) { |
| 149 return _addTrack(this, kind); |
| 150 } |
| 151 } else { |
| 152 if (language === null) { |
| 153 return _addTrack_2(this, kind, label); |
| 154 } else { |
| 155 return _addTrack_3(this, kind, label, language); |
| 156 } |
| 157 } |
| 158 throw "Incorrect number or type of arguments"; |
| 159 } |
| 160 static TextTrack _addTrack(receiver, kind) native; |
| 161 static TextTrack _addTrack_2(receiver, kind, label) native; |
| 162 static TextTrack _addTrack_3(receiver, kind, label, language) native; |
| 163 |
| 140 String canPlayType(String type) { | 164 String canPlayType(String type) { |
| 141 return _canPlayType(this, type); | 165 return _canPlayType(this, type); |
| 142 } | 166 } |
| 143 static String _canPlayType(receiver, type) native; | 167 static String _canPlayType(receiver, type) native; |
| 144 | 168 |
| 145 void load() { | 169 void load() { |
| 146 _load(this); | 170 _load(this); |
| 147 return; | 171 return; |
| 148 } | 172 } |
| 149 static void _load(receiver) native; | 173 static void _load(receiver) native; |
| 150 | 174 |
| 151 void pause() { | 175 void pause() { |
| 152 _pause(this); | 176 _pause(this); |
| 153 return; | 177 return; |
| 154 } | 178 } |
| 155 static void _pause(receiver) native; | 179 static void _pause(receiver) native; |
| 156 | 180 |
| 157 void play() { | 181 void play() { |
| 158 _play(this); | 182 _play(this); |
| 159 return; | 183 return; |
| 160 } | 184 } |
| 161 static void _play(receiver) native; | 185 static void _play(receiver) native; |
| 162 | 186 |
| 187 void webkitSourceAppend(Uint8Array data) { |
| 188 _webkitSourceAppend(this, data); |
| 189 return; |
| 190 } |
| 191 static void _webkitSourceAppend(receiver, data) native; |
| 192 |
| 193 void webkitSourceEndOfStream(int status) { |
| 194 _webkitSourceEndOfStream(this, status); |
| 195 return; |
| 196 } |
| 197 static void _webkitSourceEndOfStream(receiver, status) native; |
| 198 |
| 163 String get typeName() { return "HTMLMediaElement"; } | 199 String get typeName() { return "HTMLMediaElement"; } |
| 164 } | 200 } |
| OLD | NEW |