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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } | 152 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } |
153 static void _set_webkitPreservesPitch(var _this, bool value) native; | 153 static void _set_webkitPreservesPitch(var _this, bool value) native; |
154 | 154 |
155 int get webkitSourceState() { return _get_webkitSourceState(this); } | 155 int get webkitSourceState() { return _get_webkitSourceState(this); } |
156 static int _get_webkitSourceState(var _this) native; | 156 static int _get_webkitSourceState(var _this) native; |
157 | 157 |
158 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } | 158 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } |
159 static int _get_webkitVideoDecodedByteCount(var _this) native; | 159 static int _get_webkitVideoDecodedByteCount(var _this) native; |
160 | 160 |
161 TextTrack addTrack(String kind, [String label = null, String language = null])
{ | 161 TextTrack addTextTrack(String kind, [String label = null, String language = nu
ll]) { |
162 if (label === null) { | 162 if (label === null) { |
163 if (language === null) { | 163 if (language === null) { |
164 return _addTrack(this, kind); | 164 return _addTextTrack(this, kind); |
165 } | 165 } |
166 } else { | 166 } else { |
167 if (language === null) { | 167 if (language === null) { |
168 return _addTrack_2(this, kind, label); | 168 return _addTextTrack_2(this, kind, label); |
169 } else { | 169 } else { |
170 return _addTrack_3(this, kind, label, language); | 170 return _addTextTrack_3(this, kind, label, language); |
171 } | 171 } |
172 } | 172 } |
173 throw "Incorrect number or type of arguments"; | 173 throw "Incorrect number or type of arguments"; |
174 } | 174 } |
175 static TextTrack _addTrack(receiver, kind) native; | 175 static TextTrack _addTextTrack(receiver, kind) native; |
176 static TextTrack _addTrack_2(receiver, kind, label) native; | 176 static TextTrack _addTextTrack_2(receiver, kind, label) native; |
177 static TextTrack _addTrack_3(receiver, kind, label, language) native; | 177 static TextTrack _addTextTrack_3(receiver, kind, label, language) native; |
178 | 178 |
179 String canPlayType(String type) { | 179 String canPlayType(String type) { |
180 return _canPlayType(this, type); | 180 return _canPlayType(this, type); |
181 } | 181 } |
182 static String _canPlayType(receiver, type) native; | 182 static String _canPlayType(receiver, type) native; |
183 | 183 |
184 void load() { | 184 void load() { |
185 _load(this); | 185 _load(this); |
186 return; | 186 return; |
187 } | 187 } |
(...skipping 18 matching lines...) Expand all Loading... |
206 static void _webkitSourceAppend(receiver, data) native; | 206 static void _webkitSourceAppend(receiver, data) native; |
207 | 207 |
208 void webkitSourceEndOfStream(int status) { | 208 void webkitSourceEndOfStream(int status) { |
209 _webkitSourceEndOfStream(this, status); | 209 _webkitSourceEndOfStream(this, status); |
210 return; | 210 return; |
211 } | 211 } |
212 static void _webkitSourceEndOfStream(receiver, status) native; | 212 static void _webkitSourceEndOfStream(receiver, status) native; |
213 | 213 |
214 String get typeName() { return "HTMLMediaElement"; } | 214 String get typeName() { return "HTMLMediaElement"; } |
215 } | 215 } |
OLD | NEW |