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

Side by Side Diff: client/dom/generated/src/frog/AudioContext.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 _AudioContextJs extends _DOMTypeJs implements AudioContext native "*AudioC ontext" { 2 class _AudioContextJs extends _DOMTypeJs implements AudioContext native "*AudioC ontext" {
3 AudioContext() native; 3 AudioContext() native;
4 4
5 5
6 num get currentTime() native "return this.currentTime;"; 6 final num currentTime;
7 7
8 _AudioDestinationNodeJs get destination() native "return this.destination;"; 8 final _AudioDestinationNodeJs destination;
9 9
10 _AudioListenerJs get listener() native "return this.listener;"; 10 final _AudioListenerJs listener;
11 11
12 EventListener get oncomplete() native "return this.oncomplete;"; 12 EventListener oncomplete;
13 13
14 void set oncomplete(EventListener value) native "this.oncomplete = value;"; 14 final num sampleRate;
15
16 num get sampleRate() native "return this.sampleRate;";
17 15
18 _RealtimeAnalyserNodeJs createAnalyser() native; 16 _RealtimeAnalyserNodeJs createAnalyser() native;
19 17
20 _BiquadFilterNodeJs createBiquadFilter() native; 18 _BiquadFilterNodeJs createBiquadFilter() native;
21 19
22 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n umberOfFrames, [num sampleRate = null]) native; 20 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n umberOfFrames, [num sampleRate = null]) native;
23 21
24 _AudioBufferSourceNodeJs createBufferSource() native; 22 _AudioBufferSourceNodeJs createBufferSource() native;
25 23
26 _AudioChannelMergerJs createChannelMerger() native; 24 _AudioChannelMergerJs createChannelMerger() native;
(...skipping 17 matching lines...) Expand all
44 _MediaElementAudioSourceNodeJs createMediaElementSource(_HTMLMediaElementJs me diaElement) native; 42 _MediaElementAudioSourceNodeJs createMediaElementSource(_HTMLMediaElementJs me diaElement) native;
45 43
46 _AudioPannerNodeJs createPanner() native; 44 _AudioPannerNodeJs createPanner() native;
47 45
48 _WaveShaperNodeJs createWaveShaper() native; 46 _WaveShaperNodeJs createWaveShaper() native;
49 47
50 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall back, [AudioBufferCallback errorCallback = null]) native; 48 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall back, [AudioBufferCallback errorCallback = null]) native;
51 49
52 void startRendering() native; 50 void startRendering() native;
53 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698