OLD | NEW |
(Empty) | |
| 1 search_engines_private_externs.js |
| 2 |
| 3 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 4 // Use of this source code is governed by a BSD-style license that can be |
| 5 // found in the LICENSE file. |
| 6 |
| 7 /** @fileoverview Externs generated from namespace: searchEnginesPrivate */ |
| 8 |
| 9 /** |
| 10 * @const |
| 11 */ |
| 12 chrome.searchEnginesPrivate = {}; |
| 13 |
| 14 /** |
| 15 * @typedef {{ |
| 16 * guid: string, |
| 17 * name: string, |
| 18 * isSelected: (boolean|undefined) |
| 19 * }} |
| 20 * @see https://developer.chrome.com/extensions/searchEnginesPrivate#type-Search
Engine |
| 21 */ |
| 22 var SearchEngine; |
| 23 |
| 24 /** |
| 25 * Gets a list of the "default” search engines. Exactly one of the values |
| 26 * should have default == true. |
| 27 * @param {function(!Array<SearchEngine>):void} callback |
| 28 * @see https://developer.chrome.com/extensions/searchEnginesPrivate#method-getD
efaultSearchEngines |
| 29 */ |
| 30 chrome.searchEnginesPrivate.getDefaultSearchEngines = function(callback) {}; |
| 31 |
| 32 /** |
| 33 * Sets the search engine with the given GUID as the selected default. |
| 34 * @param {string} guid |
| 35 * @see https://developer.chrome.com/extensions/searchEnginesPrivate#method-setS
electedSearchEngine |
| 36 */ |
| 37 chrome.searchEnginesPrivate.setSelectedSearchEngine = function(guid) {}; |
| 38 |
| 39 /** |
| 40 * Fires when the list of default search engines changes or when the user |
| 41 * selects a preferred default search engine. |
| 42 * @type {!ChromeEvent} |
| 43 * @see https://developer.chrome.com/extensions/searchEnginesPrivate#event-onDef
aultSearchEnginesChanged |
| 44 */ |
| 45 chrome.searchEnginesPrivate.onDefaultSearchEnginesChanged; |
| 46 |
| 47 |
OLD | NEW |