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 "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h" | |
9 | |
10 namespace vr_shell { | |
11 | |
12 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.vr_shell | |
13 enum VrCoreCompatibility { | |
14 VR_CORE_COMPATIBILITY_VR_NOT_SUPPORTED = 0, | |
15 VR_CORE_COMPATIBILITY_VR_NOT_AVAILABLE = 1, | |
16 VR_CORE_COMPATIBILITY_VR_OUT_OF_DATE = 2, | |
17 VR_CORE_COMPATIBILITY_VR_READY = 3, | |
18 | |
19 VR_CORE_COMPATIBILITY_LAST = VR_CORE_COMPATIBILITY_VR_READY, | |
20 }; | |
21 | |
22 class VrCoreInfo { | |
ddorwin
2017/05/24 07:31:37
struct and remove `public`?
tiborg
2017/05/25 00:06:02
Done.
| |
23 public: | |
24 const gvr_version gvr_version; | |
25 const VrCoreCompatibility compatibility; | |
26 | |
27 VrCoreInfo(int32_t major_version, | |
28 int32_t minor_version, | |
29 int32_t patch_version, | |
30 VrCoreCompatibility compatibility) | |
31 : gvr_version({major_version, minor_version, patch_version}), | |
32 compatibility(compatibility) {} | |
33 }; | |
34 | |
35 } // namespace vr_shell | |
36 | |
37 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_CORE_INFO_H_ | |
OLD | NEW |