Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: third_party/closure_compiler/externs/search_engines_private.js

Issue 1096143003: Add chrome.searchEnginesPrivate API and Search Settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update OWNERS Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698