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 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * 'cr-settings-prefs' is an element which serves as a model for | 7 * 'cr-settings-prefs' is an element which serves as a model for |
8 * interaction with settings which are stored in Chrome's | 8 * interaction with settings which are stored in Chrome's |
9 * Preferences. | 9 * Preferences. |
10 * | 10 * |
(...skipping 21 matching lines...) Expand all Loading... |
32 ]; | 32 ]; |
33 | 33 |
34 /** | 34 /** |
35 * A list of all CrOS-only pref paths used in the UI. | 35 * A list of all CrOS-only pref paths used in the UI. |
36 * TODO(jlklein): This is a temporary workaround that needs to be removed | 36 * TODO(jlklein): This is a temporary workaround that needs to be removed |
37 * once settingsPrivate is implemented with the fetchAll function. We will | 37 * once settingsPrivate is implemented with the fetchAll function. We will |
38 * not need to tell the settingsPrivate API which prefs to fetch. | 38 * not need to tell the settingsPrivate API which prefs to fetch. |
39 * @const {!Array<string>} | 39 * @const {!Array<string>} |
40 */ | 40 */ |
41 var CROS_ONLY_PREFS = [ | 41 var CROS_ONLY_PREFS = [ |
| 42 'cros.system.timezone', |
42 'settings.accessibility', | 43 'settings.accessibility', |
43 'settings.a11y.autoclick', | 44 'settings.a11y.autoclick', |
44 'settings.a11y.autoclick_delay_ms', | 45 'settings.a11y.autoclick_delay_ms', |
45 'settings.a11y.enable_menu', | 46 'settings.a11y.enable_menu', |
46 'settings.a11y.high_contrast_enabled', | 47 'settings.a11y.high_contrast_enabled', |
47 'settings.a11y.large_cursor_enabled', | 48 'settings.a11y.large_cursor_enabled', |
48 'settings.a11y.screen_magnifier', | 49 'settings.a11y.screen_magnifier', |
49 'settings.a11y.sticky_keys_enabled', | 50 'settings.a11y.sticky_keys_enabled', |
50 'settings.a11y.virtual_keyboard', | 51 'settings.a11y.virtual_keyboard', |
| 52 'settings.settings.clock.use_24Hour_Clock', |
51 'settings.touchpad.enable_tap_dragging', | 53 'settings.touchpad.enable_tap_dragging', |
52 ]; | 54 ]; |
53 | 55 |
54 Polymer('cr-settings-prefs', { | 56 Polymer('cr-settings-prefs', { |
55 publish: { | 57 publish: { |
56 /** | 58 /** |
57 * Object containing all preferences. | 59 * Object containing all preferences. |
58 * | 60 * |
59 * @attribute settings | 61 * @attribute settings |
60 * @type CrSettingsPrefs.Settings | 62 * @type CrSettingsPrefs.Settings |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 /** | 214 /** |
213 * @param {string} propertyPath The full path of the pref. | 215 * @param {string} propertyPath The full path of the pref. |
214 * @param {!Array} value The new value of the pref. | 216 * @param {!Array} value The new value of the pref. |
215 * @private | 217 * @private |
216 */ | 218 */ |
217 setArrayPref_: function(propertyPath, value) { | 219 setArrayPref_: function(propertyPath, value) { |
218 chrome.send('setListPref', [propertyPath, value]); | 220 chrome.send('setListPref', [propertyPath, value]); |
219 }, | 221 }, |
220 }); | 222 }); |
221 })(); | 223 })(); |
OLD | NEW |