Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/resources/settings/device_page/device_page.js

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromeos tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698