OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file was generated by: | 5 // This file was generated by: |
6 // tools/json_schema_compiler/compiler.py. | 6 // tools/json_schema_compiler/compiler.py. |
7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
8 // 'chrome.settingsPrivate.FooType'. | 8 // 'chrome.settingsPrivate.FooType'. |
9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
(...skipping 13 matching lines...) Expand all Loading... |
24 BOOLEAN: 'BOOLEAN', | 24 BOOLEAN: 'BOOLEAN', |
25 NUMBER: 'NUMBER', | 25 NUMBER: 'NUMBER', |
26 STRING: 'STRING', | 26 STRING: 'STRING', |
27 URL: 'URL', | 27 URL: 'URL', |
28 LIST: 'LIST', | 28 LIST: 'LIST', |
29 DICTIONARY: 'DICTIONARY', | 29 DICTIONARY: 'DICTIONARY', |
30 }; | 30 }; |
31 | 31 |
32 /** | 32 /** |
33 * @enum {string} | 33 * @enum {string} |
34 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicySourc
e | 34 * @see https://developer.chrome.com/extensions/settingsPrivate#type-ControlledB
y |
35 */ | 35 */ |
36 chrome.settingsPrivate.PolicySource = { | 36 chrome.settingsPrivate.ControlledBy = { |
37 DEVICE_POLICY: 'DEVICE_POLICY', | 37 DEVICE_POLICY: 'DEVICE_POLICY', |
38 USER_POLICY: 'USER_POLICY', | 38 USER_POLICY: 'USER_POLICY', |
39 OWNER: 'OWNER', | 39 OWNER: 'OWNER', |
40 PRIMARY_USER: 'PRIMARY_USER', | 40 PRIMARY_USER: 'PRIMARY_USER', |
41 EXTENSION: 'EXTENSION', | 41 EXTENSION: 'EXTENSION', |
42 }; | 42 }; |
43 | 43 |
44 /** | 44 /** |
45 * @enum {string} | 45 * @enum {string} |
46 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicyEnfor
cement | 46 * @see https://developer.chrome.com/extensions/settingsPrivate#type-Enforcement |
47 */ | 47 */ |
48 chrome.settingsPrivate.PolicyEnforcement = { | 48 chrome.settingsPrivate.Enforcement = { |
49 ENFORCED: 'ENFORCED', | 49 ENFORCED: 'ENFORCED', |
50 RECOMMENDED: 'RECOMMENDED', | 50 RECOMMENDED: 'RECOMMENDED', |
51 }; | 51 }; |
52 | 52 |
53 /** | 53 /** |
54 * @typedef {{ | 54 * @typedef {{ |
55 * key: string, | 55 * key: string, |
56 * type: !chrome.settingsPrivate.PrefType, | 56 * type: !chrome.settingsPrivate.PrefType, |
57 * value: *, | 57 * value: *, |
58 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), | 58 * controlledBy: (!chrome.settingsPrivate.ControlledBy|undefined), |
59 * policySourceName: (string|undefined), | 59 * controlledByName: (string|undefined), |
60 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined), | 60 * enforcement: (!chrome.settingsPrivate.Enforcement|undefined), |
61 * recommendedValue: (*|undefined), | 61 * recommendedValue: (*|undefined), |
62 * extensionId: (string|undefined), | 62 * extensionId: (string|undefined), |
63 * readOnly: (boolean|undefined) | 63 * extensionCanBeDisabled: (boolean|undefined) |
64 * }} | 64 * }} |
65 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject | 65 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject |
66 */ | 66 */ |
67 chrome.settingsPrivate.PrefObject; | 67 chrome.settingsPrivate.PrefObject; |
68 | 68 |
69 /** | 69 /** |
70 * Sets a settings value. | 70 * Sets a settings value. |
71 * @param {string} name The name of the pref. | 71 * @param {string} name The name of the pref. |
72 * @param {*} value The new value of the pref. | 72 * @param {*} value The new value of the pref. |
73 * @param {string} pageId The user metrics identifier or null. | 73 * @param {string} pageId The user metrics identifier or null. |
(...skipping 12 matching lines...) Expand all Loading... |
86 | 86 |
87 /** | 87 /** |
88 * Gets the value of a specific pref. | 88 * Gets the value of a specific pref. |
89 * @param {string} name | 89 * @param {string} name |
90 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback | 90 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback |
91 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref | 91 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref |
92 */ | 92 */ |
93 chrome.settingsPrivate.getPref = function(name, callback) {}; | 93 chrome.settingsPrivate.getPref = function(name, callback) {}; |
94 | 94 |
95 /** | 95 /** |
96 * Gets the page zoom factor. | 96 * Gets the default page zoom factor. Possible values are currently between 0.25 |
| 97 * and 5. For a full list, see zoom::kPresetZoomFactors. |
97 * @param {function(number):void} callback | 98 * @param {function(number):void} callback |
98 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefaul
tZoom | 99 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefaul
tZoom |
99 */ | 100 */ |
100 chrome.settingsPrivate.getDefaultZoom = function(callback) {}; | 101 chrome.settingsPrivate.getDefaultZoom = function(callback) {}; |
101 | 102 |
102 /** | 103 /** |
103 * Sets the page zoom factor. | 104 * Sets the page zoom factor. Must be less than 0.001 different than a value in |
| 105 * zoom::kPresetZoomFactors. |
104 * @param {number} zoom | 106 * @param {number} zoom |
105 * @param {function(boolean):void=} callback | 107 * @param {function(boolean):void=} callback |
106 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefaul
tZoom | 108 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefaul
tZoom |
107 */ | 109 */ |
108 chrome.settingsPrivate.setDefaultZoom = function(zoom, callback) {}; | 110 chrome.settingsPrivate.setDefaultZoom = function(zoom, callback) {}; |
109 | 111 |
110 /** | 112 /** |
111 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | 113 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that |
112 * changed.</p> | 114 * changed.</p> |
113 * @type {!ChromeEvent} | 115 * @type {!ChromeEvent} |
114 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged | 116 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged |
115 */ | 117 */ |
116 chrome.settingsPrivate.onPrefsChanged; | 118 chrome.settingsPrivate.onPrefsChanged; |
OLD | NEW |