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

Unified Diff: Source/modules/battery/NavigatorBattery.idl

Issue 182613002: Add support to Battery Status API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
Index: Source/modules/battery/NavigatorBattery.idl
diff --git a/Source/modules/vibration/NavigatorVibration.idl b/Source/modules/battery/NavigatorBattery.idl
similarity index 78%
copy from Source/modules/vibration/NavigatorVibration.idl
copy to Source/modules/battery/NavigatorBattery.idl
index 2c2c140706f3fd4ea5ab31a9824ce1fc22550e07..d62006327ff2013f7cf606c7d0e880db2b23412e 100644
--- a/Source/modules/vibration/NavigatorVibration.idl
+++ b/Source/modules/battery/NavigatorBattery.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2012 Samsung Electronics
+ * Copyright (C) 2014 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -17,9 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
+
partial interface Navigator {
- // FIXME: The contents of the pattern argument should be clamped.
- // See https://code.google.com/p/chromium/issues/detail?id=310138
- boolean vibrate(sequence<unsigned long> pattern);
- boolean vibrate([Clamp] unsigned long time);
+ readonly attribute BatteryManager battery;
};
+

Powered by Google App Engine
This is Rietveld 408576698