| 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 /** | 5 /** |
| 6 * @fileoverview A helper object used from the "Manage search engines" section | 6 * @fileoverview A helper object used from the "Manage search engines" section |
| 7 * to interact with the browser. | 7 * to interact with the browser. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * @typedef {{canBeDefault: boolean, | 11 * @typedef {{canBeDefault: boolean, |
| 12 * canBeEdited: boolean, | 12 * canBeEdited: boolean, |
| 13 * canBeRemoved: boolean, | 13 * canBeRemoved: boolean, |
| 14 * default: boolean, | 14 * default: boolean, |
| 15 * displayName: string, | 15 * displayName: string, |
| 16 * extension: (Object|undefined), | 16 * extension: ({id: string, |
| 17 * name: string, |
| 18 * canBeDisabled: boolean, |
| 19 * icon: string}|undefined), |
| 17 * iconURL: (string|undefined), | 20 * iconURL: (string|undefined), |
| 18 * isOmniboxExtension: boolean, | 21 * isOmniboxExtension: boolean, |
| 19 * keyword: string, | 22 * keyword: string, |
| 20 * modelIndex: number, | 23 * modelIndex: number, |
| 21 * name: string, | 24 * name: string, |
| 22 * url: string, | 25 * url: string, |
| 23 * urlLocked: boolean}} | 26 * urlLocked: boolean}} |
| 24 * @see chrome/browser/ui/webui/settings/search_engine_manager_handler.cc | 27 * @see chrome/browser/ui/webui/settings/search_engine_manager_handler.cc |
| 25 */ | 28 */ |
| 26 var SearchEngine; | 29 var SearchEngine; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 setHotwordSearchEnabled: function(enabled) { | 146 setHotwordSearchEnabled: function(enabled) { |
| 144 chrome.send('setHotwordSearchEnabled', [enabled]); | 147 chrome.send('setHotwordSearchEnabled', [enabled]); |
| 145 }, | 148 }, |
| 146 }; | 149 }; |
| 147 | 150 |
| 148 return { | 151 return { |
| 149 SearchEnginesBrowserProxy: SearchEnginesBrowserProxy, | 152 SearchEnginesBrowserProxy: SearchEnginesBrowserProxy, |
| 150 SearchEnginesBrowserProxyImpl: SearchEnginesBrowserProxyImpl, | 153 SearchEnginesBrowserProxyImpl: SearchEnginesBrowserProxyImpl, |
| 151 }; | 154 }; |
| 152 }); | 155 }); |
| OLD | NEW |