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

Unified Diff: device/generic_sensor/public/cpp/sensor_struct_traits.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/sensor_struct_traits.h
diff --git a/device/generic_sensor/public/cpp/sensor_struct_traits.h b/device/generic_sensor/public/cpp/sensor_struct_traits.h
index 0514c1e2bab176ae3add30e319585d210bce10e9..969163821d1e72add567eac917f4985de72e9553 100644
--- a/device/generic_sensor/public/cpp/sensor_struct_traits.h
+++ b/device/generic_sensor/public/cpp/sensor_struct_traits.h
@@ -17,6 +17,11 @@ struct StructTraits<device::mojom::SensorConfigurationDataView,
return input.frequency();
}
+ static bool suppress_on_change_events(
+ const device::PlatformSensorConfiguration& input) {
+ return input.suppress_on_change_events();
+ }
+
static bool Read(device::mojom::SensorConfigurationDataView data,
device::PlatformSensorConfiguration* out);
};

Powered by Google App Engine
This is Rietveld 408576698