Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9c252aaae159a9cc3f1f6d952204c2b47d456e4a |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java |
@@ -0,0 +1,21 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser.vr_shell; |
+ |
+import com.google.vr.ndk.base.Version; |
+ |
+/** |
+ * Container class to provide the version and the compatibility with Chromium of the installed |
+ * VrCore. |
+ */ |
+public class VrCoreInfo { |
+ public final Version version; |
+ public final int compatibility; |
+ |
+ public VrCoreInfo(Version version, int compatibility) { |
mthiesse
2017/05/16 01:15:12
If you want to share the compatibility enum across
tiborg
2017/05/23 15:47:24
Oh yes. Very good advice. Pretty neat.
|
+ this.version = version; |
+ this.compatibility = compatibility; |
+ } |
+} |