OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 // Define chrome.settingsPrivate enums, normally provided by chrome WebUI. | |
6 // NOTE: These need to be kept in sync with settings_private.idl. | |
dschuyler
2017/03/08 21:50:12
copied from cr_policy_pref_indicator_tests.js
| |
7 | |
8 chrome.settingsPrivate = chrome.settingsPrivate || {}; | |
9 | |
10 /** @enum {string} */ | |
11 chrome.settingsPrivate.ControlledBy = { | |
12 DEVICE_POLICY: 'DEVICE_POLICY', | |
13 USER_POLICY: 'USER_POLICY', | |
14 OWNER: 'OWNER', | |
15 PRIMARY_USER: 'PRIMARY_USER', | |
16 EXTENSION: 'EXTENSION', | |
17 }; | |
18 | |
19 /** @enum {string} */ | |
20 chrome.settingsPrivate.Enforcement = { | |
21 ENFORCED: 'ENFORCED', | |
22 RECOMMENDED: 'RECOMMENDED', | |
23 }; | |
24 | |
25 /** @enum {string} */ | |
26 chrome.settingsPrivate.PrefType = { | |
27 BOOLEAN: 'BOOLEAN', | |
28 NUMBER: 'NUMBER', | |
29 STRING: 'STRING', | |
30 URL: 'URL', | |
31 LIST: 'LIST', | |
32 DICTIONARY: 'DICTIONARY', | |
33 }; | |
OLD | NEW |