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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_delegate.cc

Issue 2684233003: Switch tabs from VR shell. (Closed)
Patch Set: Rebased on ToT 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_delegate.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.cc b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
index b85b14f483f694a4118f4287d0840fdf2f5dfca8..3a4e46942bbac967dbaf5b03ab8acdcdde500c27 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
@@ -118,6 +118,11 @@ void VrShellDelegate::OnResume(JNIEnv* env,
}
}
+void VrShellDelegate::ShowTab(int id) {
+ JNIEnv* env = AttachCurrentThread();
+ Java_VrShellDelegate_showTab(env, j_vr_shell_delegate_.obj(), id);
+}
+
void VrShellDelegate::SetDeviceProvider(
device::GvrDeviceProvider* device_provider) {
CHECK(!device_provider_);
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.h ('k') | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698