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

Side by Side Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2684233003: Switch tabs from VR shell. (Closed)
Patch Set: 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
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 431
431 /** 432 /**
432 * Set the animation's final element opacity. 433 * Set the animation's final element opacity.
433 * @param {number} opacity 434 * @param {number} opacity
434 */ 435 */
435 setOpacity(opacity) { 436 setOpacity(opacity) {
436 this.property = api.Property.OPACITY; 437 this.property = api.Property.OPACITY;
437 this.to.x = opacity; 438 this.to.x = opacity;
438 } 439 }
439 }; 440 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698