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 Provides an interface for that can be overridden in tests. */ | |
6 | |
7 assertNotReached('Interface file for Closure Compiler should not be executed.'); | |
8 | |
9 /** @interface */ | |
10 function SettingsPrivate() {} | |
11 | |
12 SettingsPrivate.prototype = { | |
13 /** | |
14 * Sets a settings value. | |
15 * @param {string} name The name of the pref. | |
16 * @param {*} value The new value of the pref. | |
17 * @param {string} pageId The user metrics identifier or null. | |
18 * @param {function(boolean):void} callback The callback for whether the pref | |
19 * was set or not. | |
20 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref | |
21 */ | |
22 setPref: assertNotReached, | |
23 | |
24 /** | |
25 * Gets an array of all the prefs. | |
26 * @param {function(!Array<!chrome.settingsPrivate.PrefObject>):void} callback | |
27 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllP
refs | |
28 */ | |
29 getAllPrefs: assertNotReached, | |
30 | |
31 /** | |
32 * Gets the value of a specific pref. | |
33 * @param {string} name | |
34 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback | |
35 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref | |
36 */ | |
37 getPref: assertNotReached, | |
38 | |
39 /** | |
40 * Gets the page zoom factor as an integer percentage. | |
41 * @param {function(number):void} callback | |
42 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefa
ultZoomPercent | |
43 */ | |
44 getDefaultZoomPercent: assertNotReached, | |
45 | |
46 /** | |
47 * Sets the page zoom factor from a zoom percentage. | |
48 * @param {number} percent | |
49 * @param {function(boolean):void=} callback | |
50 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefa
ultZoomPercent | |
51 */ | |
52 setDefaultZoomPercent: assertNotReached, | |
53 | |
54 /** | |
55 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | |
56 * changed.</p> | |
57 * @type {!ChromeEvent} | |
58 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsC
hanged | |
59 */ | |
60 onPrefsChanged: new ChromeEvent(), | |
61 }; | |
OLD | NEW |