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

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

Issue 2885373002: [Sensors] Simplify calculation of the reporting period (Closed)
Patch Set: Created 3 years, 7 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/SensorProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
index 51fd1391aff4bfc1281caead10ce5b92357a5aa3..4e77949336eec2e26a88b8c85c7bb7b401646abc 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
@@ -38,12 +38,7 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
virtual void OnSensorInitialized() {}
// Observer should update its cached reading and send 'onchange'
// event if needed.
- // |timestamp| Reference timestamp in seconds of the moment when
- // sensor reading was updated from the buffer.
- // Note: |timestamp| values are only used to calculate elapsed time
- // between shared buffer readings. These values *do not* correspond
- // to sensor reading timestamps which are obtained on platform side.
- virtual void OnSensorReadingChanged(double timestamp) {}
+ virtual void OnSensorReadingChanged() {}
// An error has occurred.
virtual void OnSensorError(ExceptionCode,
const String& sanitized_message,
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | third_party/WebKit/Source/modules/sensor/SensorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698