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

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui.js

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/resources/vr_shell/vr_shell_ui.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui.js b/chrome/browser/resources/vr_shell/vr_shell_ui.js
index af3c27f8d38a3e39f8ed75053d11bbd42e64b298..d0082161a09b61aa6363955f026b8212fe441f38 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.js
@@ -726,6 +726,10 @@ var vrShellUi = (function() {
// view.
let domTab = this.domTabTemplate.cloneNode(true);
domTab.removeAttribute('id');
+ domTab.addEventListener('click', function() {
+ api.doAction(api.Action.SHOW_TAB, {'id': domTab.tab.id});
+ });
+ domTab.tab = tab;
this.domTabClip.appendChild(domTab);
this.domTabs[this.getQualifiedTabId(tab)] = domTab;
return domTab;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | chrome/browser/resources/vr_shell/vr_shell_ui_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698