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

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/audioelement_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart
diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
index ee711d3d553a3e6a89a62a8155e890a40352a3ca..908a77283af62e576e9d43f34c1ec58bb70081f6 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -415,6 +415,25 @@ class AudioDestinationNode extends AudioNode {
// WARNING: Do not edit - generated code.
+/// @domName HTMLAudioElement
+class AudioElement extends MediaElement {
+
+ factory AudioElement([String src]) {
+ if (!?src) {
+ return _AudioElementFactoryProvider.createAudioElement();
+ }
+ return _AudioElementFactoryProvider.createAudioElement(src);
+ }
+ AudioElement.internal(): super.internal();
+
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+
/// @domName AudioGain
class AudioGain extends AudioParam {
AudioGain.internal(): super.internal();
@@ -1044,11 +1063,7 @@ class WaveShaperNode extends AudioNode {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
-
-/// @domName WaveTable
-class WaveTable extends NativeFieldWrapperClass1 {
- WaveTable.internal();
+class _AudioElementFactoryProvider {
+ static AudioElement createAudioElement([String src]) native "HTMLAudioElement_constructor_Callback";
}
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/audioelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698