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

Unified Diff: third_party/closure_compiler/externs/search_engines_private.js

Issue 1096143003: Add chrome.searchEnginesPrivate API and Search Settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update OWNERS 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
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/search_engines_private.js
diff --git a/third_party/closure_compiler/externs/search_engines_private.js b/third_party/closure_compiler/externs/search_engines_private.js
new file mode 100644
index 0000000000000000000000000000000000000000..8d6bedd4392b4a12096a4485f3487eae46a0171d
--- /dev/null
+++ b/third_party/closure_compiler/externs/search_engines_private.js
@@ -0,0 +1,47 @@
+search_engines_private_externs.js
+
+// 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.
+
+/** @fileoverview Externs generated from namespace: searchEnginesPrivate */
+
+/**
+ * @const
+ */
+chrome.searchEnginesPrivate = {};
+
+/**
+ * @typedef {{
+ * guid: string,
+ * name: string,
+ * isSelected: (boolean|undefined)
+ * }}
+ * @see https://developer.chrome.com/extensions/searchEnginesPrivate#type-SearchEngine
+ */
+var SearchEngine;
+
+/**
+ * Gets a list of the "default” search engines. Exactly one of the values
+ * should have default == true.
+ * @param {function(!Array<SearchEngine>):void} callback
+ * @see https://developer.chrome.com/extensions/searchEnginesPrivate#method-getDefaultSearchEngines
+ */
+chrome.searchEnginesPrivate.getDefaultSearchEngines = function(callback) {};
+
+/**
+ * Sets the search engine with the given GUID as the selected default.
+ * @param {string} guid
+ * @see https://developer.chrome.com/extensions/searchEnginesPrivate#method-setSelectedSearchEngine
+ */
+chrome.searchEnginesPrivate.setSelectedSearchEngine = function(guid) {};
+
+/**
+ * Fires when the list of default search engines changes or when the user
+ * selects a preferred default search engine.
+ * @type {!ChromeEvent}
+ * @see https://developer.chrome.com/extensions/searchEnginesPrivate#event-onDefaultSearchEnginesChanged
+ */
+chrome.searchEnginesPrivate.onDefaultSearchEnginesChanged;
+
+
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698