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

Side by Side Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 11644103: Adding types to dart:html's dartium files where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 7 years, 11 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
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/scripts/systemnative.py » ('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 web_audio; 1 library web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:nativewrappers'; 5 import 'dart:nativewrappers';
6 // DO NOT EDIT 6 // DO NOT EDIT
7 // Auto-generated dart:audio library. 7 // Auto-generated dart:audio library.
8 8
9 9
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; 173 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter";
174 174
175 175
176 /** @domName AudioBufferSourceNode.playbackRate */ 176 /** @domName AudioBufferSourceNode.playbackRate */
177 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter" ; 177 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter" ;
178 178
179 179
180 /** @domName AudioBufferSourceNode.playbackState */ 180 /** @domName AudioBufferSourceNode.playbackState */
181 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; 181 int get playbackState native "AudioBufferSourceNode_playbackState_Getter";
182 182
183 void start(/*double*/ when, [/*double*/ grainOffset, /*double*/ grainDuration] ) { 183 void start(num when, [num grainOffset, num grainDuration]) {
184 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { 184 if ((when is num || when == null) && !?grainOffset && !?grainDuration) {
185 _start_1(when); 185 _start_1(when);
186 return; 186 return;
187 } 187 }
188 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && !?grainDuration) { 188 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && !?grainDuration) {
189 _start_2(when, grainOffset); 189 _start_2(when, grainOffset);
190 return; 190 return;
191 } 191 }
192 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && (grainDuration is num || grainDuration == null)) { 192 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && (grainDuration is num || grainDuration == null)) {
193 _start_3(when, grainOffset, grainDuration); 193 _start_3(when, grainOffset, grainDuration);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 num get sampleRate native "AudioContext_sampleRate_Getter"; 253 num get sampleRate native "AudioContext_sampleRate_Getter";
254 254
255 255
256 /** @domName AudioContext.createAnalyser */ 256 /** @domName AudioContext.createAnalyser */
257 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback"; 257 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback";
258 258
259 259
260 /** @domName AudioContext.createBiquadFilter */ 260 /** @domName AudioContext.createBiquadFilter */
261 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_ Callback"; 261 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_ Callback";
262 262
263 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [/*float*/ sampleRate]) { 263 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) {
264 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null ) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) { 264 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null ) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) {
265 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames, sampleRate); 265 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames, sampleRate);
266 } 266 }
267 if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) { 267 if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) {
268 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames); 268 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames);
269 } 269 }
270 throw new ArgumentError("Incorrect number or type of arguments"); 270 throw new ArgumentError("Incorrect number or type of arguments");
271 } 271 }
272 272
273 273
274 /** @domName AudioContext.createBuffer_1 */ 274 /** @domName AudioContext.createBuffer_1 */
275 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames, sampleRate) native "AudioContext_createBuffer_1_Callback"; 275 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames, sampleRate) native "AudioContext_createBuffer_1_Callback";
276 276
277 277
278 /** @domName AudioContext.createBuffer_2 */ 278 /** @domName AudioContext.createBuffer_2 */
279 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames) native "AudioContext_createBuffer_2_Callback"; 279 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames) native "AudioContext_createBuffer_2_Callback";
280 280
281 281
282 /** @domName AudioContext.createBufferSource */ 282 /** @domName AudioContext.createBufferSource */
283 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo urce_Callback"; 283 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo urce_Callback";
284 284
285 ChannelMergerNode createChannelMerger([/*unsigned long*/ numberOfInputs]) { 285 ChannelMergerNode createChannelMerger([int numberOfInputs]) {
286 if (?numberOfInputs) { 286 if (?numberOfInputs) {
287 return _createChannelMerger_1(numberOfInputs); 287 return _createChannelMerger_1(numberOfInputs);
288 } 288 }
289 return _createChannelMerger_2(); 289 return _createChannelMerger_2();
290 } 290 }
291 291
292 292
293 /** @domName AudioContext.createChannelMerger_1 */ 293 /** @domName AudioContext.createChannelMerger_1 */
294 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_ createChannelMerger_1_Callback"; 294 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_ createChannelMerger_1_Callback";
295 295
296 296
297 /** @domName AudioContext.createChannelMerger_2 */ 297 /** @domName AudioContext.createChannelMerger_2 */
298 ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelM erger_2_Callback"; 298 ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelM erger_2_Callback";
299 299
300 ChannelSplitterNode createChannelSplitter([/*unsigned long*/ numberOfOutputs]) { 300 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) {
301 if (?numberOfOutputs) { 301 if (?numberOfOutputs) {
302 return _createChannelSplitter_1(numberOfOutputs); 302 return _createChannelSplitter_1(numberOfOutputs);
303 } 303 }
304 return _createChannelSplitter_2(); 304 return _createChannelSplitter_2();
305 } 305 }
306 306
307 307
308 /** @domName AudioContext.createChannelSplitter_1 */ 308 /** @domName AudioContext.createChannelSplitter_1 */
309 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon text_createChannelSplitter_1_Callback"; 309 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon text_createChannelSplitter_1_Callback";
310 310
311 311
312 /** @domName AudioContext.createChannelSplitter_2 */ 312 /** @domName AudioContext.createChannelSplitter_2 */
313 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChan nelSplitter_2_Callback"; 313 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChan nelSplitter_2_Callback";
314 314
315 315
316 /** @domName AudioContext.createConvolver */ 316 /** @domName AudioContext.createConvolver */
317 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback" ; 317 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback" ;
318 318
319 DelayNode createDelay([/*double*/ maxDelayTime]) { 319 DelayNode createDelay([num maxDelayTime]) {
320 if (?maxDelayTime) { 320 if (?maxDelayTime) {
321 return _createDelay_1(maxDelayTime); 321 return _createDelay_1(maxDelayTime);
322 } 322 }
323 return _createDelay_2(); 323 return _createDelay_2();
324 } 324 }
325 325
326 326
327 /** @domName AudioContext.createDelay_1 */ 327 /** @domName AudioContext.createDelay_1 */
328 DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Call back"; 328 DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Call back";
329 329
(...skipping 22 matching lines...) Expand all
352 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive "AudioContext_createMediaStreamSource_Callback"; 352 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive "AudioContext_createMediaStreamSource_Callback";
353 353
354 354
355 /** @domName AudioContext.createOscillator */ 355 /** @domName AudioContext.createOscillator */
356 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba ck"; 356 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba ck";
357 357
358 358
359 /** @domName AudioContext.createPanner */ 359 /** @domName AudioContext.createPanner */
360 PannerNode createPanner() native "AudioContext_createPanner_Callback"; 360 PannerNode createPanner() native "AudioContext_createPanner_Callback";
361 361
362 ScriptProcessorNode createScriptProcessor(/*unsigned long*/ bufferSize, [/*uns igned long*/ numberOfInputChannels, /*unsigned long*/ numberOfOutputChannels]) { 362 ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputCh annels, int numberOfOutputChannels]) {
363 if (?numberOfOutputChannels) { 363 if (?numberOfOutputChannels) {
364 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO fOutputChannels); 364 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO fOutputChannels);
365 } 365 }
366 if (?numberOfInputChannels) { 366 if (?numberOfInputChannels) {
367 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); 367 return _createScriptProcessor_2(bufferSize, numberOfInputChannels);
368 } 368 }
369 return _createScriptProcessor_3(bufferSize); 369 return _createScriptProcessor_3(bufferSize);
370 } 370 }
371 371
372 372
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 AudioContext get context native "AudioNode_context_Getter"; 493 AudioContext get context native "AudioNode_context_Getter";
494 494
495 495
496 /** @domName AudioNode.numberOfInputs */ 496 /** @domName AudioNode.numberOfInputs */
497 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; 497 int get numberOfInputs native "AudioNode_numberOfInputs_Getter";
498 498
499 499
500 /** @domName AudioNode.numberOfOutputs */ 500 /** @domName AudioNode.numberOfOutputs */
501 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; 501 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
502 502
503 void connect(destination, /*unsigned long*/ output, [/*unsigned long*/ input]) { 503 void connect(destination, int output, [int input]) {
504 if ((destination is AudioNode || destination == null) && (output is int || o utput == null) && (input is int || input == null)) { 504 if ((destination is AudioNode || destination == null) && (output is int || o utput == null) && (input is int || input == null)) {
505 _connect_1(destination, output, input); 505 _connect_1(destination, output, input);
506 return; 506 return;
507 } 507 }
508 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) { 508 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) {
509 _connect_2(destination, output); 509 _connect_2(destination, output);
510 return; 510 return;
511 } 511 }
512 throw new ArgumentError("Incorrect number or type of arguments"); 512 throw new ArgumentError("Incorrect number or type of arguments");
513 } 513 }
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 // BSD-style license that can be found in the LICENSE file. 1080 // BSD-style license that can be found in the LICENSE file.
1081 1081
1082 // WARNING: Do not edit - generated code. 1082 // WARNING: Do not edit - generated code.
1083 1083
1084 1084
1085 /// @domName WaveTable 1085 /// @domName WaveTable
1086 class WaveTable extends NativeFieldWrapperClass1 { 1086 class WaveTable extends NativeFieldWrapperClass1 {
1087 WaveTable.internal(); 1087 WaveTable.internal();
1088 1088
1089 } 1089 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698