| Index: lib/dom/frog/dom_frog.dart
|
| diff --git a/lib/dom/frog/dom_frog.dart b/lib/dom/frog/dom_frog.dart
|
| index fa20ea4c3f41ce4c3b1590b0c6796c161d6eebb4..682d24404289d388aa5e301fc698a538a064ca49 100644
|
| --- a/lib/dom/frog/dom_frog.dart
|
| +++ b/lib/dom/frog/dom_frog.dart
|
| @@ -275,6 +275,23 @@ class _BarInfoJs extends _DOMTypeJs implements BarInfo native "*BarInfo" {
|
| final bool visible;
|
| }
|
|
|
| +class _BatteryManagerJs extends _EventTargetJs implements BatteryManager native "*BatteryManager" {
|
| +
|
| + final bool charging;
|
| +
|
| + final num chargingTime;
|
| +
|
| + final num dischargingTime;
|
| +
|
| + final num level;
|
| +
|
| + void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
|
| +
|
| + bool dispatchEvent(_EventJs evt) native;
|
| +
|
| + void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
|
| +}
|
| +
|
| class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*BeforeLoadEvent" {
|
|
|
| final String url;
|
| @@ -3473,7 +3490,7 @@ class _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat
|
|
|
| _TextTrackJs addTextTrack(String kind, [String label = null, String language = null]) native;
|
|
|
| - String canPlayType(String type) native;
|
| + String canPlayType(String type, String keySystem) native;
|
|
|
| void load() native;
|
|
|
| @@ -3481,6 +3498,12 @@ class _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat
|
|
|
| void play() native;
|
|
|
| + void webkitAddKey(String keySystem, _Uint8ArrayJs key, [_Uint8ArrayJs initData = null, String sessionId = null]) native;
|
| +
|
| + void webkitCancelKeyRequest(String keySystem, String sessionId) native;
|
| +
|
| + void webkitGenerateKeyRequest(String keySystem, [_Uint8ArrayJs initData = null]) native;
|
| +
|
| void webkitSourceAddId(String id, String type) native;
|
|
|
| void webkitSourceAppend(_Uint8ArrayJs data) native;
|
| @@ -4769,6 +4792,8 @@ class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError
|
|
|
| static final int MEDIA_ERR_DECODE = 3;
|
|
|
| + static final int MEDIA_ERR_ENCRYPTED = 5;
|
| +
|
| static final int MEDIA_ERR_NETWORK = 2;
|
|
|
| static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
|
| @@ -4776,6 +4801,40 @@ class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError
|
| final int code;
|
| }
|
|
|
| +class _MediaKeyErrorJs extends _DOMTypeJs implements MediaKeyError native "*MediaKeyError" {
|
| +
|
| + static final int MEDIA_KEYERR_CLIENT = 2;
|
| +
|
| + static final int MEDIA_KEYERR_DOMAIN = 6;
|
| +
|
| + static final int MEDIA_KEYERR_HARDWARECHANGE = 5;
|
| +
|
| + static final int MEDIA_KEYERR_OUTPUT = 4;
|
| +
|
| + static final int MEDIA_KEYERR_SERVICE = 3;
|
| +
|
| + static final int MEDIA_KEYERR_UNKNOWN = 1;
|
| +
|
| + final int code;
|
| +}
|
| +
|
| +class _MediaKeyEventJs extends _EventJs implements MediaKeyEvent native "*MediaKeyEvent" {
|
| +
|
| + final String defaultURL;
|
| +
|
| + final _MediaKeyErrorJs errorCode;
|
| +
|
| + final _Uint8ArrayJs initData;
|
| +
|
| + final String keySystem;
|
| +
|
| + final _Uint8ArrayJs message;
|
| +
|
| + final String sessionId;
|
| +
|
| + final int systemCode;
|
| +}
|
| +
|
| class _MediaListJs extends _DOMTypeJs implements MediaList native "*MediaList" {
|
|
|
| final int length;
|
| @@ -5214,6 +5273,8 @@ class _NavigatorJs extends _DOMTypeJs implements Navigator native "*Navigator" {
|
|
|
| final String vendorSub;
|
|
|
| + final _BatteryManagerJs webkitBattery;
|
| +
|
| final _PointerLockJs webkitPointer;
|
|
|
| void getStorageUpdates() native;
|
| @@ -12469,6 +12530,28 @@ interface BarInfo extends BarProp {
|
|
|
| // WARNING: Do not edit - generated code.
|
|
|
| +interface BatteryManager extends EventTarget {
|
| +
|
| + final bool charging;
|
| +
|
| + final num chargingTime;
|
| +
|
| + final num dischargingTime;
|
| +
|
| + final num level;
|
| +
|
| + void addEventListener(String type, EventListener listener, [bool useCapture]);
|
| +
|
| + bool dispatchEvent(Event evt);
|
| +
|
| + void removeEventListener(String type, EventListener listener, [bool useCapture]);
|
| +}
|
| +// 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.
|
| +
|
| interface BeforeLoadEvent extends Event {
|
|
|
| final String url;
|
| @@ -16099,7 +16182,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
| TextTrack addTextTrack(String kind, [String label, String language]);
|
|
|
| - String canPlayType(String type);
|
| + String canPlayType(String type, String keySystem);
|
|
|
| void load();
|
|
|
| @@ -16107,6 +16190,12 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
| void play();
|
|
|
| + void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, String sessionId]);
|
| +
|
| + void webkitCancelKeyRequest(String keySystem, String sessionId);
|
| +
|
| + void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]);
|
| +
|
| void webkitSourceAddId(String id, String type);
|
|
|
| void webkitSourceAppend(Uint8Array data);
|
| @@ -17474,6 +17563,8 @@ interface MediaError {
|
|
|
| static final int MEDIA_ERR_DECODE = 3;
|
|
|
| + static final int MEDIA_ERR_ENCRYPTED = 5;
|
| +
|
| static final int MEDIA_ERR_NETWORK = 2;
|
|
|
| static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
|
| @@ -17486,6 +17577,50 @@ interface MediaError {
|
|
|
| // WARNING: Do not edit - generated code.
|
|
|
| +interface MediaKeyError {
|
| +
|
| + static final int MEDIA_KEYERR_CLIENT = 2;
|
| +
|
| + static final int MEDIA_KEYERR_DOMAIN = 6;
|
| +
|
| + static final int MEDIA_KEYERR_HARDWARECHANGE = 5;
|
| +
|
| + static final int MEDIA_KEYERR_OUTPUT = 4;
|
| +
|
| + static final int MEDIA_KEYERR_SERVICE = 3;
|
| +
|
| + static final int MEDIA_KEYERR_UNKNOWN = 1;
|
| +
|
| + final int code;
|
| +}
|
| +// 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.
|
| +
|
| +interface MediaKeyEvent extends Event {
|
| +
|
| + final String defaultURL;
|
| +
|
| + final MediaKeyError errorCode;
|
| +
|
| + final Uint8Array initData;
|
| +
|
| + final String keySystem;
|
| +
|
| + final Uint8Array message;
|
| +
|
| + final String sessionId;
|
| +
|
| + final int systemCode;
|
| +}
|
| +// 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.
|
| +
|
| interface MediaList extends List<String> {
|
|
|
| final int length;
|
| @@ -17861,6 +17996,8 @@ interface Navigator {
|
|
|
| final String vendorSub;
|
|
|
| + final BatteryManager webkitBattery;
|
| +
|
| final PointerLock webkitPointer;
|
|
|
| void getStorageUpdates();
|
|
|