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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. Created 8 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 | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/html/dartium/html_dartium.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 html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 import 'dart:web_audio' as web_audio;
ahe 2012/11/27 07:55:50 Is this import used?
blois 2012/11/27 17:14:55 It's implicitly used in that dart:html can create
ahe 2012/11/27 19:01:23 Thank you for the explanation. Add a TODO?
sra1 2012/12/04 01:30:48 I think it makes sense for AudioElement to be part
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 8 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 9 // BSD-style license that can be found in the LICENSE file.
9 10
10 // DO NOT EDIT 11 // DO NOT EDIT
11 // Auto-generated dart:html library. 12 // Auto-generated dart:html library.
12 13
13 14
14 15
15 16
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class AbstractWorkerEvents extends Events { 69 class AbstractWorkerEvents extends Events {
69 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); 70 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr);
70 71
71 EventListenerList get error => this['error']; 72 EventListenerList get error => this['error'];
72 } 73 }
73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 74 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
74 // for details. All rights reserved. Use of this source code is governed by a 75 // for details. All rights reserved. Use of this source code is governed by a
75 // BSD-style license that can be found in the LICENSE file. 76 // BSD-style license that can be found in the LICENSE file.
76 77
77 78
78 /// @domName AnalyserNode; @docsEditable true
79 class AnalyserNode extends AudioNode native "*AnalyserNode" {
80
81 /// @domName AnalyserNode.fftSize; @docsEditable true
82 int fftSize;
83
84 /// @domName AnalyserNode.frequencyBinCount; @docsEditable true
85 final int frequencyBinCount;
86
87 /// @domName AnalyserNode.maxDecibels; @docsEditable true
88 num maxDecibels;
89
90 /// @domName AnalyserNode.minDecibels; @docsEditable true
91 num minDecibels;
92
93 /// @domName AnalyserNode.smoothingTimeConstant; @docsEditable true
94 num smoothingTimeConstant;
95
96 /// @domName AnalyserNode.getByteFrequencyData; @docsEditable true
97 void getByteFrequencyData(Uint8Array array) native;
98
99 /// @domName AnalyserNode.getByteTimeDomainData; @docsEditable true
100 void getByteTimeDomainData(Uint8Array array) native;
101
102 /// @domName AnalyserNode.getFloatFrequencyData; @docsEditable true
103 void getFloatFrequencyData(Float32Array array) native;
104 }
105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
106 // for details. All rights reserved. Use of this source code is governed by a
107 // BSD-style license that can be found in the LICENSE file.
108
109
110 /// @domName HTMLAnchorElement; @docsEditable true 79 /// @domName HTMLAnchorElement; @docsEditable true
111 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" { 80 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" {
112 81
113 factory AnchorElement({String href}) { 82 factory AnchorElement({String href}) {
114 var e = document.$dom_createElement("a"); 83 var e = document.$dom_createElement("a");
115 if (href != null) e.href = href; 84 if (href != null) e.href = href;
116 return e; 85 return e;
117 } 86 }
118 87
119 /// @domName HTMLAnchorElement.charset; @docsEditable true 88 /// @domName HTMLAnchorElement.charset; @docsEditable true
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 final bool specified; 362 final bool specified;
394 363
395 /// @domName Attr.value; @docsEditable true 364 /// @domName Attr.value; @docsEditable true
396 String value; 365 String value;
397 } 366 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 368 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 369 // BSD-style license that can be found in the LICENSE file.
401 370
402 371
403 /// @domName AudioBuffer; @docsEditable true
404 class AudioBuffer native "*AudioBuffer" {
405
406 /// @domName AudioBuffer.duration; @docsEditable true
407 final num duration;
408
409 /// @domName AudioBuffer.gain; @docsEditable true
410 num gain;
411
412 /// @domName AudioBuffer.length; @docsEditable true
413 final int length;
414
415 /// @domName AudioBuffer.numberOfChannels; @docsEditable true
416 final int numberOfChannels;
417
418 /// @domName AudioBuffer.sampleRate; @docsEditable true
419 final num sampleRate;
420
421 /// @domName AudioBuffer.getChannelData; @docsEditable true
422 Float32Array getChannelData(int channelIndex) native;
423 }
424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
425 // for details. All rights reserved. Use of this source code is governed by a
426 // BSD-style license that can be found in the LICENSE file.
427
428 // WARNING: Do not edit - generated code.
429
430
431 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
433 // for details. All rights reserved. Use of this source code is governed by a
434 // BSD-style license that can be found in the LICENSE file.
435
436
437 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" {
438
439 // TODO(efortuna): Remove these methods when Chrome stable also uses start
440 // instead of noteOn.
441 void start(num when, [num grainOffset, num grainDuration]) {
442 if (JS('bool', '!!#.start', this)) {
443 if (?grainDuration) {
444 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration);
445 } else if (?grainOffset) {
446 JS('void', '#.start(#, #)', this, when, grainOffset);
447 } else {
448 JS('void', '#.start(#)', this, when);
449 }
450 } else {
451 if (?grainDuration) {
452 JS('void', '#.noteOn(#, #, #)', this, when, grainOffset, grainDuration);
453 } else if (?grainOffset) {
454 JS('void', '#.noteOn(#, #)', this, when, grainOffset);
455 } else {
456 JS('void', '#.noteOn(#)', this, when);
457 }
458 }
459 }
460
461 void stop(num when) {
462 if (JS('bool', '!!#.stop', this)) {
463 JS('void', '#.stop(#)', this, when);
464 } else {
465 JS('void', '#.noteOff(#)', this, when);
466 }
467 }
468
469 static const int FINISHED_STATE = 3;
470
471 static const int PLAYING_STATE = 2;
472
473 static const int SCHEDULED_STATE = 1;
474
475 static const int UNSCHEDULED_STATE = 0;
476
477 /// @domName AudioBufferSourceNode.buffer; @docsEditable true
478 AudioBuffer buffer;
479
480 /// @domName AudioBufferSourceNode.gain; @docsEditable true
481 final AudioGain gain;
482
483 /// @domName AudioBufferSourceNode.loop; @docsEditable true
484 bool loop;
485
486 /// @domName AudioBufferSourceNode.loopEnd; @docsEditable true
487 num loopEnd;
488
489 /// @domName AudioBufferSourceNode.loopStart; @docsEditable true
490 num loopStart;
491
492 /// @domName AudioBufferSourceNode.playbackRate; @docsEditable true
493 final AudioParam playbackRate;
494
495 /// @domName AudioBufferSourceNode.playbackState; @docsEditable true
496 final int playbackState;
497
498 }
499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
500 // for details. All rights reserved. Use of this source code is governed by a
501 // BSD-style license that can be found in the LICENSE file.
502
503
504 class AudioContext extends EventTarget native "*AudioContext" {
505 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
506
507 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
508 AudioContextEvents get on =>
509 new AudioContextEvents(this);
510
511 /// @domName AudioContext.activeSourceCount; @docsEditable true
512 final int activeSourceCount;
513
514 /// @domName AudioContext.currentTime; @docsEditable true
515 final num currentTime;
516
517 /// @domName AudioContext.destination; @docsEditable true
518 final AudioDestinationNode destination;
519
520 /// @domName AudioContext.listener; @docsEditable true
521 final AudioListener listener;
522
523 /// @domName AudioContext.sampleRate; @docsEditable true
524 final num sampleRate;
525
526 /// @domName AudioContext.createAnalyser; @docsEditable true
527 AnalyserNode createAnalyser() native;
528
529 /// @domName AudioContext.createBiquadFilter; @docsEditable true
530 BiquadFilterNode createBiquadFilter() native;
531
532 /// @domName AudioContext.createBuffer; @docsEditable true
533 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native;
534
535 /// @domName AudioContext.createBufferSource; @docsEditable true
536 AudioBufferSourceNode createBufferSource() native;
537
538 /// @domName AudioContext.createChannelMerger; @docsEditable true
539 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
540
541 /// @domName AudioContext.createChannelSplitter; @docsEditable true
542 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native;
543
544 /// @domName AudioContext.createConvolver; @docsEditable true
545 ConvolverNode createConvolver() native;
546
547 /// @domName AudioContext.createDelay; @docsEditable true
548 DelayNode createDelay([num maxDelayTime]) native;
549
550 /// @domName AudioContext.createDynamicsCompressor; @docsEditable true
551 DynamicsCompressorNode createDynamicsCompressor() native;
552
553 /// @domName AudioContext.createMediaElementSource; @docsEditable true
554 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native;
555
556 /// @domName AudioContext.createMediaStreamSource; @docsEditable true
557 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive;
558
559 /// @domName AudioContext.createOscillator; @docsEditable true
560 OscillatorNode createOscillator() native;
561
562 /// @domName AudioContext.createPanner; @docsEditable true
563 PannerNode createPanner() native;
564
565 /// @domName AudioContext.createWaveShaper; @docsEditable true
566 WaveShaperNode createWaveShaper() native;
567
568 /// @domName AudioContext.createWaveTable; @docsEditable true
569 WaveTable createWaveTable(Float32Array real, Float32Array imag) native;
570
571 /// @domName AudioContext.decodeAudioData; @docsEditable true
572 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native;
573
574 /// @domName AudioContext.startRendering; @docsEditable true
575 void startRendering() native;
576
577 GainNode createGain() {
578 if (JS('bool', '#.createGain !== undefined', this)) {
579 return JS('GainNode', '#.createGain()', this);
580 } else {
581 return JS('GainNode', '#.createGainNode()', this);
582 }
583 }
584
585 ScriptProcessorNode createScriptProcessor(int bufferSize,
586 [int numberOfInputChannels, int numberOfOutputChannels]) {
587 var function = JS('dynamic', '#.createScriptProcessor || '
588 '#.createJavaScriptNode', this, this);
589 if (?numberOfOutputChannels) {
590 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this,
591 bufferSize, numberOfInputChannels, numberOfOutputChannels);
592 } else if (?numberOfInputChannels) {
593 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this,
594 bufferSize, numberOfInputChannels);
595 } else {
596 return JS('ScriptProcessorNode', '#.call(#, #)', function, this,
597 bufferSize);
598 }
599 }
600 }
601
602 class AudioContextEvents extends Events {
603 AudioContextEvents(EventTarget _ptr) : super(_ptr);
604
605 EventListenerList get complete => this['complete'];
606 }
607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
608 // for details. All rights reserved. Use of this source code is governed by a
609 // BSD-style license that can be found in the LICENSE file.
610
611
612 /// @domName AudioDestinationNode; @docsEditable true
613 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
614
615 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true
616 final int numberOfChannels;
617 }
618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
619 // for details. All rights reserved. Use of this source code is governed by a
620 // BSD-style license that can be found in the LICENSE file.
621
622
623 /// @domName HTMLAudioElement; @docsEditable true
624 class AudioElement extends MediaElement native "*HTMLAudioElement" {
625
626 factory AudioElement([String src]) {
627 if (!?src) {
628 return _AudioElementFactoryProvider.createAudioElement();
629 }
630 return _AudioElementFactoryProvider.createAudioElement(src);
631 }
632 }
633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
634 // for details. All rights reserved. Use of this source code is governed by a
635 // BSD-style license that can be found in the LICENSE file.
636
637
638 /// @domName AudioGain; @docsEditable true
639 class AudioGain extends AudioParam native "*AudioGain" {
640 }
641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
642 // for details. All rights reserved. Use of this source code is governed by a
643 // BSD-style license that can be found in the LICENSE file.
644
645
646 /// @domName AudioListener; @docsEditable true
647 class AudioListener native "*AudioListener" {
648
649 /// @domName AudioListener.dopplerFactor; @docsEditable true
650 num dopplerFactor;
651
652 /// @domName AudioListener.speedOfSound; @docsEditable true
653 num speedOfSound;
654
655 /// @domName AudioListener.setOrientation; @docsEditable true
656 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
657
658 /// @domName AudioListener.setPosition; @docsEditable true
659 void setPosition(num x, num y, num z) native;
660
661 /// @domName AudioListener.setVelocity; @docsEditable true
662 void setVelocity(num x, num y, num z) native;
663 }
664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
665 // for details. All rights reserved. Use of this source code is governed by a
666 // BSD-style license that can be found in the LICENSE file.
667
668
669 /// @domName AudioNode; @docsEditable true
670 class AudioNode native "*AudioNode" {
671
672 /// @domName AudioNode.context; @docsEditable true
673 final AudioContext context;
674
675 /// @domName AudioNode.numberOfInputs; @docsEditable true
676 final int numberOfInputs;
677
678 /// @domName AudioNode.numberOfOutputs; @docsEditable true
679 final int numberOfOutputs;
680
681 /// @domName AudioNode.connect; @docsEditable true
682 void connect(destination, int output, [int input]) native;
683
684 /// @domName AudioNode.disconnect; @docsEditable true
685 void disconnect(int output) native;
686 }
687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
688 // for details. All rights reserved. Use of this source code is governed by a
689 // BSD-style license that can be found in the LICENSE file.
690
691
692 /// @domName AudioParam; @docsEditable true
693 class AudioParam native "*AudioParam" {
694
695 /// @domName AudioParam.defaultValue; @docsEditable true
696 final num defaultValue;
697
698 /// @domName AudioParam.maxValue; @docsEditable true
699 final num maxValue;
700
701 /// @domName AudioParam.minValue; @docsEditable true
702 final num minValue;
703
704 /// @domName AudioParam.name; @docsEditable true
705 final String name;
706
707 /// @domName AudioParam.units; @docsEditable true
708 final int units;
709
710 /// @domName AudioParam.value; @docsEditable true
711 num value;
712
713 /// @domName AudioParam.cancelScheduledValues; @docsEditable true
714 void cancelScheduledValues(num startTime) native;
715
716 /// @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true
717 void exponentialRampToValueAtTime(num value, num time) native;
718
719 /// @domName AudioParam.linearRampToValueAtTime; @docsEditable true
720 void linearRampToValueAtTime(num value, num time) native;
721
722 /// @domName AudioParam.setTargetAtTime; @docsEditable true
723 void setTargetAtTime(num target, num time, num timeConstant) native;
724
725 /// @domName AudioParam.setValueAtTime; @docsEditable true
726 void setValueAtTime(num value, num time) native;
727
728 /// @domName AudioParam.setValueCurveAtTime; @docsEditable true
729 void setValueCurveAtTime(Float32Array values, num time, num duration) native;
730 }
731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
732 // for details. All rights reserved. Use of this source code is governed by a
733 // BSD-style license that can be found in the LICENSE file.
734
735
736 /// @domName AudioProcessingEvent; @docsEditable true
737 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
738
739 /// @domName AudioProcessingEvent.inputBuffer; @docsEditable true
740 final AudioBuffer inputBuffer;
741
742 /// @domName AudioProcessingEvent.outputBuffer; @docsEditable true
743 final AudioBuffer outputBuffer;
744 }
745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
746 // for details. All rights reserved. Use of this source code is governed by a
747 // BSD-style license that can be found in the LICENSE file.
748
749
750 /// @domName AudioSourceNode; @docsEditable true
751 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
752 }
753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
754 // for details. All rights reserved. Use of this source code is governed by a
755 // BSD-style license that can be found in the LICENSE file.
756
757
758 /// @domName HTMLBRElement; @docsEditable true 372 /// @domName HTMLBRElement; @docsEditable true
759 class BRElement extends Element implements Element native "*HTMLBRElement" { 373 class BRElement extends Element implements Element native "*HTMLBRElement" {
760 374
761 factory BRElement() => document.$dom_createElement("br"); 375 factory BRElement() => document.$dom_createElement("br");
762 376
763 /// @domName HTMLBRElement.clear; @docsEditable true 377 /// @domName HTMLBRElement.clear; @docsEditable true
764 String clear; 378 String clear;
765 } 379 }
766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
767 // for details. All rights reserved. Use of this source code is governed by a 381 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 475 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
862 476
863 /// @domName BeforeLoadEvent.url; @docsEditable true 477 /// @domName BeforeLoadEvent.url; @docsEditable true
864 final String url; 478 final String url;
865 } 479 }
866 // 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
867 // 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
868 // BSD-style license that can be found in the LICENSE file. 482 // BSD-style license that can be found in the LICENSE file.
869 483
870 484
871 /// @domName BiquadFilterNode; @docsEditable true
872 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
873
874 static const int ALLPASS = 7;
875
876 static const int BANDPASS = 2;
877
878 static const int HIGHPASS = 1;
879
880 static const int HIGHSHELF = 4;
881
882 static const int LOWPASS = 0;
883
884 static const int LOWSHELF = 3;
885
886 static const int NOTCH = 6;
887
888 static const int PEAKING = 5;
889
890 /// @domName BiquadFilterNode.Q; @docsEditable true
891 final AudioParam Q;
892
893 /// @domName BiquadFilterNode.frequency; @docsEditable true
894 final AudioParam frequency;
895
896 /// @domName BiquadFilterNode.gain; @docsEditable true
897 final AudioParam gain;
898
899 /// @domName BiquadFilterNode.type; @docsEditable true
900 int type;
901
902 /// @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true
903 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native;
904 }
905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
906 // for details. All rights reserved. Use of this source code is governed by a
907 // BSD-style license that can be found in the LICENSE file.
908
909
910 /// @domName Blob; @docsEditable true 485 /// @domName Blob; @docsEditable true
911 class Blob native "*Blob" { 486 class Blob native "*Blob" {
912 487
913 factory Blob(List blobParts, [String type, String endings]) { 488 factory Blob(List blobParts, [String type, String endings]) {
914 if (!?type) { 489 if (!?type) {
915 return _BlobFactoryProvider.createBlob(blobParts); 490 return _BlobFactoryProvider.createBlob(blobParts);
916 } 491 }
917 if (!?endings) { 492 if (!?endings) {
918 return _BlobFactoryProvider.createBlob(blobParts, type); 493 return _BlobFactoryProvider.createBlob(blobParts, type);
919 } 494 }
(...skipping 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after
5109 */ 4684 */
5110 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { 4685 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
5111 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; 4686 this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
5112 } 4687 }
5113 } 4688 }
5114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5115 // for details. All rights reserved. Use of this source code is governed by a 4690 // for details. All rights reserved. Use of this source code is governed by a
5116 // BSD-style license that can be found in the LICENSE file. 4691 // BSD-style license that can be found in the LICENSE file.
5117 4692
5118 4693
5119 /// @domName ChannelMergerNode; @docsEditable true
5120 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
5121 }
5122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5123 // for details. All rights reserved. Use of this source code is governed by a
5124 // BSD-style license that can be found in the LICENSE file.
5125
5126
5127 /// @domName ChannelSplitterNode; @docsEditable true
5128 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" {
5129 }
5130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5131 // for details. All rights reserved. Use of this source code is governed by a
5132 // BSD-style license that can be found in the LICENSE file.
5133
5134
5135 /// @domName CharacterData; @docsEditable true 4694 /// @domName CharacterData; @docsEditable true
5136 class CharacterData extends Node native "*CharacterData" { 4695 class CharacterData extends Node native "*CharacterData" {
5137 4696
5138 /// @domName CharacterData.data; @docsEditable true 4697 /// @domName CharacterData.data; @docsEditable true
5139 String data; 4698 String data;
5140 4699
5141 /// @domName CharacterData.length; @docsEditable true 4700 /// @domName CharacterData.length; @docsEditable true
5142 final int length; 4701 final int length;
5143 4702
5144 /// @domName CharacterData.appendData; @docsEditable true 4703 /// @domName CharacterData.appendData; @docsEditable true
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5351 4910
5352 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true 4911 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true
5353 @Returns('_NodeList') @Creates('_NodeList') 4912 @Returns('_NodeList') @Creates('_NodeList')
5354 List<Node> getDistributedNodes() native; 4913 List<Node> getDistributedNodes() native;
5355 } 4914 }
5356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5357 // for details. All rights reserved. Use of this source code is governed by a 4916 // for details. All rights reserved. Use of this source code is governed by a
5358 // BSD-style license that can be found in the LICENSE file. 4917 // BSD-style license that can be found in the LICENSE file.
5359 4918
5360 4919
5361 /// @domName ConvolverNode; @docsEditable true
5362 class ConvolverNode extends AudioNode native "*ConvolverNode" {
5363
5364 /// @domName ConvolverNode.buffer; @docsEditable true
5365 AudioBuffer buffer;
5366
5367 /// @domName ConvolverNode.normalize; @docsEditable true
5368 bool normalize;
5369 }
5370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5371 // for details. All rights reserved. Use of this source code is governed by a
5372 // BSD-style license that can be found in the LICENSE file.
5373
5374
5375 /// @domName Coordinates; @docsEditable true 4920 /// @domName Coordinates; @docsEditable true
5376 class Coordinates native "*Coordinates" { 4921 class Coordinates native "*Coordinates" {
5377 4922
5378 /// @domName Coordinates.accuracy; @docsEditable true 4923 /// @domName Coordinates.accuracy; @docsEditable true
5379 final num accuracy; 4924 final num accuracy;
5380 4925
5381 /// @domName Coordinates.altitude; @docsEditable true 4926 /// @domName Coordinates.altitude; @docsEditable true
5382 final num altitude; 4927 final num altitude;
5383 4928
5384 /// @domName Coordinates.altitudeAccuracy; @docsEditable true 4929 /// @domName Coordinates.altitudeAccuracy; @docsEditable true
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
6250 class DedicatedWorkerContextEvents extends WorkerContextEvents { 5795 class DedicatedWorkerContextEvents extends WorkerContextEvents {
6251 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 5796 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
6252 5797
6253 EventListenerList get message => this['message']; 5798 EventListenerList get message => this['message'];
6254 } 5799 }
6255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6256 // for details. All rights reserved. Use of this source code is governed by a 5801 // for details. All rights reserved. Use of this source code is governed by a
6257 // BSD-style license that can be found in the LICENSE file. 5802 // BSD-style license that can be found in the LICENSE file.
6258 5803
6259 5804
6260 /// @domName DelayNode; @docsEditable true
6261 class DelayNode extends AudioNode native "*DelayNode" {
6262
6263 /// @domName DelayNode.delayTime; @docsEditable true
6264 final AudioParam delayTime;
6265 }
6266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6267 // for details. All rights reserved. Use of this source code is governed by a
6268 // BSD-style license that can be found in the LICENSE file.
6269
6270
6271 /// @domName HTMLDetailsElement; @docsEditable true 5805 /// @domName HTMLDetailsElement; @docsEditable true
6272 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 5806 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
6273 5807
6274 factory DetailsElement() => document.$dom_createElement("details"); 5808 factory DetailsElement() => document.$dom_createElement("details");
6275 5809
6276 /// @domName HTMLDetailsElement.open; @docsEditable true 5810 /// @domName HTMLDetailsElement.open; @docsEditable true
6277 bool open; 5811 bool open;
6278 } 5812 }
6279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6280 // for details. All rights reserved. Use of this source code is governed by a 5814 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
6969 final String systemId; 6503 final String systemId;
6970 6504
6971 /// @domName DocumentType.remove; @docsEditable true 6505 /// @domName DocumentType.remove; @docsEditable true
6972 void remove() native; 6506 void remove() native;
6973 } 6507 }
6974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6975 // for details. All rights reserved. Use of this source code is governed by a 6509 // for details. All rights reserved. Use of this source code is governed by a
6976 // BSD-style license that can be found in the LICENSE file. 6510 // BSD-style license that can be found in the LICENSE file.
6977 6511
6978 6512
6979 /// @domName DynamicsCompressorNode; @docsEditable true
6980 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
6981
6982 /// @domName DynamicsCompressorNode.attack; @docsEditable true
6983 final AudioParam attack;
6984
6985 /// @domName DynamicsCompressorNode.knee; @docsEditable true
6986 final AudioParam knee;
6987
6988 /// @domName DynamicsCompressorNode.ratio; @docsEditable true
6989 final AudioParam ratio;
6990
6991 /// @domName DynamicsCompressorNode.reduction; @docsEditable true
6992 final AudioParam reduction;
6993
6994 /// @domName DynamicsCompressorNode.release; @docsEditable true
6995 final AudioParam release;
6996
6997 /// @domName DynamicsCompressorNode.threshold; @docsEditable true
6998 final AudioParam threshold;
6999 }
7000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7001 // for details. All rights reserved. Use of this source code is governed by a
7002 // BSD-style license that can be found in the LICENSE file.
7003
7004
7005 /// @domName EXTTextureFilterAnisotropic; @docsEditable true 6513 /// @domName EXTTextureFilterAnisotropic; @docsEditable true
7006 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { 6514 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" {
7007 6515
7008 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 6516 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
7009 6517
7010 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 6518 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
7011 } 6519 }
7012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7013 // for details. All rights reserved. Use of this source code is governed by a 6521 // for details. All rights reserved. Use of this source code is governed by a
7014 // BSD-style license that can be found in the LICENSE file. 6522 // BSD-style license that can be found in the LICENSE file.
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
9117 8625
9118 EventListenerList get storage => this['storage']; 8626 EventListenerList get storage => this['storage'];
9119 8627
9120 EventListenerList get unload => this['unload']; 8628 EventListenerList get unload => this['unload'];
9121 } 8629 }
9122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9123 // for details. All rights reserved. Use of this source code is governed by a 8631 // for details. All rights reserved. Use of this source code is governed by a
9124 // BSD-style license that can be found in the LICENSE file. 8632 // BSD-style license that can be found in the LICENSE file.
9125 8633
9126 8634
9127 /// @domName GainNode; @docsEditable true
9128 class GainNode extends AudioNode native "*GainNode" {
9129
9130 /// @domName GainNode.gain; @docsEditable true
9131 final AudioGain gain;
9132 }
9133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9134 // for details. All rights reserved. Use of this source code is governed by a
9135 // BSD-style license that can be found in the LICENSE file.
9136
9137
9138 /// @domName Gamepad; @docsEditable true 8635 /// @domName Gamepad; @docsEditable true
9139 class Gamepad native "*Gamepad" { 8636 class Gamepad native "*Gamepad" {
9140 8637
9141 /// @domName Gamepad.axes; @docsEditable true 8638 /// @domName Gamepad.axes; @docsEditable true
9142 final List<num> axes; 8639 final List<num> axes;
9143 8640
9144 /// @domName Gamepad.buttons; @docsEditable true 8641 /// @domName Gamepad.buttons; @docsEditable true
9145 final List<num> buttons; 8642 final List<num> buttons;
9146 8643
9147 /// @domName Gamepad.id; @docsEditable true 8644 /// @domName Gamepad.id; @docsEditable true
(...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after
12508 12005
12509 EventListenerList get keyMessage => this['webkitkeymessage']; 12006 EventListenerList get keyMessage => this['webkitkeymessage'];
12510 12007
12511 EventListenerList get needKey => this['webkitneedkey']; 12008 EventListenerList get needKey => this['webkitneedkey'];
12512 } 12009 }
12513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12514 // for details. All rights reserved. Use of this source code is governed by a 12011 // for details. All rights reserved. Use of this source code is governed by a
12515 // BSD-style license that can be found in the LICENSE file. 12012 // BSD-style license that can be found in the LICENSE file.
12516 12013
12517 12014
12518 /// @domName MediaElementAudioSourceNode; @docsEditable true
12519 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" {
12520
12521 /// @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true
12522 final MediaElement mediaElement;
12523 }
12524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12525 // for details. All rights reserved. Use of this source code is governed by a
12526 // BSD-style license that can be found in the LICENSE file.
12527
12528
12529 /// @domName MediaError; @docsEditable true 12015 /// @domName MediaError; @docsEditable true
12530 class MediaError native "*MediaError" { 12016 class MediaError native "*MediaError" {
12531 12017
12532 static const int MEDIA_ERR_ABORTED = 1; 12018 static const int MEDIA_ERR_ABORTED = 1;
12533 12019
12534 static const int MEDIA_ERR_DECODE = 3; 12020 static const int MEDIA_ERR_DECODE = 3;
12535 12021
12536 static const int MEDIA_ERR_ENCRYPTED = 5; 12022 static const int MEDIA_ERR_ENCRYPTED = 5;
12537 12023
12538 static const int MEDIA_ERR_NETWORK = 2; 12024 static const int MEDIA_ERR_NETWORK = 2;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
12731 class MediaStreamEvents extends Events { 12217 class MediaStreamEvents extends Events {
12732 MediaStreamEvents(EventTarget _ptr) : super(_ptr); 12218 MediaStreamEvents(EventTarget _ptr) : super(_ptr);
12733 12219
12734 EventListenerList get ended => this['ended']; 12220 EventListenerList get ended => this['ended'];
12735 } 12221 }
12736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12737 // for details. All rights reserved. Use of this source code is governed by a 12223 // for details. All rights reserved. Use of this source code is governed by a
12738 // BSD-style license that can be found in the LICENSE file. 12224 // BSD-style license that can be found in the LICENSE file.
12739 12225
12740 12226
12741 /// @domName MediaStreamAudioSourceNode; @docsEditable true
12742 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" {
12743
12744 /// @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true
12745 final MediaStream mediaStream;
12746 }
12747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12748 // for details. All rights reserved. Use of this source code is governed by a
12749 // BSD-style license that can be found in the LICENSE file.
12750
12751
12752 /// @domName MediaStreamEvent; @docsEditable true 12227 /// @domName MediaStreamEvent; @docsEditable true
12753 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 12228 class MediaStreamEvent extends Event native "*MediaStreamEvent" {
12754 12229
12755 /// @domName MediaStreamEvent.stream; @docsEditable true 12230 /// @domName MediaStreamEvent.stream; @docsEditable true
12756 final MediaStream stream; 12231 final MediaStream stream;
12757 } 12232 }
12758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12759 // for details. All rights reserved. Use of this source code is governed by a 12234 // for details. All rights reserved. Use of this source code is governed by a
12760 // BSD-style license that can be found in the LICENSE file. 12235 // BSD-style license that can be found in the LICENSE file.
12761 12236
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
14151 bool checkValidity() native; 13626 bool checkValidity() native;
14152 13627
14153 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true 13628 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true
14154 void setCustomValidity(String error) native; 13629 void setCustomValidity(String error) native;
14155 } 13630 }
14156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14157 // for details. All rights reserved. Use of this source code is governed by a 13632 // for details. All rights reserved. Use of this source code is governed by a
14158 // BSD-style license that can be found in the LICENSE file. 13633 // BSD-style license that can be found in the LICENSE file.
14159 13634
14160 13635
14161 /// @domName OfflineAudioCompletionEvent; @docsEditable true
14162 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" {
14163
14164 /// @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true
14165 final AudioBuffer renderedBuffer;
14166 }
14167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14168 // for details. All rights reserved. Use of this source code is governed by a
14169 // BSD-style license that can be found in the LICENSE file.
14170
14171
14172 /// @domName HTMLOptGroupElement; @docsEditable true 13636 /// @domName HTMLOptGroupElement; @docsEditable true
14173 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 13637 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14174 13638
14175 factory OptGroupElement() => document.$dom_createElement("optgroup"); 13639 factory OptGroupElement() => document.$dom_createElement("optgroup");
14176 13640
14177 /// @domName HTMLOptGroupElement.disabled; @docsEditable true 13641 /// @domName HTMLOptGroupElement.disabled; @docsEditable true
14178 bool disabled; 13642 bool disabled;
14179 13643
14180 /// @domName HTMLOptGroupElement.label; @docsEditable true 13644 /// @domName HTMLOptGroupElement.label; @docsEditable true
14181 String label; 13645 String label;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
14223 bool selected; 13687 bool selected;
14224 13688
14225 /// @domName HTMLOptionElement.value; @docsEditable true 13689 /// @domName HTMLOptionElement.value; @docsEditable true
14226 String value; 13690 String value;
14227 } 13691 }
14228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14229 // for details. All rights reserved. Use of this source code is governed by a 13693 // for details. All rights reserved. Use of this source code is governed by a
14230 // BSD-style license that can be found in the LICENSE file. 13694 // BSD-style license that can be found in the LICENSE file.
14231 13695
14232 13696
14233 /// @domName OscillatorNode; @docsEditable true
14234 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" {
14235
14236 static const int CUSTOM = 4;
14237
14238 static const int FINISHED_STATE = 3;
14239
14240 static const int PLAYING_STATE = 2;
14241
14242 static const int SAWTOOTH = 2;
14243
14244 static const int SCHEDULED_STATE = 1;
14245
14246 static const int SINE = 0;
14247
14248 static const int SQUARE = 1;
14249
14250 static const int TRIANGLE = 3;
14251
14252 static const int UNSCHEDULED_STATE = 0;
14253
14254 /// @domName OscillatorNode.detune; @docsEditable true
14255 final AudioParam detune;
14256
14257 /// @domName OscillatorNode.frequency; @docsEditable true
14258 final AudioParam frequency;
14259
14260 /// @domName OscillatorNode.playbackState; @docsEditable true
14261 final int playbackState;
14262
14263 /// @domName OscillatorNode.type; @docsEditable true
14264 int type;
14265
14266 /// @domName OscillatorNode.setWaveTable; @docsEditable true
14267 void setWaveTable(WaveTable waveTable) native;
14268
14269 /// @domName OscillatorNode.start; @docsEditable true
14270 void start(num when) native;
14271
14272 /// @domName OscillatorNode.stop; @docsEditable true
14273 void stop(num when) native;
14274 }
14275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14276 // for details. All rights reserved. Use of this source code is governed by a
14277 // BSD-style license that can be found in the LICENSE file.
14278
14279
14280 /// @domName HTMLOutputElement; @docsEditable true 13697 /// @domName HTMLOutputElement; @docsEditable true
14281 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 13698 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14282 13699
14283 factory OutputElement() => document.$dom_createElement("output"); 13700 factory OutputElement() => document.$dom_createElement("output");
14284 13701
14285 /// @domName HTMLOutputElement.defaultValue; @docsEditable true 13702 /// @domName HTMLOutputElement.defaultValue; @docsEditable true
14286 String defaultValue; 13703 String defaultValue;
14287 13704
14288 /// @domName HTMLOutputElement.form; @docsEditable true 13705 /// @domName HTMLOutputElement.form; @docsEditable true
14289 final FormElement form; 13706 final FormElement form;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
14365 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 13782 class PageTransitionEvent extends Event native "*PageTransitionEvent" {
14366 13783
14367 /// @domName PageTransitionEvent.persisted; @docsEditable true 13784 /// @domName PageTransitionEvent.persisted; @docsEditable true
14368 final bool persisted; 13785 final bool persisted;
14369 } 13786 }
14370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14371 // for details. All rights reserved. Use of this source code is governed by a 13788 // for details. All rights reserved. Use of this source code is governed by a
14372 // BSD-style license that can be found in the LICENSE file. 13789 // BSD-style license that can be found in the LICENSE file.
14373 13790
14374 13791
14375 /// @domName PannerNode; @docsEditable true
14376 class PannerNode extends AudioNode native "*PannerNode" {
14377
14378 static const int EQUALPOWER = 0;
14379
14380 static const int EXPONENTIAL_DISTANCE = 2;
14381
14382 static const int HRTF = 1;
14383
14384 static const int INVERSE_DISTANCE = 1;
14385
14386 static const int LINEAR_DISTANCE = 0;
14387
14388 static const int SOUNDFIELD = 2;
14389
14390 /// @domName PannerNode.coneGain; @docsEditable true
14391 final AudioGain coneGain;
14392
14393 /// @domName PannerNode.coneInnerAngle; @docsEditable true
14394 num coneInnerAngle;
14395
14396 /// @domName PannerNode.coneOuterAngle; @docsEditable true
14397 num coneOuterAngle;
14398
14399 /// @domName PannerNode.coneOuterGain; @docsEditable true
14400 num coneOuterGain;
14401
14402 /// @domName PannerNode.distanceGain; @docsEditable true
14403 final AudioGain distanceGain;
14404
14405 /// @domName PannerNode.distanceModel; @docsEditable true
14406 int distanceModel;
14407
14408 /// @domName PannerNode.maxDistance; @docsEditable true
14409 num maxDistance;
14410
14411 /// @domName PannerNode.panningModel; @docsEditable true
14412 int panningModel;
14413
14414 /// @domName PannerNode.refDistance; @docsEditable true
14415 num refDistance;
14416
14417 /// @domName PannerNode.rolloffFactor; @docsEditable true
14418 num rolloffFactor;
14419
14420 /// @domName PannerNode.setOrientation; @docsEditable true
14421 void setOrientation(num x, num y, num z) native;
14422
14423 /// @domName PannerNode.setPosition; @docsEditable true
14424 void setPosition(num x, num y, num z) native;
14425
14426 /// @domName PannerNode.setVelocity; @docsEditable true
14427 void setVelocity(num x, num y, num z) native;
14428 }
14429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14430 // for details. All rights reserved. Use of this source code is governed by a
14431 // BSD-style license that can be found in the LICENSE file.
14432
14433
14434 /// @domName HTMLParagraphElement; @docsEditable true 13792 /// @domName HTMLParagraphElement; @docsEditable true
14435 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 13793 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14436 13794
14437 factory ParagraphElement() => document.$dom_createElement("p"); 13795 factory ParagraphElement() => document.$dom_createElement("p");
14438 13796
14439 /// @domName HTMLParagraphElement.align; @docsEditable true 13797 /// @domName HTMLParagraphElement.align; @docsEditable true
14440 String align; 13798 String align;
14441 } 13799 }
14442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14443 // for details. All rights reserved. Use of this source code is governed by a 13801 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
15703 String src; 15061 String src;
15704 15062
15705 /// @domName HTMLScriptElement.type; @docsEditable true 15063 /// @domName HTMLScriptElement.type; @docsEditable true
15706 String type; 15064 String type;
15707 } 15065 }
15708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15709 // for details. All rights reserved. Use of this source code is governed by a 15067 // for details. All rights reserved. Use of this source code is governed by a
15710 // BSD-style license that can be found in the LICENSE file. 15068 // BSD-style license that can be found in the LICENSE file.
15711 15069
15712 15070
15713 /// @domName ScriptProcessorNode; @docsEditable true
15714 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" {
15715
15716 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
15717 ScriptProcessorNodeEvents get on =>
15718 new ScriptProcessorNodeEvents(this);
15719
15720 /// @domName ScriptProcessorNode.bufferSize; @docsEditable true
15721 final int bufferSize;
15722 }
15723
15724 class ScriptProcessorNodeEvents extends Events {
15725 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
15726
15727 EventListenerList get audioProcess => this['audioprocess'];
15728 }
15729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15730 // for details. All rights reserved. Use of this source code is governed by a
15731 // BSD-style license that can be found in the LICENSE file.
15732
15733
15734 /// @domName ScriptProfile; @docsEditable true 15071 /// @domName ScriptProfile; @docsEditable true
15735 class ScriptProfile native "*ScriptProfile" { 15072 class ScriptProfile native "*ScriptProfile" {
15736 15073
15737 /// @domName ScriptProfile.head; @docsEditable true 15074 /// @domName ScriptProfile.head; @docsEditable true
15738 final ScriptProfileNode head; 15075 final ScriptProfileNode head;
15739 15076
15740 /// @domName ScriptProfile.title; @docsEditable true 15077 /// @domName ScriptProfile.title; @docsEditable true
15741 final String title; 15078 final String title;
15742 15079
15743 /// @domName ScriptProfile.uid; @docsEditable true 15080 /// @domName ScriptProfile.uid; @docsEditable true
(...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after
18233 17570
18234 // WARNING: Do not edit - generated code. 17571 // WARNING: Do not edit - generated code.
18235 17572
18236 17573
18237 typedef void VoidCallback(); 17574 typedef void VoidCallback();
18238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18239 // for details. All rights reserved. Use of this source code is governed by a 17576 // for details. All rights reserved. Use of this source code is governed by a
18240 // BSD-style license that can be found in the LICENSE file. 17577 // BSD-style license that can be found in the LICENSE file.
18241 17578
18242 17579
18243 /// @domName WaveShaperNode; @docsEditable true
18244 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
18245
18246 /// @domName WaveShaperNode.curve; @docsEditable true
18247 Float32Array curve;
18248 }
18249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18250 // for details. All rights reserved. Use of this source code is governed by a
18251 // BSD-style license that can be found in the LICENSE file.
18252
18253
18254 /// @domName WaveTable; @docsEditable true 17580 /// @domName WaveTable; @docsEditable true
18255 class WaveTable native "*WaveTable" { 17581 class WaveTable native "*WaveTable" {
18256 } 17582 }
18257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18258 // for details. All rights reserved. Use of this source code is governed by a 17584 // for details. All rights reserved. Use of this source code is governed by a
18259 // BSD-style license that can be found in the LICENSE file. 17585 // BSD-style license that can be found in the LICENSE file.
18260 17586
18261 17587
18262 /// @domName WebGLActiveInfo; @docsEditable true 17588 /// @domName WebGLActiveInfo; @docsEditable true
18263 class WebGLActiveInfo native "*WebGLActiveInfo" { 17589 class WebGLActiveInfo native "*WebGLActiveInfo" {
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
20128 19454
20129 class _ArrayBufferFactoryProvider { 19455 class _ArrayBufferFactoryProvider {
20130 static ArrayBuffer createArrayBuffer(int length) => 19456 static ArrayBuffer createArrayBuffer(int length) =>
20131 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); 19457 JS('ArrayBuffer', 'new ArrayBuffer(#)', length);
20132 } 19458 }
20133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20134 // for details. All rights reserved. Use of this source code is governed by a 19460 // for details. All rights reserved. Use of this source code is governed by a
20135 // BSD-style license that can be found in the LICENSE file. 19461 // BSD-style license that can be found in the LICENSE file.
20136 19462
20137 19463
20138 class _AudioElementFactoryProvider {
20139 static AudioElement createAudioElement([String src = null]) {
20140 if (src == null) return JS('AudioElement', 'new Audio()');
20141 return JS('AudioElement', 'new Audio(#)', src);
20142 }
20143 }
20144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20145 // for details. All rights reserved. Use of this source code is governed by a
20146 // BSD-style license that can be found in the LICENSE file.
20147
20148
20149 class _BlobFactoryProvider { 19464 class _BlobFactoryProvider {
20150 static Blob createBlob([List blobParts = null, String type, String endings]) { 19465 static Blob createBlob([List blobParts = null, String type, String endings]) {
20151 // TODO: validate that blobParts is a JS Array and convert if not. 19466 // TODO: validate that blobParts is a JS Array and convert if not.
20152 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed 19467 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed
20153 // array to ArrayBuffer if it is a total view. 19468 // array to ArrayBuffer if it is a total view.
20154 if (type == null && endings == null) { 19469 if (type == null && endings == null) {
20155 return _create_1(blobParts); 19470 return _create_1(blobParts);
20156 } 19471 }
20157 var bag = _create_bag(); 19472 var bag = _create_bag();
20158 if (type != null) _bag_set(bag, 'type', type); 19473 if (type != null) _bag_set(bag, 'type', type);
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
21970 return length == 0; 21285 return length == 0;
21971 } 21286 }
21972 21287
21973 /** 21288 /**
21974 * Checks to see if the node should be included in this map. 21289 * Checks to see if the node should be included in this map.
21975 */ 21290 */
21976 bool _matches(Node node); 21291 bool _matches(Node node);
21977 } 21292 }
21978 21293
21979 /** 21294 /**
21980 * Wrapper to expose Element.attributes as a typed map. 21295 * Wrapper to expose [Element.attributes] as a typed map.
21981 */ 21296 */
21982 class _ElementAttributeMap extends _AttributeMap { 21297 class _ElementAttributeMap extends _AttributeMap {
21983 21298
21984 final Element _element; 21299 final Element _element;
21985 21300
21986 _ElementAttributeMap(this._element); 21301 _ElementAttributeMap(this._element);
21987 21302
21988 bool containsKey(String key) { 21303 bool containsKey(String key) {
21989 return _element.$dom_hasAttribute(key); 21304 return _element.$dom_hasAttribute(key);
21990 } 21305 }
(...skipping 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after
24623 // TODO(vsm): Cache or implement equality. 23938 // TODO(vsm): Cache or implement equality.
24624 return new _HistoryCrossFrame(h); 23939 return new _HistoryCrossFrame(h);
24625 } 23940 }
24626 } 23941 }
24627 } 23942 }
24628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24629 // for details. All rights reserved. Use of this source code is governed by a 23944 // for details. All rights reserved. Use of this source code is governed by a
24630 // BSD-style license that can be found in the LICENSE file. 23945 // BSD-style license that can be found in the LICENSE file.
24631 23946
24632 23947
24633 class _AudioContextFactoryProvider {
24634
24635 static AudioContext createAudioContext() {
24636 return JS('AudioContext',
24637 'new (window.AudioContext || window.webkitAudioContext)()');
24638 }
24639 }
24640
24641 class _PointFactoryProvider { 23948 class _PointFactoryProvider {
24642 static Point createPoint(num x, num y) => 23949 static Point createPoint(num x, num y) =>
24643 JS('Point', 'new WebKitPoint(#, #)', x, y); 23950 JS('Point', 'new WebKitPoint(#, #)', x, y);
24644 } 23951 }
24645 23952
24646 class _WebSocketFactoryProvider { 23953 class _WebSocketFactoryProvider {
24647 static WebSocket createWebSocket(String url) => 23954 static WebSocket createWebSocket(String url) =>
24648 JS('WebSocket', 'new WebSocket(#)', url); 23955 JS('WebSocket', 'new WebSocket(#)', url);
24649 } 23956 }
24650 23957
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
25061 if (length < 0) throw new ArgumentError('length'); 24368 if (length < 0) throw new ArgumentError('length');
25062 if (start < 0) throw new RangeError.value(start); 24369 if (start < 0) throw new RangeError.value(start);
25063 int end = start + length; 24370 int end = start + length;
25064 if (end > a.length) throw new RangeError.value(end); 24371 if (end > a.length) throw new RangeError.value(end);
25065 for (int i = start; i < end; i++) { 24372 for (int i = start; i < end; i++) {
25066 accumulator.add(a[i]); 24373 accumulator.add(a[i]);
25067 } 24374 }
25068 return accumulator; 24375 return accumulator;
25069 } 24376 }
25070 } 24377 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698