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

Unified Diff: services/device/device_service.h

Issue 2692993006: Port device_sensors to be hosted in Device Service (Closed)
Patch Set: code rebase Created 3 years, 9 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 | « services/device/BUILD.gn ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
index a86caa5544a01657687904ccaed3e29225042675..7e9e44a1532c6c70d503b326f598e8a8b84c4f42 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -7,6 +7,9 @@
#include "base/memory/ref_counted.h"
#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h"
+#include "device/sensors/public/interfaces/light.mojom.h"
+#include "device/sensors/public/interfaces/motion.mojom.h"
+#include "device/sensors/public/interfaces/orientation.mojom.h"
#include "services/device/public/interfaces/fingerprint.mojom.h"
#include "services/device/public/interfaces/power_monitor.mojom.h"
#include "services/device/public/interfaces/time_zone_monitor.mojom.h"
@@ -29,6 +32,11 @@ std::unique_ptr<service_manager::Service> CreateDeviceService(
class DeviceService
: public service_manager::Service,
public service_manager::InterfaceFactory<mojom::Fingerprint>,
+ public service_manager::InterfaceFactory<mojom::LightSensor>,
+ public service_manager::InterfaceFactory<mojom::MotionSensor>,
+ public service_manager::InterfaceFactory<mojom::OrientationSensor>,
+ public service_manager::InterfaceFactory<
+ mojom::OrientationAbsoluteSensor>,
public service_manager::InterfaceFactory<mojom::PowerMonitor>,
public service_manager::InterfaceFactory<
mojom::ScreenOrientationListener>,
@@ -48,6 +56,22 @@ class DeviceService
void Create(const service_manager::Identity& remote_identity,
mojom::FingerprintRequest request) override;
+ // InterfaceFactory<mojom::LightSensor>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::LightSensorRequest request) override;
+
+ // InterfaceFactory<mojom::MotionSensor>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::MotionSensorRequest request) override;
+
+ // InterfaceFactory<mojom::OrientationSensor>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::OrientationSensorRequest request) override;
+
+ // InterfaceFactory<mojom::OrientationAbsolueSensor>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::OrientationAbsoluteSensorRequest request) override;
+
// InterfaceFactory<mojom::PowerMonitor>:
void Create(const service_manager::Identity& remote_identity,
mojom::PowerMonitorRequest request) override;
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698