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

Unified Diff: device/generic_sensor/platform_sensor.h

Issue 2284613002: [sensors] Android platform adaptation for Generic Sensor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded dependencies. Created 4 years, 4 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: device/generic_sensor/platform_sensor.h
diff --git a/device/generic_sensor/platform_sensor.h b/device/generic_sensor/platform_sensor.h
index 0eeb247332df3ced66eda12cc73074bee5cb3abe..9bc6a66c78a7d5413c42b540585bc6166a23a24f 100644
--- a/device/generic_sensor/platform_sensor.h
+++ b/device/generic_sensor/platform_sensor.h
@@ -56,7 +56,10 @@ class PlatformSensor : public base::RefCountedThreadSafe<PlatformSensor> {
using ConfigMap = std::map<Client*, std::list<PlatformSensorConfiguration>>;
- virtual bool UpdateSensorInternal(const ConfigMap& configurations) = 0;
+ virtual bool UpdateSensorInternal(const ConfigMap& configurations);
+ virtual bool StartSensor(
+ const PlatformSensorConfiguration& configuration) = 0;
+ virtual void StopSensor() = 0;
virtual bool CheckSensorConfiguration(
const PlatformSensorConfiguration& configuration) = 0;

Powered by Google App Engine
This is Rietveld 408576698