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

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

Issue 1015623005: chrome.settingsPrivate: Basic stub implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update API to reflect design changes. Still error on calling method. Created 5 years, 9 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/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;

Powered by Google App Engine
This is Rietveld 408576698