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

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: Update javascript Mode enum 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
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, 86 'CINEMA': 2,
87 'CINEMA': 3 87 'STANDARD_MENU': 3,
88 'WEB_VR_MENU': 4,
88 }); 89 });
89 90
90 /** 91 /**
91 * Triggers an Action. 92 * Triggers an Action.
92 */ 93 */
93 function doAction(action) { 94 function doAction(action) {
94 chrome.send('doAction', [action]); 95 chrome.send('doAction', [action]);
95 } 96 }
96 97
97 /** 98 /**
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Action: Action, 304 Action: Action,
304 Mode: Mode, 305 Mode: Mode,
305 getContentElementId: getContentElementId, 306 getContentElementId: getContentElementId,
306 UiElement: UiElement, 307 UiElement: UiElement,
307 UiElementUpdate: UiElementUpdate, 308 UiElementUpdate: UiElementUpdate,
308 Animation: Animation, 309 Animation: Animation,
309 doAction: doAction, 310 doAction: doAction,
310 domLoaded: domLoaded, 311 domLoaded: domLoaded,
311 }; 312 };
312 })(); 313 })();
OLDNEW
« chrome/browser/android/vr_shell/vr_shell.cc ('K') | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698