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 preference s | |
James Hawkins
2015/04/22 18:46:01
80 cols.
Oren Blasberg
2015/04/22 19:04:17
Done.
| |
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); | |
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 }; | |
OLD | NEW |