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

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: Rename some things on the idl to match latest api spec. 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: 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..ae432f07c09b7c8bec1171303a6d174234f5da40
--- /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
+ * }}
+ * @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;
+
+

Powered by Google App Engine
This is Rietveld 408576698