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

Unified Diff: device/vr/android/cardboard/cardboard_vr_device.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
Index: device/vr/android/cardboard/cardboard_vr_device.cc
diff --git a/content/browser/vr/android/cardboard/cardboard_vr_device.cc b/device/vr/android/cardboard/cardboard_vr_device.cc
similarity index 97%
rename from content/browser/vr/android/cardboard/cardboard_vr_device.cc
rename to device/vr/android/cardboard/cardboard_vr_device.cc
index 17f26dce954b585e9c7a5238e88256259dd9056a..e68ec80149a6a3e7c2560c501d965334064d12e4 100644
--- a/content/browser/vr/android/cardboard/cardboard_vr_device.cc
+++ b/device/vr/android/cardboard/cardboard_vr_device.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/android/cardboard/cardboard_vr_device.h"
+#include "device/vr/android/cardboard/cardboard_vr_device.h"
#include <math.h>
#include <algorithm>
@@ -21,7 +21,7 @@
using base::android::AttachCurrentThread;
-namespace content {
+namespace device {
bool CardboardVRDevice::RegisterCardboardVRDevice(JNIEnv* env) {
return RegisterNativesImpl(env);
@@ -85,7 +85,7 @@ blink::mojom::VRDisplayPtr CardboardVRDevice::GetVRDevice() {
float ipd = Java_CardboardVRDevice_getIpd(env, j_cardboard_device_.obj());
- left_eye->offset= mojo::Array<float>::New(3);
+ left_eye->offset = mojo::Array<float>::New(3);
left_eye->offset[0] = ipd * -0.5f;
left_eye->offset[1] = 0.0f;
left_eye->offset[2] = 0.0f;
@@ -154,4 +154,4 @@ void CardboardVRDevice::ResetPose() {
j_cardboard_device_.obj());
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/vr/android/cardboard/cardboard_vr_device.h ('k') | device/vr/android/cardboard/cardboard_vr_device_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698