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.
5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.settingsPrivate.FooType'.
9 // Please run the closure compiler before committing changes.
10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation.
12 /** @fileoverview Externs generated from namespace: settingsPrivate */
17 chrome.settingsPrivate = {};
21 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefType
23 chrome.settingsPrivate.PrefType = {
33 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicySource
35 chrome.settingsPrivate.PolicySource = {
42 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicyEnforcement
44 chrome.settingsPrivate.PolicyEnforcement = {
46 RECOMMENDED: 'RECOMMENDED',
52 * type: !chrome.settingsPrivate.PrefType,
54 * policySource: (!chrome.settingsPrivate.PolicySource|undefined),
55 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined)
57 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject
59 chrome.settingsPrivate.PrefObject;
62 * Sets a settings value.
63 * @param {string} name The name of the pref.
64 * @param {*} value The new value of the pref.
65 * @param {string} pageId The user metrics identifier or null.
66 * @param {function(boolean):void} callback The callback for whether the pref
68 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref
70 chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {};
73 * Gets an array of all the prefs.
74 * @param {function(!Array<!chrome.settingsPrivate.PrefObject>):void} callback
75 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPrefs
77 chrome.settingsPrivate.getAllPrefs = function(callback) {};
80 * Gets the value of a specific pref.
81 * @param {string} name
82 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback
83 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref
85 chrome.settingsPrivate.getPref = function(name, callback) {};
88 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that
90 * @type {!ChromeEvent}
91 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsChanged
93 chrome.settingsPrivate.onPrefsChanged;