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

Unified Diff: third_party/WebKit/Source/modules/sensor/Sensor.idl

Issue 2798913002: [Sensors] Stop exposing sensor state (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/sensor/Sensor.idl
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.idl b/third_party/WebKit/Source/modules/sensor/Sensor.idl
index 45f02c4944cf3416fee2fdbabeb221aa9a309473..b9b2b83aac70306d6c9b67b2357e6921a50595d8 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.idl
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.idl
@@ -6,11 +6,9 @@
// https://w3c.github.io/sensors/#sensor0
Reilly Grant (use Gerrit) 2017/04/05 17:21:18 This link should be updated to: https://w3c.githu
Mikhail 2017/04/06 09:39:58 Done.
enum SensorState {
Reilly Grant (use Gerrit) 2017/04/05 17:21:18 SensorState is no longer defined in the specificat
Mikhail 2017/04/06 09:39:58 Done.
- "unconnected",
- "activating",
- "activated",
"idle",
- "errored"
+ "activating",
+ "activated"
};
[
@@ -18,7 +16,7 @@ enum SensorState {
DependentLifetime,
RuntimeEnabled=Sensor,
] interface Sensor : EventTarget {
- [MeasureAs=GenericSensorState] readonly attribute SensorState state;
+ [MeasureAs=GenericSensorActivated] readonly attribute boolean activated;
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp? timestamp;
[MeasureAs=GenericSensorStart] void start();
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698