Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 /** @fileoverview Externs generated from namespace: settingsPrivate */ | |
| 6 | |
| 7 /** | |
| 8 * @typedef {{ | |
| 9 * key: string, | |
| 10 * type: string, | |
|
stevenjb
2015/03/20 15:45:29
enum
Oren Blasberg
2015/03/20 18:58:53
Done.
| |
| 11 * value: *, | |
| 12 * source: string | |
|
stevenjb
2015/03/20 15:45:29
enum
Oren Blasberg
2015/03/20 18:58:53
Done.
| |
| 13 * }} | |
| 14 */ | |
| 15 var PrefObject; | |
| 16 | |
| 17 /** | |
| 18 * @const | |
| 19 */ | |
| 20 chrome.settingsPrivate = {}; | |
| 21 | |
| 22 /** | |
| 23 * Sets a boolean settings value. | |
| 24 * @param {string} name | |
| 25 * @param {boolean} value | |
| 26 * @return {boolean} Returns true if |name| matches a valid key (i.e. a | |
| 27 * PrefObject key from getAllPrefs), or returns false and sets an error if | |
| 28 * it does not. | |
| 29 */ | |
| 30 chrome.settingsPrivate.setBooleanPref = function(name, value) {}; | |
| 31 | |
| 32 /** | |
| 33 * Sets a number settings value. | |
| 34 * @param {string} name | |
| 35 * @param {number} value | |
| 36 * @return {boolean} Returns true if |name| matches a valid key (i.e. a | |
| 37 * PrefObject key from getAllPrefs), or returns false and sets an error if | |
| 38 * it does not. | |
| 39 */ | |
| 40 chrome.settingsPrivate.setNumericPref = function(name, value) {}; | |
| 41 | |
| 42 /** | |
| 43 * Sets a string settings value. | |
| 44 * @param {string} name | |
| 45 * @param {string} value | |
| 46 * @return {boolean} Returns true if |name| matches a valid key (i.e. a | |
| 47 * PrefObject key from getAllPrefs), or returns false and sets an error if | |
| 48 * it does not. | |
| 49 */ | |
| 50 chrome.settingsPrivate.setStringPref = function(name, value) {}; | |
| 51 | |
| 52 /** | |
| 53 * Gets all the prefs. | |
| 54 * @param {function(!Array<PrefObject>)} callback | |
| 55 */ | |
| 56 chrome.settingsPrivate.getAllPrefs = function(callback) {}; | |
| 57 | |
| 58 /** @type {!ChromeEvent} */ | |
| 59 chrome.settingsPrivate.onPrefsChanged; | |
| OLD | NEW |