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

Side by Side Diff: client/dom/generated/src/frog/MediaController.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 class _MediaControllerJs extends _DOMTypeJs implements MediaController native "* MediaController" { 2 class _MediaControllerJs extends _DOMTypeJs implements MediaController native "* MediaController" {
3 3
4 _TimeRangesJs get buffered() native "return this.buffered;"; 4 final _TimeRangesJs buffered;
5 5
6 num get currentTime() native "return this.currentTime;"; 6 num currentTime;
7 7
8 void set currentTime(num value) native "this.currentTime = value;"; 8 num defaultPlaybackRate;
9 9
10 num get defaultPlaybackRate() native "return this.defaultPlaybackRate;"; 10 final num duration;
11 11
12 void set defaultPlaybackRate(num value) native "this.defaultPlaybackRate = val ue;"; 12 bool muted;
13 13
14 num get duration() native "return this.duration;"; 14 final bool paused;
15 15
16 bool get muted() native "return this.muted;"; 16 num playbackRate;
17 17
18 void set muted(bool value) native "this.muted = value;"; 18 final _TimeRangesJs played;
19 19
20 bool get paused() native "return this.paused;"; 20 final _TimeRangesJs seekable;
21 21
22 num get playbackRate() native "return this.playbackRate;"; 22 num volume;
23
24 void set playbackRate(num value) native "this.playbackRate = value;";
25
26 _TimeRangesJs get played() native "return this.played;";
27
28 _TimeRangesJs get seekable() native "return this.seekable;";
29
30 num get volume() native "return this.volume;";
31
32 void set volume(num value) native "this.volume = value;";
33 23
34 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 24 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
35 25
36 bool dispatchEvent(_EventJs evt) native; 26 bool dispatchEvent(_EventJs evt) native;
37 27
38 void pause() native; 28 void pause() native;
39 29
40 void play() native; 30 void play() native;
41 31
42 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 32 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
43 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698