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

Unified Diff: services/device/device_service.h

Issue 2755363002: [DeviceService] Port VibrationManager to be hosted in Device Service (Closed)
Patch Set: Rebase only 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
Index: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
index a51a397ac25ed7f4743cd26d8dd786daad769a63..756c57fdfee87cb7d04ba093519eaa4ce86ba4fa 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -11,6 +11,7 @@
#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 "device/vibration/vibration_manager.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/device/public/interfaces/fingerprint.mojom.h"
#include "services/device/public/interfaces/power_monitor.mojom.h"
@@ -43,6 +44,8 @@ class DeviceService
#if !defined(OS_ANDROID)
// On Android the Device Service provides BatteryMonitor via Java.
public service_manager::InterfaceFactory<BatteryMonitor>,
+ // On Android the Device Service provides VibrationManager via Java.
+ public service_manager::InterfaceFactory<mojom::VibrationManager>,
#endif
public service_manager::InterfaceFactory<mojom::PowerMonitor>,
public service_manager::InterfaceFactory<
@@ -83,6 +86,9 @@ class DeviceService
// InterfaceFactory<BatteryMonitor>:
void Create(const service_manager::Identity& remote_identity,
BatteryMonitorRequest request) override;
+ // InterfaceFactory<mojom::VibrationManager>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::VibrationManagerRequest request) override;
#endif
// InterfaceFactory<mojom::PowerMonitor>:

Powered by Google App Engine
This is Rietveld 408576698