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

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

Issue 1015623005: chrome.settingsPrivate: Basic stub implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extracting and logging the parameters Created 5 years, 9 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
OLDNEW
(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 /**
6 * @fileoverview Externs generated from namespace: settingsPrivate
7 * @externs
8 */
9
10 /**
11 * @const
12 */
13 chrome.settingsPrivate = {};
14
15 /**
16 * @typedef {{
17 * key: string,
18 * type: chrome.settingsPrivate.PrefType,
19 * value: *,
20 * source: chrome.settingsPrivate.PrefSource
21 * }}
22 */
23 chrome.settingsPrivate.PrefObject;
24
25 /**
26 * @typedef {function(success)}
27 */
28 chrome.settingsPrivate.OnPrefSetCallback;
29
30 /**
31 * @typedef {function(!Array<chrome.settingsPrivate.PrefObject>)}
32 */
33 chrome.settingsPrivate.GetAllPrefsCallback;
34
35 /**
36 * @typedef {function(chrome.settingsPrivate.PrefObject)}
37 */
38 chrome.settingsPrivate.GetPrefCallback;
39
40 /**
41 * Sets a boolean settings value.
42 * @param {string} name
43 * @param {boolean} value
44 * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
45 */
46 chrome.settingsPrivate.setBooleanPref = function(name, value, callback) {};
47
48 /**
49 * Sets a number settings value.
50 * @param {string} name
51 * @param {number} value
52 * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
53 */
54 chrome.settingsPrivate.setNumericPref = function(name, value, callback) {};
55
56 /**
57 * Sets a string settings value.
58 * @param {string} name
59 * @param {string} value
60 * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
61 */
62 chrome.settingsPrivate.setStringPref = function(name, value, callback) {};
63
64 /**
65 * Sets a URL settings value.
66 * @param {string} name
67 * @param {string} value
68 * @param {chrome.settingsPrivate.OnPrefSetCallback} callback
69 */
70 chrome.settingsPrivate.setURLPref = function(name, value, callback) {};
71
72 /**
73 * Gets all the prefs.
74 * @param {chrome.settingsPrivate.GetAllPrefsCallback} callback
75 */
76 chrome.settingsPrivate.getAllPrefs = function(callback) {};
77
78 /**
79 * Gets the value of a specific pref.
80 * @param {string} name
81 * @param {chrome.settingsPrivate.GetPrefCallback} callback
82 */
83 chrome.settingsPrivate.getPref = function(name, callback) {};
84
85 /** @type {!ChromeEvent} */
86 chrome.settingsPrivate.onPrefsChanged;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698