OLD | NEW |
---|---|
(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; | |
not at google - send to devlin
2015/04/23 19:42:35
consider making this optional, you might as well,
Oren Blasberg
2015/04/23 20:48:34
Done.
| |
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 }; | |
OLD | NEW |