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

Side by Side Diff: Source/modules/battery/BatteryManager.idl

Issue 182613002: Add support to Battery Status API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add to RunTimeEnabledFeatures Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // http://dev.w3.org/2009/dap/system-info/battery-status.html
6 [
7 NoInterfaceObject,
8 ActiveDOMObject,
9 RuntimeEnabled=BatteryStatus,
10 ] interface BatteryManager : EventTarget {
11 readonly attribute boolean charging;
12 readonly attribute double chargingTime;
13 readonly attribute double dischargingTime;
14 readonly attribute double level;
abarth-chromium 2014/02/28 06:45:14 I suspect we'll want to remove these properties as
15
16 attribute EventHandler onchargingchange;
17 attribute EventHandler onchargingtimechange;
18 attribute EventHandler ondischargingtimechange;
19 attribute EventHandler onlevelchange;
20
21 };
22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698