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

Side by Side Diff: chrome/common/extensions/api/search_engines_private.idl

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, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Use the <code>chrome.searchEnginesPrivate</code> API to get or set
6 // preferences from the settings UI.
7 namespace searchEnginesPrivate {
8
9 dictionary SearchEngine {
10 // The unique ID of the engine in the list.
11 DOMString guid;
12
13 // The name of the engine.
14 DOMString name;
15
16 // Whether the engine is the selected a.k.a. "default" search engine.
17 boolean? isSelected;
18 };
19
20 callback SearchEnginesCallback = void (SearchEngine[] engines);
21
22 interface Functions {
23 // Gets a list of the "default” search engines.
24 // Exactly one of the values should have default == true.
25 static void getDefaultSearchEngines(SearchEnginesCallback callback);
26
27 // Sets the search engine with the given GUID as the selected default.
28 static void setSelectedSearchEngine(DOMString guid);
29 };
30
31 interface Events {
32 // Fires when the list of default search engines changes or
33 // when the user selects a preferred default search engine.
34 static void onDefaultSearchEnginesChanged(SearchEngine[] engines);
35 };
36 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/common/extensions/permissions/chrome_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698