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

Unified 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: Address Jeremy's comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/search_engines_private.idl
diff --git a/chrome/common/extensions/api/search_engines_private.idl b/chrome/common/extensions/api/search_engines_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..4cb33fd62c74f503bd5e978b93b859394c888e7e
--- /dev/null
+++ b/chrome/common/extensions/api/search_engines_private.idl
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Use the <code>chrome.searchEnginesPrivate</code> API to get or set preferences
James Hawkins 2015/04/22 18:46:01 80 cols.
Oren Blasberg 2015/04/22 19:04:17 Done.
+// from the settings UI.
+namespace searchEnginesPrivate {
+
+ dictionary SearchEngine {
+ // The unique ID of the engine in the list.
+ DOMString guid;
+
+ // The name of the engine.
+ DOMString name;
+
+ // Whether the engine is default.
+ boolean isDefault;
+ };
+
+ callback SearchEnginesCallback = void (SearchEngine[] engines);
+
+ interface Functions {
+ // Gets an array of all the search engines.
+ static void getDefaultSearchEngines(SearchEnginesCallback callback);
+
+ // Sets the default search engine.
+ static void setDefaultSearchEngine(DOMString guid);
+ };
+
+ interface Events {
+ // Fires when the list of engines or the default engine changes.
+ static void onSearchEnginesChanged(SearchEngine[] engines);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698