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

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

Issue 11348382: Moving AudioElement back to dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
OLDNEW
1 library web_audio; 1 library web_audio;
2 2
3 import 'dart:html'; 3 import 'dart:html';
4 // DO NOT EDIT 4 // DO NOT EDIT
5 // Auto-generated dart:audio library. 5 // Auto-generated dart:audio library.
6 6
7 7
8 8
9 9
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { 261 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
262 262
263 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true 263 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true
264 final int numberOfChannels; 264 final int numberOfChannels;
265 } 265 }
266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
267 // for details. All rights reserved. Use of this source code is governed by a 267 // for details. All rights reserved. Use of this source code is governed by a
268 // BSD-style license that can be found in the LICENSE file. 268 // BSD-style license that can be found in the LICENSE file.
269 269
270 270
271 /// @domName HTMLAudioElement; @docsEditable true
272 class AudioElement extends MediaElement native "*HTMLAudioElement" {
273
274 factory AudioElement([String src]) {
275 if (!?src) {
276 return _AudioElementFactoryProvider.createAudioElement();
277 }
278 return _AudioElementFactoryProvider.createAudioElement(src);
279 }
280 }
281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
282 // for details. All rights reserved. Use of this source code is governed by a
283 // BSD-style license that can be found in the LICENSE file.
284
285
286 /// @domName AudioGain; @docsEditable true 271 /// @domName AudioGain; @docsEditable true
287 class AudioGain extends AudioParam native "*AudioGain" { 272 class AudioGain extends AudioParam native "*AudioGain" {
288 } 273 }
289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
290 // for details. All rights reserved. Use of this source code is governed by a 275 // for details. All rights reserved. Use of this source code is governed by a
291 // BSD-style license that can be found in the LICENSE file. 276 // BSD-style license that can be found in the LICENSE file.
292 277
293 278
294 /// @domName AudioListener; @docsEditable true 279 /// @domName AudioListener; @docsEditable true
295 class AudioListener native "*AudioListener" { 280 class AudioListener native "*AudioListener" {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 669 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
685 670
686 /// @domName WaveShaperNode.curve; @docsEditable true 671 /// @domName WaveShaperNode.curve; @docsEditable true
687 Float32Array curve; 672 Float32Array curve;
688 } 673 }
689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
690 // for details. All rights reserved. Use of this source code is governed by a 675 // for details. All rights reserved. Use of this source code is governed by a
691 // BSD-style license that can be found in the LICENSE file. 676 // BSD-style license that can be found in the LICENSE file.
692 677
693 678
694 class _AudioElementFactoryProvider { 679 /// @domName WaveTable; @docsEditable true
695 static AudioElement createAudioElement([String src = null]) { 680 class WaveTable native "*WaveTable" {
696 if (src == null) return JS('AudioElement', 'new Audio()');
697 return JS('AudioElement', 'new Audio(#)', src);
698 }
699 } 681 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698