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

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: Rebase to master. Created 4 years, 3 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
« no previous file with comments | « device/generic_sensor/android/sensors_jni_registrar.cc ('k') | device/generic_sensor/platform_sensor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor.h
diff --git a/device/generic_sensor/platform_sensor.h b/device/generic_sensor/platform_sensor.h
index 2019d343af4eb9410b82e75a36c84029f356725c..0f263804d62197b1ee510ea2785935aa5bfc1fd1 100644
--- a/device/generic_sensor/platform_sensor.h
+++ b/device/generic_sensor/platform_sensor.h
@@ -57,7 +57,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;
« no previous file with comments | « device/generic_sensor/android/sensors_jni_registrar.cc ('k') | device/generic_sensor/platform_sensor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698