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

Unified Diff: lib/dom/dom.dart

Issue 10035039: Update fremontcut with current chrome feature defines (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add battery APIs Created 8 years, 8 months 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 | « no previous file | lib/dom/frog/dom_frog.dart » ('j') | lib/dom/scripts/fremontcutbuilder.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/dom.dart
diff --git a/lib/dom/dom.dart b/lib/dom/dom.dart
index 340004d0bf84b8d7ac80e50a06e6539a5c3e9bc3..6f5b6bf0414fcdec8f34005c1b19c231dfd27d01 100644
--- a/lib/dom/dom.dart
+++ b/lib/dom/dom.dart
@@ -570,6 +570,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;
@@ -4200,7 +4222,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();
@@ -4208,6 +4230,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);
@@ -5575,6 +5603,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;
@@ -5587,6 +5617,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;
@@ -5962,6 +6036,8 @@ interface Navigator {
final String vendorSub;
+ final BatteryManager webkitBattery;
+
final PointerLock webkitPointer;
void getStorageUpdates();
« no previous file with comments | « no previous file | lib/dom/frog/dom_frog.dart » ('j') | lib/dom/scripts/fremontcutbuilder.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698