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

Side by Side Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var api = {}; 5 var api = {};
6 6
7 /** 7 /**
8 * Enumeration of scene update commands. 8 * Enumeration of scene update commands.
9 * @enum {number} 9 * @enum {number}
10 * @const 10 * @const
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 api.Action = { 63 api.Action = {
64 'HISTORY_BACK': 0, 64 'HISTORY_BACK': 0,
65 'HISTORY_FORWARD': 1, 65 'HISTORY_FORWARD': 1,
66 'RELOAD': 2, 66 'RELOAD': 2,
67 'ZOOM_OUT': 3, 67 'ZOOM_OUT': 3,
68 'ZOOM_IN': 4, 68 'ZOOM_IN': 4,
69 'RELOAD_UI': 5, 69 'RELOAD_UI': 5,
70 'LOAD_URL': 6, 70 'LOAD_URL': 6,
71 'OMNIBOX_CONTENT': 7, 71 'OMNIBOX_CONTENT': 7,
72 'SET_CONTENT_PAUSED': 8, 72 'SET_CONTENT_PAUSED': 8,
73 'SHOW_TAB': 9
73 }; 74 };
74 75
75 /** 76 /**
76 * Enumeration of modes that can be specified by the native side. 77 * Enumeration of modes that can be specified by the native side.
77 * @enum {number} 78 * @enum {number}
78 * @const 79 * @const
79 */ 80 */
80 api.Mode = { 81 api.Mode = {
81 'UNKNOWN': -1, 82 'UNKNOWN': -1,
82 'STANDARD': 0, 83 'STANDARD': 0,
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 if ('updateTab' in dict) { 580 if ('updateTab' in dict) {
580 this.onUpdateTab(dict['updateTabs']); 581 this.onUpdateTab(dict['updateTabs']);
581 } 582 }
582 if ('removeTab' in dict) { 583 if ('removeTab' in dict) {
583 this.onRemoveTab(dict['removeTab']); 584 this.onRemoveTab(dict['removeTab']);
584 } 585 }
585 586
586 this.onCommandHandlerFinished() 587 this.onCommandHandlerFinished()
587 } 588 }
588 }; 589 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698