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

Unified Diff: device/vr/vr_device_manager.cc

Issue 2029703002: Moving VR service from /content/browser to /device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added nogncheck to failing include Created 4 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
« no previous file with comments | « device/vr/vr_device_manager.h ('k') | device/vr/vr_device_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device_manager.cc
diff --git a/content/browser/vr/vr_device_manager.cc b/device/vr/vr_device_manager.cc
similarity index 93%
rename from content/browser/vr/vr_device_manager.cc
rename to device/vr/vr_device_manager.cc
index 47b222c5f16737e2d306fef67d9cd953e3a85ee7..c7a20a1b03a8f7e2a12f78faadcdf474d16156a9 100644
--- a/content/browser/vr/vr_device_manager.cc
+++ b/device/vr/vr_device_manager.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/vr/vr_device_manager.h"
+#include "device/vr/vr_device_manager.h"
#include <utility>
@@ -11,10 +11,10 @@
#include "build/build_config.h"
#if defined(OS_ANDROID)
-#include "content/browser/vr/android/cardboard/cardboard_vr_device_provider.h"
+#include "device/vr/android/cardboard/cardboard_vr_device_provider.h"
#endif
-namespace content {
+namespace device {
namespace {
VRDeviceManager* g_vr_device_manager = nullptr;
@@ -139,8 +139,7 @@ void VRDeviceManager::GetDisplays(const GetDisplaysCallback& callback) {
callback.Run(GetVRDevices());
}
-void VRDeviceManager::GetPose(uint32_t index,
- const GetPoseCallback& callback) {
+void VRDeviceManager::GetPose(uint32_t index, const GetPoseCallback& callback) {
VRDevice* device = GetDevice(index);
if (device) {
callback.Run(device->GetPose());
@@ -155,4 +154,4 @@ void VRDeviceManager::ResetPose(uint32_t index) {
device->ResetPose();
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/vr/vr_device_manager.h ('k') | device/vr/vr_device_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698