Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: client/html/generated/html/dartium/MediaController.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/MediaController.dart
diff --git a/client/html/generated/html/dartium/MediaController.dart b/client/html/generated/html/dartium/MediaController.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c22302d0fa0008410319b582314f206860e6dbd3
--- /dev/null
+++ b/client/html/generated/html/dartium/MediaController.dart
@@ -0,0 +1,68 @@
+
+class _MediaControllerImpl extends _DOMTypeBase implements MediaController {
+ _MediaControllerImpl._wrap(ptr) : super._wrap(ptr);
+
+ TimeRanges get buffered() => _wrap(_ptr.buffered);
+
+ num get currentTime() => _wrap(_ptr.currentTime);
+
+ void set currentTime(num value) { _ptr.currentTime = _unwrap(value); }
+
+ num get defaultPlaybackRate() => _wrap(_ptr.defaultPlaybackRate);
+
+ void set defaultPlaybackRate(num value) { _ptr.defaultPlaybackRate = _unwrap(value); }
+
+ num get duration() => _wrap(_ptr.duration);
+
+ bool get muted() => _wrap(_ptr.muted);
+
+ void set muted(bool value) { _ptr.muted = _unwrap(value); }
+
+ bool get paused() => _wrap(_ptr.paused);
+
+ num get playbackRate() => _wrap(_ptr.playbackRate);
+
+ void set playbackRate(num value) { _ptr.playbackRate = _unwrap(value); }
+
+ TimeRanges get played() => _wrap(_ptr.played);
+
+ TimeRanges get seekable() => _wrap(_ptr.seekable);
+
+ num get volume() => _wrap(_ptr.volume);
+
+ void set volume(num value) { _ptr.volume = _unwrap(value); }
+
+ void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _ptr.addEventListener(_unwrap(type), _unwrap(listener));
+ return;
+ } else {
+ _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture));
+ return;
+ }
+ }
+
+ bool dispatchEvent(Event evt) {
+ return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
+ }
+
+ void pause() {
+ _ptr.pause();
+ return;
+ }
+
+ void play() {
+ _ptr.play();
+ return;
+ }
+
+ void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
+ return;
+ } else {
+ _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture));
+ return;
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698