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

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: fix browser test 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..f9dcb3c923c22e4bc3516193fdc622f298020a09 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 notify_client_on_reading_change(
+ const device::PlatformSensorConfiguration& input) {
+ return input.notify_client_on_reading_change();
+ }
+
static bool Read(device::mojom::SensorConfigurationDataView data,
device::PlatformSensorConfiguration* out);
};

Powered by Google App Engine
This is Rietveld 408576698