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

Side by Side Diff: client/dom/generated/src/frog/AudioBuffer.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 _AudioBufferJs extends _DOMTypeJs implements AudioBuffer native "*AudioBuf fer" { 2 class _AudioBufferJs extends _DOMTypeJs implements AudioBuffer native "*AudioBuf fer" {
3 3
4 num get duration() native "return this.duration;"; 4 final num duration;
5 5
6 num get gain() native "return this.gain;"; 6 num gain;
7 7
8 void set gain(num value) native "this.gain = value;"; 8 final int length;
9 9
10 int get length() native "return this.length;"; 10 final int numberOfChannels;
11 11
12 int get numberOfChannels() native "return this.numberOfChannels;"; 12 final num sampleRate;
13
14 num get sampleRate() native "return this.sampleRate;";
15 13
16 _Float32ArrayJs getChannelData(int channelIndex) native; 14 _Float32ArrayJs getChannelData(int channelIndex) native;
17 } 15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698