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

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

Issue 11443002: Revert "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
« 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 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
271 /// @domName AudioGain; @docsEditable true 286 /// @domName AudioGain; @docsEditable true
272 class AudioGain extends AudioParam native "*AudioGain" { 287 class AudioGain extends AudioParam native "*AudioGain" {
273 } 288 }
274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
275 // for details. All rights reserved. Use of this source code is governed by a 290 // for details. All rights reserved. Use of this source code is governed by a
276 // BSD-style license that can be found in the LICENSE file. 291 // BSD-style license that can be found in the LICENSE file.
277 292
278 293
279 /// @domName AudioListener; @docsEditable true 294 /// @domName AudioListener; @docsEditable true
280 class AudioListener native "*AudioListener" { 295 class AudioListener native "*AudioListener" {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 684 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
670 685
671 /// @domName WaveShaperNode.curve; @docsEditable true 686 /// @domName WaveShaperNode.curve; @docsEditable true
672 Float32Array curve; 687 Float32Array curve;
673 } 688 }
674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
675 // for details. All rights reserved. Use of this source code is governed by a 690 // for details. All rights reserved. Use of this source code is governed by a
676 // BSD-style license that can be found in the LICENSE file. 691 // BSD-style license that can be found in the LICENSE file.
677 692
678 693
679 /// @domName WaveTable; @docsEditable true 694 class _AudioElementFactoryProvider {
680 class WaveTable native "*WaveTable" { 695 static AudioElement createAudioElement([String src = null]) {
696 if (src == null) return JS('AudioElement', 'new Audio()');
697 return JS('AudioElement', 'new Audio(#)', src);
698 }
681 } 699 }
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