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 /** | 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 30 matching lines...) Expand all Loading... | |
| 41 var CROS_ONLY_PREFS = [ | 41 var CROS_ONLY_PREFS = [ |
| 42 'settings.accessibility', | 42 'settings.accessibility', |
| 43 'settings.a11y.autoclick', | 43 'settings.a11y.autoclick', |
| 44 'settings.a11y.autoclick_delay_ms', | 44 'settings.a11y.autoclick_delay_ms', |
| 45 'settings.a11y.enable_menu', | 45 'settings.a11y.enable_menu', |
| 46 'settings.a11y.high_contrast_enabled', | 46 'settings.a11y.high_contrast_enabled', |
| 47 'settings.a11y.large_cursor_enabled', | 47 'settings.a11y.large_cursor_enabled', |
| 48 'settings.a11y.screen_magnifier', | 48 'settings.a11y.screen_magnifier', |
| 49 'settings.a11y.sticky_keys_enabled', | 49 'settings.a11y.sticky_keys_enabled', |
| 50 'settings.a11y.virtual_keyboard', | 50 'settings.a11y.virtual_keyboard', |
| 51 'settings.clock.use24HourClock', | |
|
Jeremy Klein
2015/03/24 00:49:06
underscores
Oren Blasberg
2015/03/24 00:54:57
Done.
| |
| 52 'settings.cros.system.timezone', | |
|
Jeremy Klein
2015/03/24 00:49:06
no "settings" here.
Oren Blasberg
2015/03/24 00:54:57
Done.
| |
| 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 |