Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @typedef {{ | 53 * @typedef {{ |
| 54 * key: string, | 54 * key: string, |
| 55 * type: !chrome.settingsPrivate.PrefType, | 55 * type: !chrome.settingsPrivate.PrefType, |
| 56 * value: *, | 56 * value: *, |
| 57 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), | 57 * policySource: (!chrome.settingsPrivate.PolicySource|undefined), |
| 58 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined), | 58 * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined), |
| 59 * recommendedValue: (*|undefined), | 59 * recommendedValue: (*|undefined), |
| 60 * policySourceName: (string|undefined), | |
|
Dan Beam
2015/09/21 21:50:47
nit: under policySource or as a member of it?
stevenjb
2015/09/23 18:46:24
Moved it in the .idl. (PolicySource is an enum)
Dan Beam
2015/09/25 01:47:36
ah, looked like a @struct (object), my bad
| |
| 60 * extensionId: (string|undefined), | 61 * extensionId: (string|undefined), |
| 61 * readOnly: (boolean|undefined) | 62 * readOnly: (boolean|undefined) |
| 62 * }} | 63 * }} |
| 63 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject | 64 * @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject |
| 64 */ | 65 */ |
| 65 chrome.settingsPrivate.PrefObject; | 66 chrome.settingsPrivate.PrefObject; |
| 66 | 67 |
| 67 /** | 68 /** |
| 68 * Sets a settings value. | 69 * Sets a settings value. |
| 69 * @param {string} name The name of the pref. | 70 * @param {string} name The name of the pref. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 90 */ | 91 */ |
| 91 chrome.settingsPrivate.getPref = function(name, callback) {}; | 92 chrome.settingsPrivate.getPref = function(name, callback) {}; |
| 92 | 93 |
| 93 /** | 94 /** |
| 94 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | 95 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that |
| 95 * changed.</p> | 96 * changed.</p> |
| 96 * @type {!ChromeEvent} | 97 * @type {!ChromeEvent} |
| 97 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha nged | 98 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha nged |
| 98 */ | 99 */ |
| 99 chrome.settingsPrivate.onPrefsChanged; | 100 chrome.settingsPrivate.onPrefsChanged; |
| OLD | NEW |