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

Side by Side Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 12217124: Removing deprecated events syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_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 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:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_foreign_helper' show JS; 7 import 'dart:_foreign_helper' show JS;
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated dart:audio library. 9 // Auto-generated dart:audio library.
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // BSD-style license that can be found in the LICENSE file. 173 // BSD-style license that can be found in the LICENSE file.
174 174
175 175
176 @DomName('AudioContext') 176 @DomName('AudioContext')
177 class AudioContext extends EventTarget native "*AudioContext" { 177 class AudioContext extends EventTarget native "*AudioContext" {
178 178
179 @DomName('AudioContext.completeEvent') 179 @DomName('AudioContext.completeEvent')
180 @DocsEditable 180 @DocsEditable
181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
182 182
183 @DocsEditable
184 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
185 @deprecated
186 AudioContextEvents get on =>
187 new AudioContextEvents(this);
188
189 @DomName('AudioContext.activeSourceCount') 183 @DomName('AudioContext.activeSourceCount')
190 @DocsEditable 184 @DocsEditable
191 final int activeSourceCount; 185 final int activeSourceCount;
192 186
193 @DomName('AudioContext.currentTime') 187 @DomName('AudioContext.currentTime')
194 @DocsEditable 188 @DocsEditable
195 final num currentTime; 189 final num currentTime;
196 190
197 @DomName('AudioContext.destination') 191 @DomName('AudioContext.destination')
198 @DocsEditable 192 @DocsEditable
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 bufferSize, numberOfInputChannels, numberOfOutputChannels); 296 bufferSize, numberOfInputChannels, numberOfOutputChannels);
303 } else if (?numberOfInputChannels) { 297 } else if (?numberOfInputChannels) {
304 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, 298 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this,
305 bufferSize, numberOfInputChannels); 299 bufferSize, numberOfInputChannels);
306 } else { 300 } else {
307 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, 301 return JS('ScriptProcessorNode', '#.call(#, #)', function, this,
308 bufferSize); 302 bufferSize);
309 } 303 }
310 } 304 }
311 } 305 }
312
313 @DocsEditable
314 @deprecated
315 class AudioContextEvents extends Events {
316 @DocsEditable
317 AudioContextEvents(EventTarget _ptr) : super(_ptr);
318
319 @DocsEditable
320 EventListenerList get complete => this['complete'];
321 }
322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
323 // for details. All rights reserved. Use of this source code is governed by a 307 // for details. All rights reserved. Use of this source code is governed by a
324 // BSD-style license that can be found in the LICENSE file. 308 // BSD-style license that can be found in the LICENSE file.
325 309
326 310
327 @DocsEditable 311 @DocsEditable
328 @DomName('AudioDestinationNode') 312 @DomName('AudioDestinationNode')
329 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { 313 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
330 314
331 @DomName('AudioDestinationNode.numberOfChannels') 315 @DomName('AudioDestinationNode.numberOfChannels')
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 } 825 }
842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
843 // for details. All rights reserved. Use of this source code is governed by a 827 // for details. All rights reserved. Use of this source code is governed by a
844 // BSD-style license that can be found in the LICENSE file. 828 // BSD-style license that can be found in the LICENSE file.
845 829
846 830
847 @DocsEditable 831 @DocsEditable
848 @DomName('WaveTable') 832 @DomName('WaveTable')
849 class WaveTable native "*WaveTable" { 833 class WaveTable native "*WaveTable" {
850 } 834 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698