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

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

Issue 23055008: Making almost all dom_ methods private. Exceptions will be addressed in a later CL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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' hide deprecated; 5 import 'dart:_collection-dev' hide deprecated;
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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 return completer.future; 453 return completer.future;
454 } 454 }
455 455
456 @DomName('AudioContext.startRendering') 456 @DomName('AudioContext.startRendering')
457 @DocsEditable() 457 @DocsEditable()
458 void startRendering() native "AudioContext_startRendering_Callback"; 458 void startRendering() native "AudioContext_startRendering_Callback";
459 459
460 @DomName('AudioContext.addEventListener') 460 @DomName('AudioContext.addEventListener')
461 @DocsEditable() 461 @DocsEditable()
462 @Experimental() // untriaged 462 @Experimental() // untriaged
463 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "AudioContext_addEventListener_Callback"; 463 void _addEventListener(String type, EventListener listener, [bool useCapture]) native "AudioContext_addEventListener_Callback";
464 464
465 @DomName('AudioContext.dispatchEvent') 465 @DomName('AudioContext.dispatchEvent')
466 @DocsEditable() 466 @DocsEditable()
467 @Experimental() // untriaged 467 @Experimental() // untriaged
468 bool dispatchEvent(Event event) native "AudioContext_dispatchEvent_Callback"; 468 bool dispatchEvent(Event event) native "AudioContext_dispatchEvent_Callback";
469 469
470 @DomName('AudioContext.removeEventListener') 470 @DomName('AudioContext.removeEventListener')
471 @DocsEditable() 471 @DocsEditable()
472 @Experimental() // untriaged 472 @Experimental() // untriaged
473 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "AudioContext_removeEventListener_Callback"; 473 void _removeEventListener(String type, EventListener listener, [bool useCaptur e]) native "AudioContext_removeEventListener_Callback";
474 474
475 @DomName('AudioContext.oncomplete') 475 @DomName('AudioContext.oncomplete')
476 @DocsEditable() 476 @DocsEditable()
477 Stream<Event> get onComplete => completeEvent.forTarget(this); 477 Stream<Event> get onComplete => completeEvent.forTarget(this);
478 478
479 } 479 }
480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
481 // for details. All rights reserved. Use of this source code is governed by a 481 // for details. All rights reserved. Use of this source code is governed by a
482 // BSD-style license that can be found in the LICENSE file. 482 // BSD-style license that can be found in the LICENSE file.
483 483
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 AudioContext get context native "AudioNode_context_Getter"; 580 AudioContext get context native "AudioNode_context_Getter";
581 581
582 @DomName('AudioNode.numberOfInputs') 582 @DomName('AudioNode.numberOfInputs')
583 @DocsEditable() 583 @DocsEditable()
584 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; 584 int get numberOfInputs native "AudioNode_numberOfInputs_Getter";
585 585
586 @DomName('AudioNode.numberOfOutputs') 586 @DomName('AudioNode.numberOfOutputs')
587 @DocsEditable() 587 @DocsEditable()
588 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; 588 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
589 589
590 void $dom_connect(destination, int output, [int input]) { 590 void _connect(destination, int output, [int input]) {
591 if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) { 591 if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) {
592 _connect_1(destination, output, input); 592 _connect_1(destination, output, input);
593 return; 593 return;
594 } 594 }
595 if ((output is int || output == null) && (destination is AudioParam || desti nation == null) && input == null) { 595 if ((output is int || output == null) && (destination is AudioParam || desti nation == null) && input == null) {
596 _connect_2(destination, output); 596 _connect_2(destination, output);
597 return; 597 return;
598 } 598 }
599 throw new ArgumentError("Incorrect number or type of arguments"); 599 throw new ArgumentError("Incorrect number or type of arguments");
600 } 600 }
601 601
602 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack"; 602 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack";
603 603
604 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; 604 void _connect_2(destination, output) native "AudioNode__connect_2_Callback";
605 605
606 @DomName('AudioNode.disconnect') 606 @DomName('AudioNode.disconnect')
607 @DocsEditable() 607 @DocsEditable()
608 void disconnect(int output) native "AudioNode_disconnect_Callback"; 608 void disconnect(int output) native "AudioNode_disconnect_Callback";
609 609
610 @DomName('AudioNode.addEventListener') 610 @DomName('AudioNode.addEventListener')
611 @DocsEditable() 611 @DocsEditable()
612 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "AudioNode_addEventListener_Callback"; 612 void _addEventListener(String type, EventListener listener, [bool useCapture]) native "AudioNode_addEventListener_Callback";
613 613
614 @DomName('AudioNode.dispatchEvent') 614 @DomName('AudioNode.dispatchEvent')
615 @DocsEditable() 615 @DocsEditable()
616 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; 616 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback";
617 617
618 @DomName('AudioNode.removeEventListener') 618 @DomName('AudioNode.removeEventListener')
619 @DocsEditable() 619 @DocsEditable()
620 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "AudioNode_removeEventListener_Callback"; 620 void _removeEventListener(String type, EventListener listener, [bool useCaptur e]) native "AudioNode_removeEventListener_Callback";
621 621
622 @DomName('AudioNode.connect') 622 @DomName('AudioNode.connect')
623 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => 623 void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
624 $dom_connect(destination, output, input); 624 _connect(destination, output, input);
625 625
626 @DomName('AudioNode.connect') 626 @DomName('AudioNode.connect')
627 void connectParam(AudioParam destination, [int output = 0]) => 627 void connectParam(AudioParam destination, [int output = 0]) =>
628 $dom_connect(destination, output); 628 _connect(destination, output);
629 } 629 }
630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
631 // for details. All rights reserved. Use of this source code is governed by a 631 // for details. All rights reserved. Use of this source code is governed by a
632 // BSD-style license that can be found in the LICENSE file. 632 // BSD-style license that can be found in the LICENSE file.
633 633
634 // WARNING: Do not edit - generated code. 634 // WARNING: Do not edit - generated code.
635 635
636 636
637 @DocsEditable() 637 @DocsEditable()
638 @DomName('AudioParam') 638 @DomName('AudioParam')
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 1392
1393 @DomName('WaveShaperNode.oversample') 1393 @DomName('WaveShaperNode.oversample')
1394 @DocsEditable() 1394 @DocsEditable()
1395 String get oversample native "WaveShaperNode_oversample_Getter"; 1395 String get oversample native "WaveShaperNode_oversample_Getter";
1396 1396
1397 @DomName('WaveShaperNode.oversample') 1397 @DomName('WaveShaperNode.oversample')
1398 @DocsEditable() 1398 @DocsEditable()
1399 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; 1399 void set oversample(String value) native "WaveShaperNode_oversample_Setter";
1400 1400
1401 } 1401 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698