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

Unified Diff: device/vr/android/vr_jni_registrar.cc

Issue 2258513003: Revert of Migrate WebVR Cardboard implementation to GVR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gvr_third_party
Patch Set: Created 4 years, 4 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/android/vr_jni_registrar.h ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/vr_jni_registrar.cc
diff --git a/device/vr/android/vr_jni_registrar.cc b/device/vr/android/vr_jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b66a49248138c2e9191e377b11673570f07e30a9
--- /dev/null
+++ b/device/vr/android/vr_jni_registrar.cc
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "device/vr/android/vr_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "base/macros.h"
+#include "device/vr/android/cardboard/cardboard_vr_device.h"
+
+namespace device {
+namespace android {
+namespace {
+
+const base::android::RegistrationMethod kRegisteredMethods[] = {
+ {"CardboardVRDevice", device::CardboardVRDevice::RegisterJNI},
+};
+
+} // namespace
+
+bool RegisterVRJni(JNIEnv* env) {
+ return RegisterNativeMethods(env, kRegisteredMethods,
+ arraysize(kRegisteredMethods));
+}
+
+} // namespace android
+} // namespace device
« no previous file with comments | « device/vr/android/vr_jni_registrar.h ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698