| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 98b5cf98787592e9919bae816f81b8a35fecb874..d7ab0e52ec47884c7224fd0a4c10499c83e8a8c3 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -375,6 +375,21 @@ class Attr extends Node native "*Attr" {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| +/// @domName HTMLAudioElement; @docsEditable true
|
| +class AudioElement extends MediaElement native "*HTMLAudioElement" {
|
| +
|
| + factory AudioElement([String src]) {
|
| + if (!?src) {
|
| + return _AudioElementFactoryProvider.createAudioElement();
|
| + }
|
| + return _AudioElementFactoryProvider.createAudioElement(src);
|
| + }
|
| +}
|
| +// 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.
|
| +
|
| +
|
| /// @domName HTMLBRElement; @docsEditable true
|
| class BRElement extends Element implements Element native "*HTMLBRElement" {
|
|
|
| @@ -7586,26 +7601,6 @@ class ElementEvents extends Events {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -/// @domName ElementTimeControl
|
| -abstract class ElementTimeControl {
|
| -
|
| - /// @domName ElementTimeControl.beginElement; @docsEditable true
|
| - void beginElement();
|
| -
|
| - /// @domName ElementTimeControl.beginElementAt; @docsEditable true
|
| - void beginElementAt(num offset);
|
| -
|
| - /// @domName ElementTimeControl.endElement; @docsEditable true
|
| - void endElement();
|
| -
|
| - /// @domName ElementTimeControl.endElementAt; @docsEditable true
|
| - void endElementAt(num offset);
|
| -}
|
| -// 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.
|
| -
|
| -
|
| /// @domName ElementTraversal
|
| abstract class ElementTraversal {
|
|
|
| @@ -18436,14 +18431,6 @@ typedef void VoidCallback();
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -/// @domName WaveTable; @docsEditable true
|
| -class WaveTable native "*WaveTable" {
|
| -}
|
| -// 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.
|
| -
|
| -
|
| /// @domName WebGLActiveInfo; @docsEditable true
|
| class WebGLActiveInfo native "*WebGLActiveInfo" {
|
|
|
| @@ -20347,6 +20334,17 @@ class _ArrayBufferFactoryProvider {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| +class _AudioElementFactoryProvider {
|
| + static AudioElement createAudioElement([String src = null]) {
|
| + if (src == null) return JS('AudioElement', 'new Audio()');
|
| + return JS('AudioElement', 'new Audio(#)', src);
|
| + }
|
| +}
|
| +// 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 = null, String type, String endings]) {
|
| // TODO: validate that blobParts is a JS Array and convert if not.
|
|
|