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

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: Address nits 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..13771da1c4437d1e3c504bf72eb30bab6a1eed12
--- /dev/null
+++ b/third_party/closure_compiler/externs/search_engines_private.js
@@ -0,0 +1,42 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
Tyler Breisacher (Chromium) 2015/04/22 19:08:20 lgtm given that this is autogenerated (at some poi
not at google - send to devlin 2015/04/22 19:32:59 That's the plan!
Oren Blasberg 2015/04/22 22:36:11 Nice :) I've updated this file after using the com
+// 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
+ * @externs
+ */
+
+/**
+ * @const
+ */
+chrome.searchEnginesPrivate = {};
+
+/**
+ * @typedef {{
+ * guid: string,
+ * name: string,
+ * isDefault: boolean
+ * }}
+ */
+chrome.searchEnginesPrivate.SearchEngine;
+
+/**
+ * @typedef {function(!Array<!chrome.searchEnginesPrivate.SearchEngine>)}
+ */
+chrome.searchEnginesPrivate.SearchEnginesCallback;
+
+/**
+ * Gets all the non-custom search engines.
+ * @param {chrome.searchEnginesPrivate.SearchEnginesCallback} callback
+ */
+chrome.searchEnginesPrivate.getDefaultSearchEngines = function(callback) {};
+
+/**
+ * Sets the default search engine.
+ * @param {string} guid
+ */
+chrome.searchEnginesPrivate.setDefaultSearchEngine = function(guid) {};
+
+/** @type {!ChromeEvent} */
+chrome.searchEnginesPrivate.onSearchEnginesChanged;

Powered by Google App Engine
This is Rietveld 408576698