Chromium Code Reviews| 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 { | |
|
not at google - send to devlin
2015/04/22 19:32:59
How will this interact with the search engine over
Oren Blasberg
2015/04/22 22:36:11
Hmm, where is that API located? I can't find it an
not at google - send to devlin
2015/04/22 22:43:51
It's called "chrome_settings_overrides", implement
Oren Blasberg
2015/04/22 22:59:19
Ah, I see. Yes, we will likely iterate on the sear
| |
| 8 | |
| 9 dictionary SearchEngine { | |
| 10 // The unique ID of the engine in the list. | |
|
stevenjb
2015/04/22 19:46:30
'The unique identifier for the search engine.'
Oren Blasberg
2015/04/23 17:05:08
Done.
| |
| 11 DOMString guid; | |
| 12 | |
| 13 // The name of the engine. | |
| 14 DOMString name; | |
| 15 | |
| 16 // Whether the engine is default. | |
|
stevenjb
2015/04/22 19:46:30
'Whether the engine is the default search engine'
Oren Blasberg
2015/04/23 17:05:08
Done.
| |
| 17 boolean isDefault; | |
| 18 }; | |
| 19 | |
| 20 callback SearchEnginesCallback = void (SearchEngine[] engines); | |
| 21 | |
| 22 interface Functions { | |
| 23 // Gets an array of all the default (not custom) search engines. | |
| 24 static void getDefaultSearchEngines(SearchEnginesCallback callback); | |
| 25 | |
| 26 // Sets the default search engine. | |
| 27 static void setDefaultSearchEngine(DOMString guid); | |
|
stevenjb
2015/04/22 19:46:30
See discussion in API doc
Oren Blasberg
2015/04/23 17:05:08
Done.
| |
| 28 }; | |
| 29 | |
| 30 interface Events { | |
| 31 // Fires when the list of engines or the default engine changes. | |
| 32 static void onSearchEnginesChanged(SearchEngine[] engines); | |
|
stevenjb
2015/04/22 19:46:30
See discussion in API doc
Oren Blasberg
2015/04/23 17:05:08
Done.
| |
| 33 }; | |
| 34 }; | |
| OLD | NEW |