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

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: Add a test 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 preference s
6 // 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 default.
17 boolean isDefault;
18 };
19
20 callback SearchEnginesCallback = void (SearchEngine[] engines);
21
22 interface Functions {
23 // Gets an array of all the search engines.
24 static void getDefaultSearchEngines(SearchEnginesCallback callback);
Jeremy Klein 2015/04/22 17:37:46 nit: It seems weird to have the word "Default" in
Oren Blasberg 2015/04/22 17:41:22 In the future there will also be "custom" / "other
Oren Blasberg 2015/04/22 19:04:17 Done.
25
26 // Sets the default search engine.
27 static void setDefaultSearchEngine(DOMString guid);
28 };
29
30 interface Events {
31 // Fires when the list of engines or the default engine changes.
32 static void onSearchEnginesChanged(SearchEngine[] engines);
33 };
34 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698