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

Side by Side Diff: client/dom/generated/src/frog/HTMLMediaElement.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 _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat ive "*HTMLMediaElement" { 2 class _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat ive "*HTMLMediaElement" {
3 3
4 static final int EOS_DECODE_ERR = 2; 4 static final int EOS_DECODE_ERR = 2;
5 5
6 static final int EOS_NETWORK_ERR = 1; 6 static final int EOS_NETWORK_ERR = 1;
7 7
8 static final int EOS_NO_ERROR = 0; 8 static final int EOS_NO_ERROR = 0;
9 9
10 static final int HAVE_CURRENT_DATA = 2; 10 static final int HAVE_CURRENT_DATA = 2;
(...skipping 13 matching lines...) Expand all
24 static final int NETWORK_LOADING = 2; 24 static final int NETWORK_LOADING = 2;
25 25
26 static final int NETWORK_NO_SOURCE = 3; 26 static final int NETWORK_NO_SOURCE = 3;
27 27
28 static final int SOURCE_CLOSED = 0; 28 static final int SOURCE_CLOSED = 0;
29 29
30 static final int SOURCE_ENDED = 2; 30 static final int SOURCE_ENDED = 2;
31 31
32 static final int SOURCE_OPEN = 1; 32 static final int SOURCE_OPEN = 1;
33 33
34 bool get autoplay() native "return this.autoplay;"; 34 bool autoplay;
35 35
36 void set autoplay(bool value) native "this.autoplay = value;"; 36 final _TimeRangesJs buffered;
37 37
38 _TimeRangesJs get buffered() native "return this.buffered;"; 38 _MediaControllerJs controller;
39 39
40 _MediaControllerJs get controller() native "return this.controller;"; 40 bool controls;
41 41
42 void set controller(_MediaControllerJs value) native "this.controller = value; "; 42 final String currentSrc;
43 43
44 bool get controls() native "return this.controls;"; 44 num currentTime;
45 45
46 void set controls(bool value) native "this.controls = value;"; 46 bool defaultMuted;
47 47
48 String get currentSrc() native "return this.currentSrc;"; 48 num defaultPlaybackRate;
49 49
50 num get currentTime() native "return this.currentTime;"; 50 final num duration;
51 51
52 void set currentTime(num value) native "this.currentTime = value;"; 52 final bool ended;
53 53
54 bool get defaultMuted() native "return this.defaultMuted;"; 54 final _MediaErrorJs error;
55 55
56 void set defaultMuted(bool value) native "this.defaultMuted = value;"; 56 final num initialTime;
57 57
58 num get defaultPlaybackRate() native "return this.defaultPlaybackRate;"; 58 bool loop;
59 59
60 void set defaultPlaybackRate(num value) native "this.defaultPlaybackRate = val ue;"; 60 String mediaGroup;
61 61
62 num get duration() native "return this.duration;"; 62 bool muted;
63 63
64 bool get ended() native "return this.ended;"; 64 final int networkState;
65 65
66 _MediaErrorJs get error() native "return this.error;"; 66 final bool paused;
67 67
68 num get initialTime() native "return this.initialTime;"; 68 num playbackRate;
69 69
70 bool get loop() native "return this.loop;"; 70 final _TimeRangesJs played;
71 71
72 void set loop(bool value) native "this.loop = value;"; 72 String preload;
73 73
74 String get mediaGroup() native "return this.mediaGroup;"; 74 final int readyState;
75 75
76 void set mediaGroup(String value) native "this.mediaGroup = value;"; 76 final _TimeRangesJs seekable;
77 77
78 bool get muted() native "return this.muted;"; 78 final bool seeking;
79 79
80 void set muted(bool value) native "this.muted = value;"; 80 String src;
81 81
82 int get networkState() native "return this.networkState;"; 82 final num startTime;
83 83
84 bool get paused() native "return this.paused;"; 84 final _TextTrackListJs textTracks;
85 85
86 num get playbackRate() native "return this.playbackRate;"; 86 num volume;
87 87
88 void set playbackRate(num value) native "this.playbackRate = value;"; 88 final int webkitAudioDecodedByteCount;
89 89
90 _TimeRangesJs get played() native "return this.played;"; 90 bool webkitClosedCaptionsVisible;
91 91
92 String get preload() native "return this.preload;"; 92 final bool webkitHasClosedCaptions;
93 93
94 void set preload(String value) native "this.preload = value;"; 94 final String webkitMediaSourceURL;
95 95
96 int get readyState() native "return this.readyState;"; 96 bool webkitPreservesPitch;
97 97
98 _TimeRangesJs get seekable() native "return this.seekable;"; 98 final int webkitSourceState;
99 99
100 bool get seeking() native "return this.seeking;"; 100 final int webkitVideoDecodedByteCount;
101
102 String get src() native "return this.src;";
103
104 void set src(String value) native "this.src = value;";
105
106 num get startTime() native "return this.startTime;";
107
108 _TextTrackListJs get textTracks() native "return this.textTracks;";
109
110 num get volume() native "return this.volume;";
111
112 void set volume(num value) native "this.volume = value;";
113
114 int get webkitAudioDecodedByteCount() native "return this.webkitAudioDecodedBy teCount;";
115
116 bool get webkitClosedCaptionsVisible() native "return this.webkitClosedCaption sVisible;";
117
118 void set webkitClosedCaptionsVisible(bool value) native "this.webkitClosedCapt ionsVisible = value;";
119
120 bool get webkitHasClosedCaptions() native "return this.webkitHasClosedCaptions ;";
121
122 String get webkitMediaSourceURL() native "return this.webkitMediaSourceURL;";
123
124 bool get webkitPreservesPitch() native "return this.webkitPreservesPitch;";
125
126 void set webkitPreservesPitch(bool value) native "this.webkitPreservesPitch = value;";
127
128 int get webkitSourceState() native "return this.webkitSourceState;";
129
130 int get webkitVideoDecodedByteCount() native "return this.webkitVideoDecodedBy teCount;";
131 101
132 _TextTrackJs addTrack(String kind, [String label = null, String language = nul l]) native; 102 _TextTrackJs addTrack(String kind, [String label = null, String language = nul l]) native;
133 103
134 String canPlayType(String type) native; 104 String canPlayType(String type) native;
135 105
136 void load() native; 106 void load() native;
137 107
138 void pause() native; 108 void pause() native;
139 109
140 void play() native; 110 void play() native;
141 111
142 void webkitSourceAppend(_Uint8ArrayJs data) native; 112 void webkitSourceAppend(_Uint8ArrayJs data) native;
143 113
144 void webkitSourceEndOfStream(int status) native; 114 void webkitSourceEndOfStream(int status) native;
145 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698