| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 */ | 101 */ |
| 102 onKeyboardTap_: function() { | 102 onKeyboardTap_: function() { |
| 103 settings.navigateTo(settings.Route.KEYBOARD); | 103 settings.navigateTo(settings.Route.KEYBOARD); |
| 104 }, | 104 }, |
| 105 | 105 |
| 106 /** | 106 /** |
| 107 * Handler for tapping the Keyboard settings menu item. | 107 * Handler for tapping the Keyboard settings menu item. |
| 108 * @private | 108 * @private |
| 109 */ | 109 */ |
| 110 onNoteTap_: function() { | 110 onNoteTap_: function() { |
| 111 this.$.pages.setSubpageChain(['note']); | 111 settings.navigateTo(settings.Route.NOTES); |
| 112 }, | 112 }, |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * Handler for tapping the Display settings menu item. | 115 * Handler for tapping the Display settings menu item. |
| 116 * @private | 116 * @private |
| 117 */ | 117 */ |
| 118 onDisplayTap_: function() { | 118 onDisplayTap_: function() { |
| 119 settings.navigateTo(settings.Route.DISPLAY); | 119 settings.navigateTo(settings.Route.DISPLAY); |
| 120 }, | 120 }, |
| 121 | 121 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 151 * @private | 151 * @private |
| 152 */ | 152 */ |
| 153 isCurrentRouteOnPointersPage_: function() { | 153 isCurrentRouteOnPointersPage_: function() { |
| 154 return this.currentRoute && | 154 return this.currentRoute && |
| 155 this.currentRoute.page == 'basic' && | 155 this.currentRoute.page == 'basic' && |
| 156 this.currentRoute.section == 'device' && | 156 this.currentRoute.section == 'device' && |
| 157 this.currentRoute.subpage.length == 1 && | 157 this.currentRoute.subpage.length == 1 && |
| 158 this.currentRoute.subpage[0] == 'pointers'; | 158 this.currentRoute.subpage[0] == 'pointers'; |
| 159 }, | 159 }, |
| 160 }); | 160 }); |
| OLD | NEW |