| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'SHOW_TAB': 9, |
| 74 'OPEN_NEW_TAB': 10, | 74 'OPEN_NEW_TAB': 10, |
| 75 'KEY_EVENT': 11, | 75 'KEY_EVENT': 11, |
| 76 'EXIT_PRESENT': 12 |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 /** | 79 /** |
| 79 * Enumeration of modes that can be specified by the native side. | 80 * Enumeration of modes that can be specified by the native side. |
| 80 * @enum {number} | 81 * @enum {number} |
| 81 * @const | 82 * @const |
| 82 */ | 83 */ |
| 83 api.Mode = { | 84 api.Mode = { |
| 84 'UNKNOWN': -1, | 85 'UNKNOWN': -1, |
| 85 'STANDARD': 0, | 86 'STANDARD': 0, |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 if ('removeTab' in dict) { | 761 if ('removeTab' in dict) { |
| 761 this.onRemoveTab(dict['removeTab']); | 762 this.onRemoveTab(dict['removeTab']); |
| 762 } | 763 } |
| 763 if ('canGoBack' in dict) { | 764 if ('canGoBack' in dict) { |
| 764 this.onSetHistoryButtonsEnabled(dict['canGoBack'], dict['canGoForward']); | 765 this.onSetHistoryButtonsEnabled(dict['canGoBack'], dict['canGoForward']); |
| 765 } | 766 } |
| 766 | 767 |
| 767 this.onCommandHandlerFinished() | 768 this.onCommandHandlerFinished() |
| 768 } | 769 } |
| 769 }; | 770 }; |
| OLD | NEW |