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

Unified Diff: device/generic_sensor/public/interfaces/sensor.mojom

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
« no previous file with comments | « device/generic_sensor/public/cpp/sensor_struct_traits.cc ('k') | device/generic_sensor/sensor_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/public/interfaces/sensor.mojom
diff --git a/device/generic_sensor/public/interfaces/sensor.mojom b/device/generic_sensor/public/interfaces/sensor.mojom
index 533272a84bab4fa33d767f0b2e897cd8fe7ffc35..11370a6512867c33a3a95ee74be9d6420e8fd7e1 100644
--- a/device/generic_sensor/public/interfaces/sensor.mojom
+++ b/device/generic_sensor/public/interfaces/sensor.mojom
@@ -40,6 +40,15 @@ struct SensorConfiguration {
// Requested frequency in Hz.
double frequency;
// TODO(shalamov): Add map<string, union> for sensor specific configuration.
+
+ // For sensors with ON_CHANGE reporting mode:
+ // If at least one configuration sets this flag to true,
+ // SensorClient::SensorReadingChanged() signal is not sent to the client;
+ // otherwise it is.
+ // For sensors with CONTINUOUS reporting mode:
+ // This flag has no effect since SensorClient::SensorReadingChanged() is not
+ // sent to the client.
+ bool suppress_on_change_events = false;
Mikhail 2017/06/12 11:01:10 Shouldn't it be rather added to SensorInitParams (
juncai 2017/06/12 17:32:10 If I understand it correctly, SensorInitParams is
Mikhail 2017/06/13 12:54:56 Oh I see. My only concern is that 'SensorConfigura
};
// Interface for controlling the Sensor.
« no previous file with comments | « device/generic_sensor/public/cpp/sensor_struct_traits.cc ('k') | device/generic_sensor/sensor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698