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

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

Issue 2481363003: [Sensors] Implement Sensor.onactivate (Closed)
Patch Set: 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 2020d7633eb5887760099a41113172e9033b391e..a24764cd3690684a748808e56e89cc10654ad1e8 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
@@ -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;
@@ -108,7 +108,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