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

Unified Diff: sdk/lib/html/dartium/html_dartium.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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index a369b2ae8ac9ff57e7007491da23eb5daf19dfd6..b233a79ff9d93a0f71125c772935273b8f64c318 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -664,6 +664,25 @@ class Attr extends Node {
// 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 HTMLBRElement
class BRElement extends _Element_Merged {
@@ -9213,34 +9232,6 @@ class ElementEvents extends Events {
// WARNING: Do not edit - generated code.
-/// @domName ElementTimeControl
-class ElementTimeControl extends NativeFieldWrapperClass1 {
- ElementTimeControl.internal();
-
-
- /** @domName ElementTimeControl.beginElement */
- void beginElement() native "ElementTimeControl_beginElement_Callback";
-
-
- /** @domName ElementTimeControl.beginElementAt */
- void beginElementAt(num offset) native "ElementTimeControl_beginElementAt_Callback";
-
-
- /** @domName ElementTimeControl.endElement */
- void endElement() native "ElementTimeControl_endElement_Callback";
-
-
- /** @domName ElementTimeControl.endElementAt */
- void endElementAt(num offset) native "ElementTimeControl_endElementAt_Callback";
-
-}
-// 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 ElementTraversal
class ElementTraversal extends NativeFieldWrapperClass1 {
ElementTraversal.internal();
@@ -23387,18 +23378,6 @@ typedef void VoidCallback();
// WARNING: Do not edit - generated code.
-/// @domName WaveTable
-class WaveTable extends NativeFieldWrapperClass1 {
- WaveTable.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 WebGLActiveInfo
class WebGLActiveInfo extends NativeFieldWrapperClass1 {
WebGLActiveInfo.internal();
@@ -25664,6 +25643,14 @@ class _ArrayBufferFactoryProvider {
// BSD-style license that can be found in the LICENSE file.
+class _AudioElementFactoryProvider {
+ static AudioElement createAudioElement([String src]) native "HTMLAudioElement_constructor_Callback";
+}
+// 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.
+
+
class _BlobFactoryProvider {
static Blob createBlob(List blobParts, [String type, String endings]) native "Blob_constructor_Callback";
}

Powered by Google App Engine
This is Rietveld 408576698