| 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 _MediaControllerWrappingImplementation extends DOMWrapperBase implements M
ediaController { | |
| 8 _MediaControllerWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__MediaControllerWrappingImplementation() native { | |
| 11 return new _MediaControllerWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 TimeRanges get buffered() { return _get_buffered(this); } | |
| 15 static TimeRanges _get_buffered(var _this) native; | |
| 16 | |
| 17 num get currentTime() { return _get_currentTime(this); } | |
| 18 static num _get_currentTime(var _this) native; | |
| 19 | |
| 20 void set currentTime(num value) { _set_currentTime(this, value); } | |
| 21 static void _set_currentTime(var _this, num value) native; | |
| 22 | |
| 23 num get defaultPlaybackRate() { return _get_defaultPlaybackRate(this); } | |
| 24 static num _get_defaultPlaybackRate(var _this) native; | |
| 25 | |
| 26 void set defaultPlaybackRate(num value) { _set_defaultPlaybackRate(this, value
); } | |
| 27 static void _set_defaultPlaybackRate(var _this, num value) native; | |
| 28 | |
| 29 num get duration() { return _get_duration(this); } | |
| 30 static num _get_duration(var _this) native; | |
| 31 | |
| 32 bool get muted() { return _get_muted(this); } | |
| 33 static bool _get_muted(var _this) native; | |
| 34 | |
| 35 void set muted(bool value) { _set_muted(this, value); } | |
| 36 static void _set_muted(var _this, bool value) native; | |
| 37 | |
| 38 bool get paused() { return _get_paused(this); } | |
| 39 static bool _get_paused(var _this) native; | |
| 40 | |
| 41 num get playbackRate() { return _get_playbackRate(this); } | |
| 42 static num _get_playbackRate(var _this) native; | |
| 43 | |
| 44 void set playbackRate(num value) { _set_playbackRate(this, value); } | |
| 45 static void _set_playbackRate(var _this, num value) native; | |
| 46 | |
| 47 TimeRanges get played() { return _get_played(this); } | |
| 48 static TimeRanges _get_played(var _this) native; | |
| 49 | |
| 50 TimeRanges get seekable() { return _get_seekable(this); } | |
| 51 static TimeRanges _get_seekable(var _this) native; | |
| 52 | |
| 53 num get volume() { return _get_volume(this); } | |
| 54 static num _get_volume(var _this) native; | |
| 55 | |
| 56 void set volume(num value) { _set_volume(this, value); } | |
| 57 static void _set_volume(var _this, num value) native; | |
| 58 | |
| 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 void pause() { | |
| 77 _pause(this); | |
| 78 return; | |
| 79 } | |
| 80 static void _pause(receiver) native; | |
| 81 | |
| 82 void play() { | |
| 83 _play(this); | |
| 84 return; | |
| 85 } | |
| 86 static void _play(receiver) native; | |
| 87 | |
| 88 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 89 if (useCapture === null) { | |
| 90 _removeEventListener(this, type, listener); | |
| 91 return; | |
| 92 } else { | |
| 93 _removeEventListener_2(this, type, listener, useCapture); | |
| 94 return; | |
| 95 } | |
| 96 } | |
| 97 static void _removeEventListener(receiver, type, listener) native; | |
| 98 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 99 | |
| 100 String get typeName() { return "MediaController"; } | |
| 101 } | |
| OLD | NEW |