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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellInterface.java

Issue 2301633002: Refactor Vr activity into ChromeTabbedActivity. (Closed)
Patch Set: UiElements are now structs Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellInterface.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellInterface.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellInterface.java
new file mode 100644
index 0000000000000000000000000000000000000000..83c9fe37c9ab375a8c20b8d62f38cebec31f0dae
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellInterface.java
@@ -0,0 +1,43 @@
+// Copyright 2016 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 android.widget.FrameLayout;
+
+/**
+ * Abstracts away the VrShell class, which may or may not be present at runtime depending on
+ * compile flags.
+ */
+public interface VrShellInterface {
+ /**
+ * Performs native VrShell initialization.
+ */
+ void onNativeLibraryReady();
+
+ /**
+ * Pauses VrShell.
+ */
+ void pause();
+
+ /**
+ * Resumes VrShell.
+ */
+ void resume();
+
+ /**
+ * Destroys VrShell.
+ */
+ void teardown();
+
+ /**
+ * Sets Android VR Mode to |enabled|.
+ */
+ void setVrModeEnabled(boolean enabled);
+
+ /**
+ * Returns the GVRLayout as a FrameLayout.
+ */
+ FrameLayout getContainer();
+}

Powered by Google App Engine
This is Rietveld 408576698