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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index 974f167258de82f2deaad5885a55e2c0f81286ae..f29d5d753c08173e3a5166b85ad6770f729c2e9d 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -429,6 +429,12 @@ void VrShell::DoUiAction(const UiAction action,
case ZOOM_OUT: // Not handled yet.
case ZOOM_IN: // Not handled yet.
return;
+ case SHOW_TAB: {
+ int id;
+ CHECK(arguments->GetInteger("id", &id));
+ delegate_provider_->ShowTab(id);
+ break;
+ }
#if defined(ENABLE_VR_SHELL_UI_DEV)
case RELOAD_UI:
ui_contents_->GetController().Reload(content::ReloadType::NORMAL, false);
@@ -461,6 +467,9 @@ void VrShell::DoUiAction(const UiAction action,
ui::PageTransition::PAGE_TRANSITION_TYPED);
break;
}
+ case SHOW_TAB:
+ // Not handled in Java.
+ break;
default:
NOTREACHED();
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698