| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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://code.google.com/p/chromium/wiki/ClosureCompilation. | 10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 STRING: 'STRING', | 26 STRING: 'STRING', |
| 27 URL: 'URL', | 27 URL: 'URL', |
| 28 LIST: 'LIST', | 28 LIST: 'LIST', |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @enum {string} | 32 * @enum {string} |
| 33 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicySourc
e | 33 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicySourc
e |
| 34 */ | 34 */ |
| 35 chrome.settingsPrivate.PolicySource = { | 35 chrome.settingsPrivate.PolicySource = { |
| 36 DEVICE: 'DEVICE', | 36 DEVICE_POLICY: 'DEVICE_POLICY', |
| 37 USER: 'USER', | 37 USER_POLICY: 'USER_POLICY', |
| 38 OWNER: 'OWNER', |
| 39 PRIMARY_USER: 'PRIMARY_USER', |
| 40 EXTENSION: 'EXTENSION', |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 /** | 43 /** |
| 41 * @enum {string} | 44 * @enum {string} |
| 42 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicyEnfor
cement | 45 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PolicyEnfor
cement |
| 43 */ | 46 */ |
| 44 chrome.settingsPrivate.PolicyEnforcement = { | 47 chrome.settingsPrivate.PolicyEnforcement = { |
| 45 ENFORCED: 'ENFORCED', | 48 ENFORCED: 'ENFORCED', |
| 46 RECOMMENDED: 'RECOMMENDED', | 49 RECOMMENDED: 'RECOMMENDED', |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 /** | 52 /** |
| 50 * @typedef {{ | 53 * @typedef {{ |
| 51 * key: string, | 54 * key: string, |
| 52 * type: !chrome.settingsPrivate.PrefType, | 55 * type: !chrome.settingsPrivate.PrefType, |
| 53 * value: *, | 56 * value: *, |
| 54 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), | 57 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), |
| 55 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined) | 58 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined), |
| 59 * recommendedValue: (*|undefined), |
| 60 * extensionId: (string|undefined), |
| 61 * readOnly: (boolean|undefined) |
| 56 * }} | 62 * }} |
| 57 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject | 63 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject |
| 58 */ | 64 */ |
| 59 chrome.settingsPrivate.PrefObject; | 65 chrome.settingsPrivate.PrefObject; |
| 60 | 66 |
| 61 /** | 67 /** |
| 62 * Sets a settings value. | 68 * Sets a settings value. |
| 63 * @param {string} name The name of the pref. | 69 * @param {string} name The name of the pref. |
| 64 * @param {*} value The new value of the pref. | 70 * @param {*} value The new value of the pref. |
| 65 * @param {string} pageId The user metrics identifier or null. | 71 * @param {string} pageId The user metrics identifier or null. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 84 */ | 90 */ |
| 85 chrome.settingsPrivate.getPref = function(name, callback) {}; | 91 chrome.settingsPrivate.getPref = function(name, callback) {}; |
| 86 | 92 |
| 87 /** | 93 /** |
| 88 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | 94 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that |
| 89 * changed.</p> | 95 * changed.</p> |
| 90 * @type {!ChromeEvent} | 96 * @type {!ChromeEvent} |
| 91 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged | 97 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged |
| 92 */ | 98 */ |
| 93 chrome.settingsPrivate.onPrefsChanged; | 99 chrome.settingsPrivate.onPrefsChanged; |
| OLD | NEW |