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

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

Issue 16311002: IDL roll and expectations fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 library dart.dom.web_audio; 1 library dart.dom.web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // for details. All rights reserved. Use of this source code is governed by a 517 // for details. All rights reserved. Use of this source code is governed by a
518 // BSD-style license that can be found in the LICENSE file. 518 // BSD-style license that can be found in the LICENSE file.
519 519
520 // WARNING: Do not edit - generated code. 520 // WARNING: Do not edit - generated code.
521 521
522 522
523 @DocsEditable 523 @DocsEditable
524 @DomName('AudioNode') 524 @DomName('AudioNode')
525 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 525 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
526 @Experimental 526 @Experimental
527 class AudioNode extends NativeFieldWrapperClass1 { 527 class AudioNode extends EventTarget {
528 AudioNode.internal(); 528 AudioNode.internal() : super.internal();
529 529
530 @DomName('AudioNode.channelCount') 530 @DomName('AudioNode.channelCount')
531 @DocsEditable 531 @DocsEditable
532 int get channelCount native "AudioNode_channelCount_Getter"; 532 int get channelCount native "AudioNode_channelCount_Getter";
533 533
534 @DomName('AudioNode.channelCount') 534 @DomName('AudioNode.channelCount')
535 @DocsEditable 535 @DocsEditable
536 void set channelCount(int value) native "AudioNode_channelCount_Setter"; 536 void set channelCount(int value) native "AudioNode_channelCount_Setter";
537 537
538 @DomName('AudioNode.channelCountMode') 538 @DomName('AudioNode.channelCountMode')
(...skipping 17 matching lines...) Expand all
556 AudioContext get context native "AudioNode_context_Getter"; 556 AudioContext get context native "AudioNode_context_Getter";
557 557
558 @DomName('AudioNode.numberOfInputs') 558 @DomName('AudioNode.numberOfInputs')
559 @DocsEditable 559 @DocsEditable
560 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; 560 int get numberOfInputs native "AudioNode_numberOfInputs_Getter";
561 561
562 @DomName('AudioNode.numberOfOutputs') 562 @DomName('AudioNode.numberOfOutputs')
563 @DocsEditable 563 @DocsEditable
564 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; 564 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
565 565
566 @DomName('AudioNode.addEventListener')
567 @DocsEditable
568 @Experimental // untriaged
569 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "AudioNode_addEventListener_Callback";
570
566 void connect(destination, int output, [int input]) { 571 void connect(destination, int output, [int input]) {
567 if ((destination is AudioNode || destination == null) && (output is int || o utput == null) && (input is int || input == null)) { 572 if ((destination is AudioNode || destination == null) && (output is int || o utput == null) && (input is int || input == null)) {
568 _connect_1(destination, output, input); 573 _connect_1(destination, output, input);
569 return; 574 return;
570 } 575 }
571 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) { 576 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) {
572 _connect_2(destination, output); 577 _connect_2(destination, output);
573 return; 578 return;
574 } 579 }
575 throw new ArgumentError("Incorrect number or type of arguments"); 580 throw new ArgumentError("Incorrect number or type of arguments");
576 } 581 }
577 582
578 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack"; 583 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack";
579 584
580 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; 585 void _connect_2(destination, output) native "AudioNode__connect_2_Callback";
581 586
582 @DomName('AudioNode.disconnect') 587 @DomName('AudioNode.disconnect')
583 @DocsEditable 588 @DocsEditable
584 void disconnect(int output) native "AudioNode_disconnect_Callback"; 589 void disconnect(int output) native "AudioNode_disconnect_Callback";
585 590
591 @DomName('AudioNode.dispatchEvent')
592 @DocsEditable
593 @Experimental // untriaged
594 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback";
595
596 @DomName('AudioNode.removeEventListener')
597 @DocsEditable
598 @Experimental // untriaged
599 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "AudioNode_removeEventListener_Callback";
600
586 } 601 }
587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
588 // for details. All rights reserved. Use of this source code is governed by a 603 // for details. All rights reserved. Use of this source code is governed by a
589 // BSD-style license that can be found in the LICENSE file. 604 // BSD-style license that can be found in the LICENSE file.
590 605
591 // WARNING: Do not edit - generated code. 606 // WARNING: Do not edit - generated code.
592 607
593 608
594 @DocsEditable 609 @DocsEditable
595 @DomName('AudioParam') 610 @DomName('AudioParam')
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 1333
1319 1334
1320 @DocsEditable 1335 @DocsEditable
1321 @DomName('WaveTable') 1336 @DomName('WaveTable')
1322 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1337 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1323 @Experimental 1338 @Experimental
1324 class WaveTable extends NativeFieldWrapperClass1 { 1339 class WaveTable extends NativeFieldWrapperClass1 {
1325 WaveTable.internal(); 1340 WaveTable.internal();
1326 1341
1327 } 1342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698