Index: third_party/closure_compiler/externs/settings_private.js |
diff --git a/third_party/closure_compiler/externs/settings_private.js b/third_party/closure_compiler/externs/settings_private.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dfb52917c5250cbf1f3feed09eddc20940ed0775 |
--- /dev/null |
+++ b/third_party/closure_compiler/externs/settings_private.js |
@@ -0,0 +1,59 @@ |
+// 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: settingsPrivate */ |
+ |
+/** |
+ * @typedef {{ |
+ * key: string, |
+ * type: string, |
stevenjb
2015/03/20 15:45:29
enum
Oren Blasberg
2015/03/20 18:58:53
Done.
|
+ * value: *, |
+ * source: string |
stevenjb
2015/03/20 15:45:29
enum
Oren Blasberg
2015/03/20 18:58:53
Done.
|
+ * }} |
+ */ |
+var PrefObject; |
+ |
+/** |
+ * @const |
+ */ |
+chrome.settingsPrivate = {}; |
+ |
+/** |
+ * Sets a boolean settings value. |
+ * @param {string} name |
+ * @param {boolean} value |
+ * @return {boolean} Returns true if |name| matches a valid key (i.e. a |
+ * PrefObject key from getAllPrefs), or returns false and sets an error if |
+ * it does not. |
+ */ |
+chrome.settingsPrivate.setBooleanPref = function(name, value) {}; |
+ |
+/** |
+ * Sets a number settings value. |
+ * @param {string} name |
+ * @param {number} value |
+ * @return {boolean} Returns true if |name| matches a valid key (i.e. a |
+ * PrefObject key from getAllPrefs), or returns false and sets an error if |
+ * it does not. |
+ */ |
+chrome.settingsPrivate.setNumericPref = function(name, value) {}; |
+ |
+/** |
+ * Sets a string settings value. |
+ * @param {string} name |
+ * @param {string} value |
+ * @return {boolean} Returns true if |name| matches a valid key (i.e. a |
+ * PrefObject key from getAllPrefs), or returns false and sets an error if |
+ * it does not. |
+ */ |
+chrome.settingsPrivate.setStringPref = function(name, value) {}; |
+ |
+/** |
+ * Gets all the prefs. |
+ * @param {function(!Array<PrefObject>)} callback |
+ */ |
+chrome.settingsPrivate.getAllPrefs = function(callback) {}; |
+ |
+/** @type {!ChromeEvent} */ |
+chrome.settingsPrivate.onPrefsChanged; |