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

Unified Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 410863002: Redo "Use @Native annotation on dart2js DOM native classes" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index 5fdb510a4ed0a9758099444a82dd45da7a5b4ff6..3638497396303cba4dad7cdbe9387f54c20fbe93 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -10,7 +10,7 @@ import 'dart:html';
import 'dart:html_common';
import 'dart:_native_typed_data';
import 'dart:typed_data';
-import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS;
+import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// DO NOT EDIT - unless you are editing documentation as per:
@@ -29,7 +29,8 @@ import 'dart:_interceptors' show Interceptor;
@DomName('AnalyserNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AnalyserNode
@Experimental()
-class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode" {
+@Native("AnalyserNode,RealtimeAnalyserNode")
+class AnalyserNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AnalyserNode._() { throw new UnsupportedError("Not supported"); }
@@ -74,7 +75,8 @@ class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode"
@DomName('AudioBuffer')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section
@Experimental()
-class AudioBuffer extends Interceptor native "AudioBuffer" {
+@Native("AudioBuffer")
+class AudioBuffer extends Interceptor {
// To suppress missing implicit constructor warnings.
factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
@@ -119,7 +121,8 @@ typedef void AudioBufferCallback(AudioBuffer audioBuffer);
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode-section
-class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNode" {
+@Native("AudioBufferSourceNode")
+class AudioBufferSourceNode extends AudioSourceNode {
// TODO(efortuna): Remove these methods when Chrome stable also uses start
// instead of noteOn.
@@ -229,7 +232,8 @@ class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioContext-section
-class AudioContext extends EventTarget native "AudioContext,webkitAudioContext" {
+@Native("AudioContext,webkitAudioContext")
+class AudioContext extends EventTarget {
// To suppress missing implicit constructor warnings.
factory AudioContext._() { throw new UnsupportedError("Not supported"); }
@@ -391,7 +395,8 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
@DomName('AudioDestinationNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDestinationNode-section
@Experimental()
-class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
+@Native("AudioDestinationNode")
+class AudioDestinationNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
@@ -408,7 +413,8 @@ class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
@DomName('AudioListener')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener-section
@Experimental()
-class AudioListener extends Interceptor native "AudioListener" {
+@Native("AudioListener")
+class AudioListener extends Interceptor {
// To suppress missing implicit constructor warnings.
factory AudioListener._() { throw new UnsupportedError("Not supported"); }
@@ -440,7 +446,8 @@ class AudioListener extends Interceptor native "AudioListener" {
@DomName('AudioNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section
@Experimental()
-class AudioNode extends EventTarget native "AudioNode" {
+@Native("AudioNode")
+class AudioNode extends EventTarget {
// To suppress missing implicit constructor warnings.
factory AudioNode._() { throw new UnsupportedError("Not supported"); }
@@ -494,7 +501,8 @@ class AudioNode extends EventTarget native "AudioNode" {
@DomName('AudioParam')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioParam
@Experimental()
-class AudioParam extends Interceptor native "AudioParam" {
+@Native("AudioParam")
+class AudioParam extends Interceptor {
// To suppress missing implicit constructor warnings.
factory AudioParam._() { throw new UnsupportedError("Not supported"); }
@@ -555,7 +563,8 @@ class AudioParam extends Interceptor native "AudioParam" {
@DomName('AudioProcessingEvent')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioProcessingEvent-section
@Experimental()
-class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
+@Native("AudioProcessingEvent")
+class AudioProcessingEvent extends Event {
// To suppress missing implicit constructor warnings.
factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported"); }
@@ -576,7 +585,8 @@ class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
@DomName('AudioSourceNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
@Experimental()
-class AudioSourceNode extends AudioNode native "AudioSourceNode" {
+@Native("AudioSourceNode")
+class AudioSourceNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); }
}
@@ -589,7 +599,8 @@ class AudioSourceNode extends AudioNode native "AudioSourceNode" {
@DomName('BiquadFilterNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadFilterNode-section
@Experimental()
-class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
+@Native("BiquadFilterNode")
+class BiquadFilterNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
@@ -658,7 +669,8 @@ class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
@DomName('ChannelMergerNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelMergerNode-section
@Experimental()
-class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannelMerger" {
+@Native("ChannelMergerNode,AudioChannelMerger")
+class ChannelMergerNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); }
}
@@ -671,7 +683,8 @@ class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannel
@DomName('ChannelSplitterNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelSplitterNode-section
@Experimental()
-class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioChannelSplitter" {
+@Native("ChannelSplitterNode,AudioChannelSplitter")
+class ChannelSplitterNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); }
}
@@ -684,7 +697,8 @@ class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioCha
@DomName('ConvolverNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ConvolverNode
@Experimental()
-class ConvolverNode extends AudioNode native "ConvolverNode" {
+@Native("ConvolverNode")
+class ConvolverNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ConvolverNode._() { throw new UnsupportedError("Not supported"); }
@@ -705,7 +719,8 @@ class ConvolverNode extends AudioNode native "ConvolverNode" {
@DomName('DelayNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNode
@Experimental()
-class DelayNode extends AudioNode native "DelayNode" {
+@Native("DelayNode")
+class DelayNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory DelayNode._() { throw new UnsupportedError("Not supported"); }
@@ -722,7 +737,8 @@ class DelayNode extends AudioNode native "DelayNode" {
@DomName('DynamicsCompressorNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DynamicsCompressorNode
@Experimental()
-class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
+@Native("DynamicsCompressorNode")
+class DynamicsCompressorNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported"); }
@@ -759,7 +775,8 @@ class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
@DomName('GainNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNode
@Experimental()
-class GainNode extends AudioNode native "GainNode,AudioGainNode" {
+@Native("GainNode,AudioGainNode")
+class GainNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory GainNode._() { throw new UnsupportedError("Not supported"); }
@@ -776,7 +793,8 @@ class GainNode extends AudioNode native "GainNode,AudioGainNode" {
@DomName('MediaElementAudioSourceNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaElementAudioSourceNode
@Experimental()
-class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAudioSourceNode" {
+@Native("MediaElementAudioSourceNode")
+class MediaElementAudioSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supported"); }
@@ -794,7 +812,8 @@ class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
@DomName('MediaStreamAudioDestinationNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioDestinationNode
@Experimental()
-class MediaStreamAudioDestinationNode extends AudioNode native "MediaStreamAudioDestinationNode" {
+@Native("MediaStreamAudioDestinationNode")
+class MediaStreamAudioDestinationNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
@@ -811,7 +830,8 @@ class MediaStreamAudioDestinationNode extends AudioNode native "MediaStreamAudio
@DomName('MediaStreamAudioSourceNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioSourceNode
@Experimental()
-class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudioSourceNode" {
+@Native("MediaStreamAudioSourceNode")
+class MediaStreamAudioSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not supported"); }
@@ -828,7 +848,8 @@ class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
@DomName('OfflineAudioCompletionEvent')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioCompletionEvent-section
@Experimental()
-class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEvent" {
+@Native("OfflineAudioCompletionEvent")
+class OfflineAudioCompletionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supported"); }
@@ -845,7 +866,8 @@ class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
@DomName('OfflineAudioContext')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioContext-section
@Experimental()
-class OfflineAudioContext extends AudioContext native "OfflineAudioContext" {
+@Native("OfflineAudioContext")
+class OfflineAudioContext extends AudioContext {
// To suppress missing implicit constructor warnings.
factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); }
@@ -865,7 +887,8 @@ class OfflineAudioContext extends AudioContext native "OfflineAudioContext" {
@DomName('OscillatorNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-OscillatorNode
@Experimental()
-class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator" {
+@Native("OscillatorNode,Oscillator")
+class OscillatorNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
@@ -944,7 +967,8 @@ class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
@DomName('PannerNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerNode
@Experimental()
-class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" {
+@Native("PannerNode,AudioPannerNode")
+class PannerNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory PannerNode._() { throw new UnsupportedError("Not supported"); }
@@ -1000,7 +1024,8 @@ class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" {
@DocsEditable()
@DomName('PeriodicWave')
@Experimental() // untriaged
-class PeriodicWave extends Interceptor native "PeriodicWave" {
+@Native("PeriodicWave")
+class PeriodicWave extends Interceptor {
// To suppress missing implicit constructor warnings.
factory PeriodicWave._() { throw new UnsupportedError("Not supported"); }
}
@@ -1013,7 +1038,8 @@ class PeriodicWave extends Interceptor native "PeriodicWave" {
@DomName('ScriptProcessorNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode
@Experimental()
-class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode,JavaScriptAudioNode" {
+@Native("ScriptProcessorNode,JavaScriptAudioNode")
+class ScriptProcessorNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
@@ -1054,7 +1080,8 @@ class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode,JavaScri
@DomName('WaveShaperNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-WaveShaperNode
@Experimental()
-class WaveShaperNode extends AudioNode native "WaveShaperNode" {
+@Native("WaveShaperNode")
+class WaveShaperNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698