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

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

Issue 2798913002: [Sensors] Stop exposing sensor state (Closed)
Patch Set: Comments from Reilly 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
Index: third_party/WebKit/Source/modules/sensor/Sensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.h b/third_party/WebKit/Source/modules/sensor/Sensor.h
index e420d2d361e46545c4a82d63eddea5c407752996..1dfade7d3f4c96e43db939158a49c92c31ce52bd 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
@@ -32,7 +32,7 @@ class Sensor : public EventTargetWithInlineData,
DEFINE_WRAPPERTYPEINFO();
public:
- enum class SensorState { Unconnected, Activating, Activated, Idle, Errored };
+ enum class SensorState { Idle, Activating, Activated };
~Sensor() override;
@@ -48,7 +48,7 @@ class Sensor : public EventTargetWithInlineData,
}
// Getters
- String state() const;
+ bool activated() const;
DOMHighResTimeStamp timestamp(ScriptState*, bool& isNull) const;
DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/modules/sensor/Sensor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698