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

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: Sync + merge conflicts in histogram 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..a9efae849707a1249b383d67280abca82bccd059
--- /dev/null
+++ b/third_party/closure_compiler/externs/settings_private.js
@@ -0,0 +1,86 @@
+// 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
+ * @externs
+ */
+
+/**
+ * @const
+ */
+chrome.settingsPrivate = {};
+
+/**
+ * @typedef {{
+ * key: string,
+ * type: chrome.settingsPrivate.PrefType,
+ * value: *,
+ * source: chrome.settingsPrivate.PrefSource
+ * }}
+ */
+chrome.settingsPrivate.PrefObject;
+
+/**
+ * @typedef {function(success)}
+ */
+chrome.settingsPrivate.OnPrefSetCallback;
+
+/**
+ * @typedef {function(!Array<chrome.settingsPrivate.PrefObject>)}
+ */
+chrome.settingsPrivate.GetAllPrefsCallback;
+
+/**
+ * @typedef {function(chrome.settingsPrivate.PrefObject)}
+ */
+chrome.settingsPrivate.GetPrefCallback;
+
+/**
+ * Sets a boolean settings value.
+ * @param {string} name
+ * @param {boolean} value
+ * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
+ */
+chrome.settingsPrivate.setBooleanPref = function(name, value, callback) {};
+
+/**
+ * Sets a number settings value.
+ * @param {string} name
+ * @param {number} value
+ * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
+ */
+chrome.settingsPrivate.setNumericPref = function(name, value, callback) {};
+
+/**
+ * Sets a string settings value.
+ * @param {string} name
+ * @param {string} value
+ * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
+ */
+chrome.settingsPrivate.setStringPref = function(name, value, callback) {};
+
+/**
+ * Sets a URL settings value.
+ * @param {string} name
+ * @param {string} value
+ * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
+ */
+chrome.settingsPrivate.setURLPref = function(name, value, callback) {};
+
+/**
+ * Gets all the prefs.
+ * @param {chrome.settingsPrivate.GetAllPrefsCallback} callback
+ */
+chrome.settingsPrivate.getAllPrefs = function(callback) {};
+
+/**
+ * Gets the value of a specific pref.
+ * @param {string} name
+ * @param {chrome.settingsPrivate.GetPrefCallback} callback
+ */
+chrome.settingsPrivate.getPref = function(name, callback) {};
+
+/** @type {!ChromeEvent} */
+chrome.settingsPrivate.onPrefsChanged;

Powered by Google App Engine
This is Rietveld 408576698