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

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

Issue 2536873002: Clean up VR Shell mode transitions (and fix potential webvr startup race). (Closed)
Patch Set: Address comments Created 4 years 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 = (function() { 5 var api = (function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Enumeration of scene update commands. 9 * Enumeration of scene update commands.
10 * @enum {number} 10 * @enum {number}
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 /** 77 /**
78 * Enumeration of modes that can be specified by the native side. 78 * Enumeration of modes that can be specified by the native side.
79 * @enum {number} 79 * @enum {number}
80 * @const 80 * @const
81 */ 81 */
82 var Mode = Object.freeze({ 82 var Mode = Object.freeze({
83 'UNKNOWN': -1, 83 'UNKNOWN': -1,
84 'STANDARD': 0, 84 'STANDARD': 0,
85 'WEB_VR': 1, 85 'WEB_VR': 1,
86 'MENU': 2,
87 'CINEMA': 3
88 }); 86 });
89 87
90 /** 88 /**
91 * Triggers an Action. 89 * Triggers an Action.
92 */ 90 */
93 function doAction(action) { 91 function doAction(action) {
94 chrome.send('doAction', [action]); 92 chrome.send('doAction', [action]);
95 } 93 }
96 94
97 /** 95 /**
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Action: Action, 301 Action: Action,
304 Mode: Mode, 302 Mode: Mode,
305 getContentElementId: getContentElementId, 303 getContentElementId: getContentElementId,
306 UiElement: UiElement, 304 UiElement: UiElement,
307 UiElementUpdate: UiElementUpdate, 305 UiElementUpdate: UiElementUpdate,
308 Animation: Animation, 306 Animation: Animation,
309 doAction: doAction, 307 doAction: doAction,
310 domLoaded: domLoaded, 308 domLoaded: domLoaded,
311 }; 309 };
312 })(); 310 })();
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