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

Unified Diff: device/generic_sensor/public/cpp/platform_sensor_configuration.h

Issue 2927263002: Add |notify_client_on_reading_change| flag to sensor configuration (Closed)
Patch Set: address nit Created 3 years, 6 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/public/cpp/platform_sensor_configuration.h
diff --git a/device/generic_sensor/public/cpp/platform_sensor_configuration.h b/device/generic_sensor/public/cpp/platform_sensor_configuration.h
index e124eaa1e62a1900faf4d11e301d0c5524575ef4..c6a895eb2a2fcb1910152906abe0c0c9cf2afadf 100644
--- a/device/generic_sensor/public/cpp/platform_sensor_configuration.h
+++ b/device/generic_sensor/public/cpp/platform_sensor_configuration.h
@@ -26,8 +26,14 @@ class DEVICE_GENERIC_SENSOR_PUBLIC_EXPORT PlatformSensorConfiguration {
void set_frequency(double frequency);
double frequency() const { return frequency_; }
+ void set_suppress_on_change_events(bool suppress_on_change_events) {
+ suppress_on_change_events_ = suppress_on_change_events;
+ }
+ bool suppress_on_change_events() const { return suppress_on_change_events_; }
+
private:
double frequency_ = 1.0; // 1 Hz by default.
+ bool suppress_on_change_events_ = false;
};
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698