| 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 { |
| 11 return new _HTMLMediaElementWrappingImplementation(); | 11 return new _HTMLMediaElementWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 bool get autoplay() { return _get__HTMLMediaElement_autoplay(this); } | 14 bool get autoplay() { return _get_autoplay(this); } |
| 15 static bool _get__HTMLMediaElement_autoplay(var _this) native; | 15 static bool _get_autoplay(var _this) native; |
| 16 | 16 |
| 17 void set autoplay(bool value) { _set__HTMLMediaElement_autoplay(this, value);
} | 17 void set autoplay(bool value) { _set_autoplay(this, value); } |
| 18 static void _set__HTMLMediaElement_autoplay(var _this, bool value) native; | 18 static void _set_autoplay(var _this, bool value) native; |
| 19 | 19 |
| 20 TimeRanges get buffered() { return _get__HTMLMediaElement_buffered(this); } | 20 TimeRanges get buffered() { return _get_buffered(this); } |
| 21 static TimeRanges _get__HTMLMediaElement_buffered(var _this) native; | 21 static TimeRanges _get_buffered(var _this) native; |
| 22 | 22 |
| 23 bool get controls() { return _get__HTMLMediaElement_controls(this); } | 23 bool get controls() { return _get_controls(this); } |
| 24 static bool _get__HTMLMediaElement_controls(var _this) native; | 24 static bool _get_controls(var _this) native; |
| 25 | 25 |
| 26 void set controls(bool value) { _set__HTMLMediaElement_controls(this, value);
} | 26 void set controls(bool value) { _set_controls(this, value); } |
| 27 static void _set__HTMLMediaElement_controls(var _this, bool value) native; | 27 static void _set_controls(var _this, bool value) native; |
| 28 | 28 |
| 29 String get currentSrc() { return _get__HTMLMediaElement_currentSrc(this); } | 29 String get currentSrc() { return _get_currentSrc(this); } |
| 30 static String _get__HTMLMediaElement_currentSrc(var _this) native; | 30 static String _get_currentSrc(var _this) native; |
| 31 | 31 |
| 32 num get currentTime() { return _get__HTMLMediaElement_currentTime(this); } | 32 num get currentTime() { return _get_currentTime(this); } |
| 33 static num _get__HTMLMediaElement_currentTime(var _this) native; | 33 static num _get_currentTime(var _this) native; |
| 34 | 34 |
| 35 void set currentTime(num value) { _set__HTMLMediaElement_currentTime(this, val
ue); } | 35 void set currentTime(num value) { _set_currentTime(this, value); } |
| 36 static void _set__HTMLMediaElement_currentTime(var _this, num value) native; | 36 static void _set_currentTime(var _this, num value) native; |
| 37 | 37 |
| 38 bool get defaultMuted() { return _get__HTMLMediaElement_defaultMuted(this); } | 38 bool get defaultMuted() { return _get_defaultMuted(this); } |
| 39 static bool _get__HTMLMediaElement_defaultMuted(var _this) native; | 39 static bool _get_defaultMuted(var _this) native; |
| 40 | 40 |
| 41 void set defaultMuted(bool value) { _set__HTMLMediaElement_defaultMuted(this,
value); } | 41 void set defaultMuted(bool value) { _set_defaultMuted(this, value); } |
| 42 static void _set__HTMLMediaElement_defaultMuted(var _this, bool value) native; | 42 static void _set_defaultMuted(var _this, bool value) native; |
| 43 | 43 |
| 44 num get defaultPlaybackRate() { return _get__HTMLMediaElement_defaultPlaybackR
ate(this); } | 44 num get defaultPlaybackRate() { return _get_defaultPlaybackRate(this); } |
| 45 static num _get__HTMLMediaElement_defaultPlaybackRate(var _this) native; | 45 static num _get_defaultPlaybackRate(var _this) native; |
| 46 | 46 |
| 47 void set defaultPlaybackRate(num value) { _set__HTMLMediaElement_defaultPlayba
ckRate(this, value); } | 47 void set defaultPlaybackRate(num value) { _set_defaultPlaybackRate(this, value
); } |
| 48 static void _set__HTMLMediaElement_defaultPlaybackRate(var _this, num value) n
ative; | 48 static void _set_defaultPlaybackRate(var _this, num value) native; |
| 49 | 49 |
| 50 num get duration() { return _get__HTMLMediaElement_duration(this); } | 50 num get duration() { return _get_duration(this); } |
| 51 static num _get__HTMLMediaElement_duration(var _this) native; | 51 static num _get_duration(var _this) native; |
| 52 | 52 |
| 53 bool get ended() { return _get__HTMLMediaElement_ended(this); } | 53 bool get ended() { return _get_ended(this); } |
| 54 static bool _get__HTMLMediaElement_ended(var _this) native; | 54 static bool _get_ended(var _this) native; |
| 55 | 55 |
| 56 MediaError get error() { return _get__HTMLMediaElement_error(this); } | 56 MediaError get error() { return _get_error(this); } |
| 57 static MediaError _get__HTMLMediaElement_error(var _this) native; | 57 static MediaError _get_error(var _this) native; |
| 58 | 58 |
| 59 num get initialTime() { return _get__HTMLMediaElement_initialTime(this); } | 59 num get initialTime() { return _get_initialTime(this); } |
| 60 static num _get__HTMLMediaElement_initialTime(var _this) native; | 60 static num _get_initialTime(var _this) native; |
| 61 | 61 |
| 62 bool get loop() { return _get__HTMLMediaElement_loop(this); } | 62 bool get loop() { return _get_loop(this); } |
| 63 static bool _get__HTMLMediaElement_loop(var _this) native; | 63 static bool _get_loop(var _this) native; |
| 64 | 64 |
| 65 void set loop(bool value) { _set__HTMLMediaElement_loop(this, value); } | 65 void set loop(bool value) { _set_loop(this, value); } |
| 66 static void _set__HTMLMediaElement_loop(var _this, bool value) native; | 66 static void _set_loop(var _this, bool value) native; |
| 67 | 67 |
| 68 bool get muted() { return _get__HTMLMediaElement_muted(this); } | 68 bool get muted() { return _get_muted(this); } |
| 69 static bool _get__HTMLMediaElement_muted(var _this) native; | 69 static bool _get_muted(var _this) native; |
| 70 | 70 |
| 71 void set muted(bool value) { _set__HTMLMediaElement_muted(this, value); } | 71 void set muted(bool value) { _set_muted(this, value); } |
| 72 static void _set__HTMLMediaElement_muted(var _this, bool value) native; | 72 static void _set_muted(var _this, bool value) native; |
| 73 | 73 |
| 74 int get networkState() { return _get__HTMLMediaElement_networkState(this); } | 74 int get networkState() { return _get_networkState(this); } |
| 75 static int _get__HTMLMediaElement_networkState(var _this) native; | 75 static int _get_networkState(var _this) native; |
| 76 | 76 |
| 77 bool get paused() { return _get__HTMLMediaElement_paused(this); } | 77 bool get paused() { return _get_paused(this); } |
| 78 static bool _get__HTMLMediaElement_paused(var _this) native; | 78 static bool _get_paused(var _this) native; |
| 79 | 79 |
| 80 num get playbackRate() { return _get__HTMLMediaElement_playbackRate(this); } | 80 num get playbackRate() { return _get_playbackRate(this); } |
| 81 static num _get__HTMLMediaElement_playbackRate(var _this) native; | 81 static num _get_playbackRate(var _this) native; |
| 82 | 82 |
| 83 void set playbackRate(num value) { _set__HTMLMediaElement_playbackRate(this, v
alue); } | 83 void set playbackRate(num value) { _set_playbackRate(this, value); } |
| 84 static void _set__HTMLMediaElement_playbackRate(var _this, num value) native; | 84 static void _set_playbackRate(var _this, num value) native; |
| 85 | 85 |
| 86 TimeRanges get played() { return _get__HTMLMediaElement_played(this); } | 86 TimeRanges get played() { return _get_played(this); } |
| 87 static TimeRanges _get__HTMLMediaElement_played(var _this) native; | 87 static TimeRanges _get_played(var _this) native; |
| 88 | 88 |
| 89 String get preload() { return _get__HTMLMediaElement_preload(this); } | 89 String get preload() { return _get_preload(this); } |
| 90 static String _get__HTMLMediaElement_preload(var _this) native; | 90 static String _get_preload(var _this) native; |
| 91 | 91 |
| 92 void set preload(String value) { _set__HTMLMediaElement_preload(this, value);
} | 92 void set preload(String value) { _set_preload(this, value); } |
| 93 static void _set__HTMLMediaElement_preload(var _this, String value) native; | 93 static void _set_preload(var _this, String value) native; |
| 94 | 94 |
| 95 int get readyState() { return _get__HTMLMediaElement_readyState(this); } | 95 int get readyState() { return _get_readyState(this); } |
| 96 static int _get__HTMLMediaElement_readyState(var _this) native; | 96 static int _get_readyState(var _this) native; |
| 97 | 97 |
| 98 TimeRanges get seekable() { return _get__HTMLMediaElement_seekable(this); } | 98 TimeRanges get seekable() { return _get_seekable(this); } |
| 99 static TimeRanges _get__HTMLMediaElement_seekable(var _this) native; | 99 static TimeRanges _get_seekable(var _this) native; |
| 100 | 100 |
| 101 bool get seeking() { return _get__HTMLMediaElement_seeking(this); } | 101 bool get seeking() { return _get_seeking(this); } |
| 102 static bool _get__HTMLMediaElement_seeking(var _this) native; | 102 static bool _get_seeking(var _this) native; |
| 103 | 103 |
| 104 String get src() { return _get__HTMLMediaElement_src(this); } | 104 String get src() { return _get_src(this); } |
| 105 static String _get__HTMLMediaElement_src(var _this) native; | 105 static String _get_src(var _this) native; |
| 106 | 106 |
| 107 void set src(String value) { _set__HTMLMediaElement_src(this, value); } | 107 void set src(String value) { _set_src(this, value); } |
| 108 static void _set__HTMLMediaElement_src(var _this, String value) native; | 108 static void _set_src(var _this, String value) native; |
| 109 | 109 |
| 110 num get startTime() { return _get__HTMLMediaElement_startTime(this); } | 110 num get startTime() { return _get_startTime(this); } |
| 111 static num _get__HTMLMediaElement_startTime(var _this) native; | 111 static num _get_startTime(var _this) native; |
| 112 | 112 |
| 113 num get volume() { return _get__HTMLMediaElement_volume(this); } | 113 num get volume() { return _get_volume(this); } |
| 114 static num _get__HTMLMediaElement_volume(var _this) native; | 114 static num _get_volume(var _this) native; |
| 115 | 115 |
| 116 void set volume(num value) { _set__HTMLMediaElement_volume(this, value); } | 116 void set volume(num value) { _set_volume(this, value); } |
| 117 static void _set__HTMLMediaElement_volume(var _this, num value) native; | 117 static void _set_volume(var _this, num value) native; |
| 118 | 118 |
| 119 int get webkitAudioDecodedByteCount() { return _get__HTMLMediaElement_webkitAu
dioDecodedByteCount(this); } | 119 int get webkitAudioDecodedByteCount() { return _get_webkitAudioDecodedByteCoun
t(this); } |
| 120 static int _get__HTMLMediaElement_webkitAudioDecodedByteCount(var _this) nativ
e; | 120 static int _get_webkitAudioDecodedByteCount(var _this) native; |
| 121 | 121 |
| 122 bool get webkitClosedCaptionsVisible() { return _get__HTMLMediaElement_webkitC
losedCaptionsVisible(this); } | 122 bool get webkitClosedCaptionsVisible() { return _get_webkitClosedCaptionsVisib
le(this); } |
| 123 static bool _get__HTMLMediaElement_webkitClosedCaptionsVisible(var _this) nati
ve; | 123 static bool _get_webkitClosedCaptionsVisible(var _this) native; |
| 124 | 124 |
| 125 void set webkitClosedCaptionsVisible(bool value) { _set__HTMLMediaElement_webk
itClosedCaptionsVisible(this, value); } | 125 void set webkitClosedCaptionsVisible(bool value) { _set_webkitClosedCaptionsVi
sible(this, value); } |
| 126 static void _set__HTMLMediaElement_webkitClosedCaptionsVisible(var _this, bool
value) native; | 126 static void _set_webkitClosedCaptionsVisible(var _this, bool value) native; |
| 127 | 127 |
| 128 bool get webkitHasClosedCaptions() { return _get__HTMLMediaElement_webkitHasCl
osedCaptions(this); } | 128 bool get webkitHasClosedCaptions() { return _get_webkitHasClosedCaptions(this)
; } |
| 129 static bool _get__HTMLMediaElement_webkitHasClosedCaptions(var _this) native; | 129 static bool _get_webkitHasClosedCaptions(var _this) native; |
| 130 | 130 |
| 131 bool get webkitPreservesPitch() { return _get__HTMLMediaElement_webkitPreserve
sPitch(this); } | 131 bool get webkitPreservesPitch() { return _get_webkitPreservesPitch(this); } |
| 132 static bool _get__HTMLMediaElement_webkitPreservesPitch(var _this) native; | 132 static bool _get_webkitPreservesPitch(var _this) native; |
| 133 | 133 |
| 134 void set webkitPreservesPitch(bool value) { _set__HTMLMediaElement_webkitPrese
rvesPitch(this, value); } | 134 void set webkitPreservesPitch(bool value) { _set_webkitPreservesPitch(this, va
lue); } |
| 135 static void _set__HTMLMediaElement_webkitPreservesPitch(var _this, bool value)
native; | 135 static void _set_webkitPreservesPitch(var _this, bool value) native; |
| 136 | 136 |
| 137 int get webkitVideoDecodedByteCount() { return _get__HTMLMediaElement_webkitVi
deoDecodedByteCount(this); } | 137 int get webkitVideoDecodedByteCount() { return _get_webkitVideoDecodedByteCoun
t(this); } |
| 138 static int _get__HTMLMediaElement_webkitVideoDecodedByteCount(var _this) nativ
e; | 138 static int _get_webkitVideoDecodedByteCount(var _this) native; |
| 139 | 139 |
| 140 String canPlayType(String type) { | 140 String canPlayType(String type) { |
| 141 return _canPlayType(this, type); | 141 return _canPlayType(this, type); |
| 142 } | 142 } |
| 143 static String _canPlayType(receiver, type) native; | 143 static String _canPlayType(receiver, type) native; |
| 144 | 144 |
| 145 void load() { | 145 void load() { |
| 146 _load(this); | 146 _load(this); |
| 147 return; | 147 return; |
| 148 } | 148 } |
| 149 static void _load(receiver) native; | 149 static void _load(receiver) native; |
| 150 | 150 |
| 151 void pause() { | 151 void pause() { |
| 152 _pause(this); | 152 _pause(this); |
| 153 return; | 153 return; |
| 154 } | 154 } |
| 155 static void _pause(receiver) native; | 155 static void _pause(receiver) native; |
| 156 | 156 |
| 157 void play() { | 157 void play() { |
| 158 _play(this); | 158 _play(this); |
| 159 return; | 159 return; |
| 160 } | 160 } |
| 161 static void _play(receiver) native; | 161 static void _play(receiver) native; |
| 162 | 162 |
| 163 String get typeName() { return "HTMLMediaElement"; } | 163 String get typeName() { return "HTMLMediaElement"; } |
| 164 } | 164 } |
| OLD | NEW |