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