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 _MediaStreamWrappingImplementation extends DOMWrapperBase implements Media
Stream { |
| 8 _MediaStreamWrappingImplementation() : super() {} |
| 9 |
| 10 static create__MediaStreamWrappingImplementation() native { |
| 11 return new _MediaStreamWrappingImplementation(); |
| 12 } |
| 13 |
| 14 MediaStreamTrackList get audioTracks() { return _get_audioTracks(this); } |
| 15 static MediaStreamTrackList _get_audioTracks(var _this) native; |
| 16 |
| 17 String get label() { return _get_label(this); } |
| 18 static String _get_label(var _this) native; |
| 19 |
| 20 EventListener get onended() { return _get_onended(this); } |
| 21 static EventListener _get_onended(var _this) native; |
| 22 |
| 23 void set onended(EventListener value) { _set_onended(this, value); } |
| 24 static void _set_onended(var _this, EventListener value) native; |
| 25 |
| 26 int get readyState() { return _get_readyState(this); } |
| 27 static int _get_readyState(var _this) native; |
| 28 |
| 29 MediaStreamTrackList get videoTracks() { return _get_videoTracks(this); } |
| 30 static MediaStreamTrackList _get_videoTracks(var _this) native; |
| 31 |
| 32 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 33 if (useCapture === null) { |
| 34 _addEventListener(this, type, listener); |
| 35 return; |
| 36 } else { |
| 37 _addEventListener_2(this, type, listener, useCapture); |
| 38 return; |
| 39 } |
| 40 } |
| 41 static void _addEventListener(receiver, type, listener) native; |
| 42 static void _addEventListener_2(receiver, type, listener, useCapture) native; |
| 43 |
| 44 bool dispatchEvent(Event event) { |
| 45 return _dispatchEvent(this, event); |
| 46 } |
| 47 static bool _dispatchEvent(receiver, event) native; |
| 48 |
| 49 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { |
| 50 if (useCapture === null) { |
| 51 _removeEventListener(this, type, listener); |
| 52 return; |
| 53 } else { |
| 54 _removeEventListener_2(this, type, listener, useCapture); |
| 55 return; |
| 56 } |
| 57 } |
| 58 static void _removeEventListener(receiver, type, listener) native; |
| 59 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; |
| 60 |
| 61 String get typeName() { return "MediaStream"; } |
| 62 } |
OLD | NEW |