1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * @fileoverview Externs generated from namespace: settingsPrivate
13 chrome.settingsPrivate = {};
18 * type: chrome.settingsPrivate.PrefType,
20 * policySource: (chrome.settingsPrivate.PolicySource|undefined),
21 * policyEnforcement: (chrome.settingsPrivate.PolicyEnforcement|undefined),
24 chrome.settingsPrivate.PrefObject;
27 * @typedef {function(success)}
29 chrome.settingsPrivate.OnPrefSetCallback;
32 * @typedef {function(!Array<chrome.settingsPrivate.PrefObject>)}
34 chrome.settingsPrivate.GetAllPrefsCallback;
37 * @typedef {function(chrome.settingsPrivate.PrefObject)}
39 chrome.settingsPrivate.GetPrefCallback;
42 * Sets a settings value.
43 * @param {string} name
45 * @param {string} pageId
46 * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
48 chrome.settingsPrivate.setPref =
49 function(name, value, pageId, callback) {};
53 * @param {chrome.settingsPrivate.GetAllPrefsCallback} callback
55 chrome.settingsPrivate.getAllPrefs = function(callback) {};
58 * Gets the value of a specific pref.
59 * @param {string} name
60 * @param {chrome.settingsPrivate.GetPrefCallback} callback
62 chrome.settingsPrivate.getPref = function(name, callback) {};
64 /** @type {!ChromeEvent} */
65 chrome.settingsPrivate.onPrefsChanged;