OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_CORE_INFO_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_CORE_INFO_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" |
| 11 |
| 12 namespace vr_shell { |
| 13 |
| 14 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.vr_shell |
| 15 enum VrCoreCompatibility { |
| 16 VR_CORE_COMPATIBILITY_VR_NOT_SUPPORTED = 0, |
| 17 VR_CORE_COMPATIBILITY_VR_NOT_AVAILABLE = 1, |
| 18 VR_CORE_COMPATIBILITY_VR_OUT_OF_DATE = 2, |
| 19 VR_CORE_COMPATIBILITY_VR_READY = 3, |
| 20 |
| 21 VR_CORE_COMPATIBILITY_LAST = VR_CORE_COMPATIBILITY_VR_READY, |
| 22 }; |
| 23 |
| 24 struct VrCoreInfo { |
| 25 const gvr_version gvr_version; |
| 26 const VrCoreCompatibility compatibility; |
| 27 |
| 28 VrCoreInfo(int32_t major_version, |
| 29 int32_t minor_version, |
| 30 int32_t patch_version, |
| 31 VrCoreCompatibility compatibility); |
| 32 }; |
| 33 |
| 34 bool RegisterVrCoreInfo(JNIEnv* env); |
| 35 |
| 36 } // namespace vr_shell |
| 37 |
| 38 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_CORE_INFO_H_ |
OLD | NEW |