| 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 = {}; | 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 Loading... |
| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 if ('updateTab' in dict) { | 580 if ('updateTab' in dict) { |
| 580 this.onUpdateTab(dict['updateTabs']); | 581 this.onUpdateTab(dict['updateTabs']); |
| 581 } | 582 } |
| 582 if ('removeTab' in dict) { | 583 if ('removeTab' in dict) { |
| 583 this.onRemoveTab(dict['removeTab']); | 584 this.onRemoveTab(dict['removeTab']); |
| 584 } | 585 } |
| 585 | 586 |
| 586 this.onCommandHandlerFinished() | 587 this.onCommandHandlerFinished() |
| 587 } | 588 } |
| 588 }; | 589 }; |
| OLD | NEW |