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

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

Issue 2699163003: Use VrCoreCompatibility check for whether to show an infobar instead of Android package manager. (Closed)
Patch Set: Check for OS support before vr core state Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
7 /** 12 /**
8 * Abstracts away the VrCoreVersionCheckerImpl class, which may or may not be pr esent at runtime 13 * Abstracts away the VrCoreVersionCheckerImpl class, which may or may not be pr esent at runtime
9 * depending on compile flags. 14 * depending on compile flags.
10 */ 15 */
11 public interface VrCoreVersionChecker { 16 public interface VrCoreVersionChecker {
17 public static final int VR_NOT_AVAILABLE = 0;
18 public static final int VR_OUT_OF_DATE = 1;
19 public static final int VR_READY = 2;
20
21 @Retention(RetentionPolicy.SOURCE)
22 @IntDef({VR_NOT_AVAILABLE, VR_OUT_OF_DATE, VR_READY})
23 public @interface VrCoreCompatibility {}
24
12 /** 25 /**
13 * Test if VrCore version installed is compatible with Chromium. 26 * Check if VrCore is installed or if installed version is compatible with C hromium.
14 */ 27 */
15 boolean isVrCoreCompatible(); 28 int getVrCoreCompatibility();
16 } 29 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698