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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionChecker.java

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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.vr_shell; 5 package org.chromium.chrome.browser.vr_shell;
6 6
7 import android.support.annotation.IntDef;
8
9 import java.lang.annotation.Retention;
10 import java.lang.annotation.RetentionPolicy;
11
12 /** 7 /**
13 * Abstracts away the VrCoreVersionCheckerImpl class, which may or may not be pr esent at runtime 8 * Abstracts away the VrCoreVersionCheckerImpl class, which may or may not be pr esent at runtime
14 * depending on compile flags. 9 * depending on compile flags.
15 */ 10 */
16 public interface VrCoreVersionChecker { 11 public interface VrCoreVersionChecker {
17 public static final int VR_NOT_SUPPORTED = 0;
18 public static final int VR_NOT_AVAILABLE = 1;
19 public static final int VR_OUT_OF_DATE = 2;
20 public static final int VR_READY = 3;
21
22 @Retention(RetentionPolicy.SOURCE)
23 @IntDef({VR_NOT_AVAILABLE, VR_OUT_OF_DATE, VR_READY})
24 public @interface VrCoreCompatibility {}
25
26 public static final String VR_CORE_PACKAGE_ID = "com.google.vr.vrcore"; 12 public static final String VR_CORE_PACKAGE_ID = "com.google.vr.vrcore";
27 13
28 /** 14 /**
29 * Check if VrCore is installed or if installed version is compatible with C hromium. 15 * Returns the version of VrCore (if it is installed) and the compatibility of VrCore with
16 * Chrome.
30 */ 17 */
31 int getVrCoreCompatibility(); 18 VrCoreInfo getVrCoreInfo();
32 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698