| 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 // Use the <code>chrome.settingsPrivate</code> API to get or set preferences | 5 // Use the <code>chrome.settingsPrivate</code> API to get or set preferences |
| 6 // from the settings UI. | 6 // from the settings UI. |
| 7 [use_movable_types=true] namespace settingsPrivate { | 7 namespace settingsPrivate { |
| 8 // Type of a pref. | 8 // Type of a pref. |
| 9 enum PrefType { BOOLEAN, NUMBER, STRING, URL, LIST, DICTIONARY }; | 9 enum PrefType { BOOLEAN, NUMBER, STRING, URL, LIST, DICTIONARY }; |
| 10 | 10 |
| 11 // Source of a restricted pref, either by policy or other source. | 11 // Source of a restricted pref, either by policy or other source. |
| 12 enum PolicySource { | 12 enum PolicySource { |
| 13 DEVICE_POLICY, | 13 DEVICE_POLICY, |
| 14 USER_POLICY, | 14 USER_POLICY, |
| 15 OWNER, | 15 OWNER, |
| 16 PRIMARY_USER, | 16 PRIMARY_USER, |
| 17 EXTENSION | 17 EXTENSION |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 optional SetDefaultZoomPercentCallback callback); | 83 optional SetDefaultZoomPercentCallback callback); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 interface Events { | 86 interface Events { |
| 87 // Fired when a set of prefs has changed. | 87 // Fired when a set of prefs has changed. |
| 88 // | 88 // |
| 89 // |prefs| The prefs that changed. | 89 // |prefs| The prefs that changed. |
| 90 static void onPrefsChanged(PrefObject[] prefs); | 90 static void onPrefsChanged(PrefObject[] prefs); |
| 91 }; | 91 }; |
| 92 }; | 92 }; |
| OLD | NEW |