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 12092118: Change the way that events are annotated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Line length. 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 } 170 }
171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
172 // for details. All rights reserved. Use of this source code is governed by a 172 // for details. All rights reserved. Use of this source code is governed by a
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.complete') 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 183 @DocsEditable
184 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 184 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
185 @deprecated 185 @deprecated
186 AudioContextEvents get on => 186 AudioContextEvents get on =>
187 new AudioContextEvents(this); 187 new AudioContextEvents(this);
188 188
189 @DomName('AudioContext.activeSourceCount') 189 @DomName('AudioContext.activeSourceCount')
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; 271 WaveTable createWaveTable(Float32Array real, Float32Array imag) native;
272 272
273 @DomName('AudioContext.decodeAudioData') 273 @DomName('AudioContext.decodeAudioData')
274 @DocsEditable 274 @DocsEditable
275 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native; 275 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native;
276 276
277 @DomName('AudioContext.startRendering') 277 @DomName('AudioContext.startRendering')
278 @DocsEditable 278 @DocsEditable
279 void startRendering() native; 279 void startRendering() native;
280 280
281 @DomName('AudioContext.complete') 281 @DomName('AudioContext.oncomplete')
282 @DocsEditable 282 @DocsEditable
283 Stream<Event> get onComplete => completeEvent.forTarget(this); 283 Stream<Event> get onComplete => completeEvent.forTarget(this);
284 284
285 factory AudioContext() => JS('AudioContext', 285 factory AudioContext() => JS('AudioContext',
286 'new (window.AudioContext || window.webkitAudioContext)()'); 286 'new (window.AudioContext || window.webkitAudioContext)()');
287 287
288 GainNode createGain() { 288 GainNode createGain() {
289 if (JS('bool', '#.createGain !== undefined', this)) { 289 if (JS('bool', '#.createGain !== undefined', this)) {
290 return JS('GainNode', '#.createGain()', this); 290 return JS('GainNode', '#.createGain()', this);
291 } else { 291 } else {
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 } 841 }
842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 842 // 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 843 // 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. 844 // BSD-style license that can be found in the LICENSE file.
845 845
846 846
847 @DocsEditable 847 @DocsEditable
848 @DomName('WaveTable') 848 @DomName('WaveTable')
849 class WaveTable native "*WaveTable" { 849 class WaveTable native "*WaveTable" {
850 } 850 }
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