OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'settings-device-page' is the settings page for device and | 6 * @fileoverview 'settings-device-page' is the settings page for device and |
7 * peripheral settings. | 7 * peripheral settings. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-device-page', | 10 is: 'settings-device-page', |
(...skipping 10 matching lines...) Expand all Loading... |
21 type: Object, | 21 type: Object, |
22 notify: true, | 22 notify: true, |
23 }, | 23 }, |
24 }, | 24 }, |
25 | 25 |
26 /** | 26 /** |
27 * Handler for tapping the Touchpad settings menu item. | 27 * Handler for tapping the Touchpad settings menu item. |
28 * @private | 28 * @private |
29 */ | 29 */ |
30 onTouchpadTap_: function() { | 30 onTouchpadTap_: function() { |
31 this.$.pages.setSubpageChain(['touchpad']); | 31 settings.navigateTo(settings.Route.TOUCHPAD); |
32 }, | 32 }, |
33 | 33 |
34 /** | 34 /** |
35 * Handler for tapping the Keyboard settings menu item. | 35 * Handler for tapping the Keyboard settings menu item. |
36 * @private | 36 * @private |
37 */ | 37 */ |
38 onKeyboardTap_: function() { | 38 onKeyboardTap_: function() { |
39 this.$.pages.setSubpageChain(['keyboard']); | 39 settings.navigateTo(settings.Route.KEYBOARD); |
40 }, | 40 }, |
41 | 41 |
42 /** | 42 /** |
43 * Handler for tapping the Display settings menu item. | 43 * Handler for tapping the Display settings menu item. |
44 * @private | 44 * @private |
45 */ | 45 */ |
46 onDisplayTap_: function() { | 46 onDisplayTap_: function() { |
47 this.$.pages.setSubpageChain(['display']); | 47 settings.navigateTo(settings.Route.DISPLAY); |
48 }, | 48 }, |
49 }); | 49 }); |
OLD | NEW |