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

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

Issue 2481363003: [Sensors] Implement Sensor.onactivate (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 db803942314c1af8f82f6fea213f54881594da49..7e2ec4b39e382c1d9d7e68274570c48498848a1c 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 { IDLE, ACTIVATING, ACTIVE, ERRORED };
+ enum class SensorState { Idle, Activating, Active, Errored };
~Sensor() override;
@@ -54,7 +54,7 @@ class Sensor : public EventTargetWithInlineData,
DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
- DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(activate);
// ActiveScriptWrappable overrides.
bool hasPendingActivity() const override;
@@ -110,7 +110,7 @@ class Sensor : public EventTargetWithInlineData,
void updatePollingStatus();
void notifySensorReadingChanged();
- void notifyStateChanged();
+ void notifyOnActivate();
void notifyError(DOMException* error);
private:

Powered by Google App Engine
This is Rietveld 408576698