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

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

Issue 2301633002: Refactor Vr activity into ChromeTabbedActivity. (Closed)
Patch Set: Clean up vr_util Created 4 years, 4 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/ChromeActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
index fea48405089447b4fceb2c5400b5c9e36bf8190d..f5f652256276a9ca4dc370a2d5efad349501d0bc 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
@@ -1624,6 +1624,8 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
HelpAndFeedback.getInstance(this)
.show(this, helpContextId, currentTab.getProfile(), currentTab.getUrl());
RecordUserAction.record("MobileMenuFeedback");
+ } else if (id == R.id.enter_vr_id) {
Ted C 2016/09/01 22:38:37 move this into ChromeTabbedActivity's menu handlin
mthiesse 2016/09/02 01:05:33 Done.
+ enterVR();
} else {
return false;
}
@@ -1631,6 +1633,18 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
}
/**
+ * Enters VR Shell, if derived activity is capable of entering VR.
+ */
+ public void enterVR() {}
+
+ /**
+ * Tests if VR Shell is currently enabled.
+ */
+ public boolean isVrShellEnabled() {
Ted C 2016/09/01 22:38:37 Forgive me for being ignorant, but what is VR Shel
mthiesse 2016/09/02 01:05:33 VR Shell has been a highly-debated term. Shell in
+ return false;
+ }
+
+ /**
* Add a view to the set of views that obscure the content of all tabs for
* accessibility. As long as this set is nonempty, all tabs should be
* hidden from the accessibility tree.

Powered by Google App Engine
This is Rietveld 408576698