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

Side by Side Diff: third_party/closure_compiler/externs/settings_private.js

Issue 1315173003: PrefObject -> PrefData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/api/settings_private.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** @fileoverview Externs generated from namespace: settingsPrivate */ 1 /** @fileoverview Externs generated from namespace: settingsPrivate */
2 2
3 /** 3 /**
4 * @const 4 * @const
5 */ 5 */
6 chrome.settingsPrivate = {}; 6 chrome.settingsPrivate = {};
7 7
8 /** 8 /**
9 * @enum {string} 9 * @enum {string}
10 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefType 10 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefType
(...skipping 25 matching lines...) Expand all
36 }; 36 };
37 37
38 /** 38 /**
39 * @typedef {{ 39 * @typedef {{
40 * key: string, 40 * key: string,
41 * type: !chrome.settingsPrivate.PrefType, 41 * type: !chrome.settingsPrivate.PrefType,
42 * value: *, 42 * value: *,
43 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), 43 * policySource: (!chrome.settingsPrivate.PolicySource|undefined),
44 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined) 44 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined)
45 * }} 45 * }}
46 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject 46 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefData
47 */ 47 */
48 var PrefObject; 48 var PrefData;
49 49
50 /** 50 /**
51 * Sets a settings value. 51 * Sets a settings value.
52 * @param {string} name The name of the pref. 52 * @param {string} name The name of the pref.
53 * @param {*} value The new value of the pref. 53 * @param {*} value The new value of the pref.
54 * @param {string} pageId The user metrics identifier or null. 54 * @param {string} pageId The user metrics identifier or null.
55 * @param {function(boolean):void} callback The callback for whether the pref 55 * @param {function(boolean):void} callback The callback for whether the pref
56 * was set or not. 56 * was set or not.
57 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref 57 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref
58 */ 58 */
59 chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {}; 59 chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {};
60 60
61 /** 61 /**
62 * Gets an array of all the prefs. 62 * Gets an array of all the prefs.
63 * @param {function(!Array<PrefObject>):void} callback 63 * @param {function(!Array<PrefData>):void} callback
64 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPre fs 64 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPre fs
65 */ 65 */
66 chrome.settingsPrivate.getAllPrefs = function(callback) {}; 66 chrome.settingsPrivate.getAllPrefs = function(callback) {};
67 67
68 /** 68 /**
69 * Gets the value of a specific pref. 69 * Gets the value of a specific pref.
70 * @param {string} name 70 * @param {string} name
71 * @param {function(PrefObject):void} callback 71 * @param {function(PrefData):void} callback
72 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref 72 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref
73 */ 73 */
74 chrome.settingsPrivate.getPref = function(name, callback) {}; 74 chrome.settingsPrivate.getPref = function(name, callback) {};
75 75
76 /** 76 /**
77 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that 77 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that
78 * changed.</p> 78 * changed.</p>
79 * @type {!ChromeEvent} 79 * @type {!ChromeEvent}
80 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha nged 80 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha nged
81 */ 81 */
82 chrome.settingsPrivate.onPrefsChanged; 82 chrome.settingsPrivate.onPrefsChanged;
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/settings_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698