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

Side by Side Diff: chrome/browser/android/vr_shell/vr_core_info.h

Issue 2865463003: Tracks GVR version crossed with headset type using UMA. (Closed)
Patch Set: Fixed comments Created 3 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 unified diff | Download patch
OLDNEW
(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_sdk_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_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/vr_core_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698