blob: b66a49248138c2e9191e377b11673570f07e30a9 [file] [log] [blame]
// 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