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

Side by Side Diff: client/dom/frog/frog_dom.dart

Issue 8785014: Turn on webaudio for JS backends. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
« no previous file with comments | « client/dom/dom.dart ('k') | client/dom/frog_dom.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 String name; 60 String name;
61 61
62 Element ownerElement; 62 Element ownerElement;
63 63
64 bool specified; 64 bool specified;
65 65
66 String value; 66 String value;
67 } 67 }
68 68
69 class AudioBuffer native "*AudioBuffer" {
70
71 num duration;
72
73 num gain;
74
75 int length;
76
77 int numberOfChannels;
78
79 num sampleRate;
80
81 Float32Array getChannelData(int channelIndex) native;
82
83 var dartObjectLocalStorage;
84
85 String get typeName() native;
86 }
87
88 class AudioBufferCallback native "*AudioBufferCallback" {
89
90 bool handleEvent(AudioBuffer audioBuffer) native;
91
92 var dartObjectLocalStorage;
93
94 String get typeName() native;
95 }
96
97 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" {
98
99 AudioBuffer buffer;
100
101 AudioGain gain;
102
103 bool loop;
104
105 bool looping;
106
107 AudioParam playbackRate;
108
109 void noteGrainOn(num when, num grainOffset, num grainDuration) native;
110
111 void noteOff(num when) native;
112
113 void noteOn(num when) native;
114 }
115
116 class AudioChannelMerger extends AudioNode native "*AudioChannelMerger" {
117 }
118
119 class AudioChannelSplitter extends AudioNode native "*AudioChannelSplitter" {
120 }
121
122 class AudioContext native "*AudioContext" {
123
124 num currentTime;
125
126 AudioDestinationNode destination;
127
128 AudioListener listener;
129
130 num sampleRate;
131
132 RealtimeAnalyserNode createAnalyser() native;
133
134 BiquadFilterNode createBiquadFilter() native;
135
136 AudioBuffer createBuffer() native;
137
138 AudioBufferSourceNode createBufferSource() native;
139
140 AudioChannelMerger createChannelMerger() native;
141
142 AudioChannelSplitter createChannelSplitter() native;
143
144 ConvolverNode createConvolver() native;
145
146 DelayNode createDelayNode() native;
147
148 DynamicsCompressorNode createDynamicsCompressor() native;
149
150 AudioGainNode createGainNode() native;
151
152 HighPass2FilterNode createHighPass2Filter() native;
153
154 JavaScriptAudioNode createJavaScriptNode(int bufferSize) native;
155
156 LowPass2FilterNode createLowPass2Filter() native;
157
158 AudioPannerNode createPanner() native;
159
160 WaveShaperNode createWaveShaper() native;
161
162 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback = null]) native;
163
164 void startRendering() native;
165
166 var dartObjectLocalStorage;
167
168 String get typeName() native;
169 }
170
171 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
172
173 int numberOfChannels;
174 }
175
176 class AudioGain extends AudioParam native "*AudioGain" {
177 }
178
179 class AudioGainNode extends AudioNode native "*AudioGainNode" {
180
181 AudioGain gain;
182 }
183
184 class AudioListener native "*AudioListener" {
185
186 num dopplerFactor;
187
188 num speedOfSound;
189
190 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
191
192 void setPosition(num x, num y, num z) native;
193
194 void setVelocity(num x, num y, num z) native;
195
196 var dartObjectLocalStorage;
197
198 String get typeName() native;
199 }
200
201 class AudioNode native "*AudioNode" {
202
203 AudioContext context;
204
205 int numberOfInputs;
206
207 int numberOfOutputs;
208
209 void connect(AudioNode destination, [int output = null, int input = null]) nat ive;
210
211 void disconnect([int output = null]) native;
212
213 var dartObjectLocalStorage;
214
215 String get typeName() native;
216 }
217
218 class AudioPannerNode extends AudioNode native "*AudioPannerNode" {
219
220 static final int EQUALPOWER = 0;
221
222 static final int HRTF = 1;
223
224 static final int SOUNDFIELD = 2;
225
226 AudioGain coneGain;
227
228 num coneInnerAngle;
229
230 num coneOuterAngle;
231
232 num coneOuterGain;
233
234 AudioGain distanceGain;
235
236 int distanceModel;
237
238 num maxDistance;
239
240 int panningModel;
241
242 num refDistance;
243
244 num rolloffFactor;
245
246 void setOrientation(num x, num y, num z) native;
247
248 void setPosition(num x, num y, num z) native;
249
250 void setVelocity(num x, num y, num z) native;
251 }
252
253 class AudioParam native "*AudioParam" {
254
255 num defaultValue;
256
257 num maxValue;
258
259 num minValue;
260
261 String name;
262
263 int units;
264
265 num value;
266
267 void cancelScheduledValues(num startTime) native;
268
269 void exponentialRampToValueAtTime(num value, num time) native;
270
271 void linearRampToValueAtTime(num value, num time) native;
272
273 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native;
274
275 void setValueAtTime(num value, num time) native;
276
277 void setValueCurveAtTime(Float32Array values, num time, num duration) native;
278
279 var dartObjectLocalStorage;
280
281 String get typeName() native;
282 }
283
284 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
285
286 AudioBuffer inputBuffer;
287
288 AudioBuffer outputBuffer;
289 }
290
291 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
292 }
293
69 class BarInfo native "*BarInfo" { 294 class BarInfo native "*BarInfo" {
70 295
71 bool visible; 296 bool visible;
72 297
73 var dartObjectLocalStorage; 298 var dartObjectLocalStorage;
74 299
75 String get typeName() native; 300 String get typeName() native;
76 } 301 }
77 302
78 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 303 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
79 304
80 String url; 305 String url;
81 306
82 void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) native; 307 void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) native;
83 } 308 }
84 309
310 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
311
312 static final int ALLPASS = 7;
313
314 static final int BANDPASS = 2;
315
316 static final int HIGHPASS = 1;
317
318 static final int HIGHSHELF = 4;
319
320 static final int LOWPASS = 0;
321
322 static final int LOWSHELF = 3;
323
324 static final int NOTCH = 6;
325
326 static final int PEAKING = 5;
327
328 AudioParam Q;
329
330 AudioParam frequency;
331
332 AudioParam gain;
333
334 int type;
335 }
336
85 class Blob native "*Blob" { 337 class Blob native "*Blob" {
86 338
87 int size; 339 int size;
88 340
89 String type; 341 String type;
90 342
91 var dartObjectLocalStorage; 343 var dartObjectLocalStorage;
92 344
93 String get typeName() native; 345 String get typeName() native;
94 } 346 }
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 876
625 void trace(Object arg) native; 877 void trace(Object arg) native;
626 878
627 void warn(Object arg) native; 879 void warn(Object arg) native;
628 880
629 var dartObjectLocalStorage; 881 var dartObjectLocalStorage;
630 882
631 String get typeName() native; 883 String get typeName() native;
632 } 884 }
633 885
886 class ConvolverNode extends AudioNode native "*ConvolverNode" {
887
888 AudioBuffer buffer;
889 }
890
634 class Coordinates native "*Coordinates" { 891 class Coordinates native "*Coordinates" {
635 892
636 num accuracy; 893 num accuracy;
637 894
638 num altitude; 895 num altitude;
639 896
640 num altitudeAccuracy; 897 num altitudeAccuracy;
641 898
642 num heading; 899 num heading;
643 900
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 String get typeName() native; 1536 String get typeName() native;
1280 } 1537 }
1281 1538
1282 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 1539 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
1283 1540
1284 void postMessage(Object message, [List messagePorts = null]) native; 1541 void postMessage(Object message, [List messagePorts = null]) native;
1285 1542
1286 void webkitPostMessage(Object message, [List transferList = null]) native; 1543 void webkitPostMessage(Object message, [List transferList = null]) native;
1287 } 1544 }
1288 1545
1546 class DelayNode extends AudioNode native "*DelayNode" {
1547
1548 AudioParam delayTime;
1549 }
1550
1289 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 1551 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" {
1290 1552
1291 num interval; 1553 num interval;
1292 } 1554 }
1293 1555
1294 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 1556 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" {
1295 1557
1296 num alpha; 1558 num alpha;
1297 1559
1298 num beta; 1560 num beta;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 1762
1501 String name; 1763 String name;
1502 1764
1503 NamedNodeMap notations; 1765 NamedNodeMap notations;
1504 1766
1505 String publicId; 1767 String publicId;
1506 1768
1507 String systemId; 1769 String systemId;
1508 } 1770 }
1509 1771
1772 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
1773 }
1774
1510 class Element extends Node native "*Element" { 1775 class Element extends Node native "*Element" {
1511 1776
1512 int childElementCount; 1777 int childElementCount;
1513 1778
1514 int clientHeight; 1779 int clientHeight;
1515 1780
1516 int clientLeft; 1781 int clientLeft;
1517 1782
1518 int clientTop; 1783 int clientTop;
1519 1784
(...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
3608 3873
3609 class HashChangeEvent extends Event native "*HashChangeEvent" { 3874 class HashChangeEvent extends Event native "*HashChangeEvent" {
3610 3875
3611 String newURL; 3876 String newURL;
3612 3877
3613 String oldURL; 3878 String oldURL;
3614 3879
3615 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 3880 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
3616 } 3881 }
3617 3882
3883 class HighPass2FilterNode extends AudioNode native "*HighPass2FilterNode" {
3884
3885 AudioParam cutoff;
3886
3887 AudioParam resonance;
3888 }
3889
3618 class History native "*History" { 3890 class History native "*History" {
3619 3891
3620 int length; 3892 int length;
3621 3893
3622 void back() native; 3894 void back() native;
3623 3895
3624 void forward() native; 3896 void forward() native;
3625 3897
3626 void go(int distance) native; 3898 void go(int distance) native;
3627 3899
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
4028 4300
4029 class Int8Array extends ArrayBufferView native "*Int8Array" { 4301 class Int8Array extends ArrayBufferView native "*Int8Array" {
4030 4302
4031 static final int BYTES_PER_ELEMENT = 1; 4303 static final int BYTES_PER_ELEMENT = 1;
4032 4304
4033 int length; 4305 int length;
4034 4306
4035 Int8Array subarray(int start, [int end = null]) native; 4307 Int8Array subarray(int start, [int end = null]) native;
4036 } 4308 }
4037 4309
4310 class JavaScriptAudioNode extends AudioNode native "*JavaScriptAudioNode" {
4311
4312 int bufferSize;
4313 }
4314
4038 class JavaScriptCallFrame native "*JavaScriptCallFrame" { 4315 class JavaScriptCallFrame native "*JavaScriptCallFrame" {
4039 4316
4040 static final int CATCH_SCOPE = 4; 4317 static final int CATCH_SCOPE = 4;
4041 4318
4042 static final int CLOSURE_SCOPE = 3; 4319 static final int CLOSURE_SCOPE = 3;
4043 4320
4044 static final int GLOBAL_SCOPE = 0; 4321 static final int GLOBAL_SCOPE = 0;
4045 4322
4046 static final int LOCAL_SCOPE = 1; 4323 static final int LOCAL_SCOPE = 1;
4047 4324
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 4394
4118 void replace(String url) native; 4395 void replace(String url) native;
4119 4396
4120 String toString() native; 4397 String toString() native;
4121 4398
4122 var dartObjectLocalStorage; 4399 var dartObjectLocalStorage;
4123 4400
4124 String get typeName() native; 4401 String get typeName() native;
4125 } 4402 }
4126 4403
4404 class LowPass2FilterNode extends AudioNode native "*LowPass2FilterNode" {
4405
4406 AudioParam cutoff;
4407
4408 AudioParam resonance;
4409 }
4410
4411 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" {
4412
4413 HTMLMediaElement mediaElement;
4414 }
4415
4127 class MediaError native "*MediaError" { 4416 class MediaError native "*MediaError" {
4128 4417
4129 static final int MEDIA_ERR_ABORTED = 1; 4418 static final int MEDIA_ERR_ABORTED = 1;
4130 4419
4131 static final int MEDIA_ERR_DECODE = 3; 4420 static final int MEDIA_ERR_DECODE = 3;
4132 4421
4133 static final int MEDIA_ERR_NETWORK = 2; 4422 static final int MEDIA_ERR_NETWORK = 2;
4134 4423
4135 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 4424 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
4136 4425
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
4721 5010
4722 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 5011 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
4723 5012
4724 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 5013 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
4725 5014
4726 var dartObjectLocalStorage; 5015 var dartObjectLocalStorage;
4727 5016
4728 String get typeName() native; 5017 String get typeName() native;
4729 } 5018 }
4730 5019
5020 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" {
5021
5022 AudioBuffer renderedBuffer;
5023 }
5024
4731 class OperationNotAllowedException native "*OperationNotAllowedException" { 5025 class OperationNotAllowedException native "*OperationNotAllowedException" {
4732 5026
4733 static final int NOT_ALLOWED_ERR = 1; 5027 static final int NOT_ALLOWED_ERR = 1;
4734 5028
4735 int code; 5029 int code;
4736 5030
4737 String message; 5031 String message;
4738 5032
4739 String name; 5033 String name;
4740 5034
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 5316
5023 String name; 5317 String name;
5024 5318
5025 String toString() native; 5319 String toString() native;
5026 5320
5027 var dartObjectLocalStorage; 5321 var dartObjectLocalStorage;
5028 5322
5029 String get typeName() native; 5323 String get typeName() native;
5030 } 5324 }
5031 5325
5326 class RealtimeAnalyserNode extends AudioNode native "*RealtimeAnalyserNode" {
5327
5328 int fftSize;
5329
5330 int frequencyBinCount;
5331
5332 num maxDecibels;
5333
5334 num minDecibels;
5335
5336 num smoothingTimeConstant;
5337
5338 void getByteFrequencyData(Uint8Array array) native;
5339
5340 void getByteTimeDomainData(Uint8Array array) native;
5341
5342 void getFloatFrequencyData(Float32Array array) native;
5343 }
5344
5032 class Rect native "*Rect" { 5345 class Rect native "*Rect" {
5033 5346
5034 CSSPrimitiveValue bottom; 5347 CSSPrimitiveValue bottom;
5035 5348
5036 CSSPrimitiveValue left; 5349 CSSPrimitiveValue left;
5037 5350
5038 CSSPrimitiveValue right; 5351 CSSPrimitiveValue right;
5039 5352
5040 CSSPrimitiveValue top; 5353 CSSPrimitiveValue top;
5041 5354
(...skipping 4065 matching lines...) Expand 10 before | Expand all | Expand 10 after
9107 9420
9108 class VoidCallback native "*VoidCallback" { 9421 class VoidCallback native "*VoidCallback" {
9109 9422
9110 void handleEvent() native; 9423 void handleEvent() native;
9111 9424
9112 var dartObjectLocalStorage; 9425 var dartObjectLocalStorage;
9113 9426
9114 String get typeName() native; 9427 String get typeName() native;
9115 } 9428 }
9116 9429
9430 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
9431
9432 Float32Array curve;
9433 }
9434
9117 class WebGLActiveInfo native "*WebGLActiveInfo" { 9435 class WebGLActiveInfo native "*WebGLActiveInfo" {
9118 9436
9119 String name; 9437 String name;
9120 9438
9121 int size; 9439 int size;
9122 9440
9123 int type; 9441 int type;
9124 9442
9125 var dartObjectLocalStorage; 9443 var dartObjectLocalStorage;
9126 9444
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
10778 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11096 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
10779 // for details. All rights reserved. Use of this source code is governed by a 11097 // for details. All rights reserved. Use of this source code is governed by a
10780 // BSD-style license that can be found in the LICENSE file. 11098 // BSD-style license that can be found in the LICENSE file.
10781 11099
10782 typedef bool RequestAnimationFrameCallback(int time); 11100 typedef bool RequestAnimationFrameCallback(int time);
10783 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
10784 // for details. All rights reserved. Use of this source code is governed by a 11102 // for details. All rights reserved. Use of this source code is governed by a
10785 // BSD-style license that can be found in the LICENSE file. 11103 // BSD-style license that can be found in the LICENSE file.
10786 11104
10787 typedef void TimeoutHandler(); 11105 typedef void TimeoutHandler();
OLDNEW
« no previous file with comments | « client/dom/dom.dart ('k') | client/dom/frog_dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698