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

Unified Diff: services/device/device_service.h

Issue 2603553002: Ports VRService to be hosted in the device service.
Patch Set: Ports VRService to be hosted in the device service. Created 3 years, 8 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 cd38c23600321e04beb869169ec5dd46547dca17..bc3237114d0f23da4a3556aa6cab230b58bfd248 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -13,6 +13,7 @@
#include "device/sensors/public/interfaces/motion.mojom.h"
#include "device/sensors/public/interfaces/orientation.mojom.h"
#include "device/vibration/vibration_manager.mojom.h"
+#include "device/vr/features.h"
#include "device/wake_lock/public/interfaces/wake_lock_context_provider.mojom.h"
#include "device/wake_lock/wake_lock_service_context.h"
#include "mojo/public/cpp/bindings/binding_set.h"
@@ -24,6 +25,12 @@
#include "services/service_manager/public/cpp/interface_provider.h"
#include "services/service_manager/public/cpp/service.h"
+#if BUILDFLAG(ENABLE_VR)
+#include "device/vr/vr_service_impl.h" //nogncheck
+#else
+#include "device/vr/vr_service.mojom.h" //nogncheck
+#endif
+
namespace base {
class SingleThreadTaskRunner;
}
@@ -63,6 +70,7 @@ class DeviceService
mojom::ScreenOrientationListener>,
public service_manager::InterfaceFactory<mojom::SensorProvider>,
public service_manager::InterfaceFactory<mojom::TimeZoneMonitor>,
+ public service_manager::InterfaceFactory<mojom::VRService>,
public service_manager::InterfaceFactory<mojom::WakeLockContextProvider> {
public:
#if defined(OS_ANDROID)
@@ -127,6 +135,10 @@ class DeviceService
void Create(const service_manager::Identity& remote_identity,
mojom::TimeZoneMonitorRequest request) override;
+ // InterfaceFactory<mojom::VRService>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::VRServiceRequest request) override;
+
// InterfaceFactory<mojom::WakeLockContextProvider>:
void Create(const service_manager::Identity& remote_identity,
mojom::WakeLockContextProviderRequest 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