1 /** @fileoverview Externs generated from namespace: settingsPrivate */
6 chrome.settingsPrivate = {};
10 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefType
12 chrome.settingsPrivate.PrefType = {
22 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicySource
24 chrome.settingsPrivate.PolicySource = {
31 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicyEnforcement
33 chrome.settingsPrivate.PolicyEnforcement = {
35 RECOMMENDED: 'RECOMMENDED',
41 * type: !chrome.settingsPrivate.PrefType,
43 * policySource: (!chrome.settingsPrivate.PolicySource|undefined),
44 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined)
46 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject
51 * Sets a settings value.
52 * @param {string} name The name of the pref.
53 * @param {*} value The new value of the pref.
54 * @param {string} pageId The user metrics identifier or null.
55 * @param {function(boolean):void} callback The callback for whether the pref
57 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref
59 chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {};
62 * Gets an array of all the prefs.
63 * @param {function(!Array<PrefObject>):void} callback
64 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPrefs
66 chrome.settingsPrivate.getAllPrefs = function(callback) {};
69 * Gets the value of a specific pref.
70 * @param {string} name
71 * @param {function(PrefObject):void} callback
72 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref
74 chrome.settingsPrivate.getPref = function(name, callback) {};
77 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that
79 * @type {!ChromeEvent}
80 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsChanged
82 chrome.settingsPrivate.onPrefsChanged;