| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |