| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 this.checkPointerSubpage_(); | 128 this.checkPointerSubpage_(); |
| 129 }, | 129 }, |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Leaves the pointer subpage if all pointing devices are detached. | 132 * Leaves the pointer subpage if all pointing devices are detached. |
| 133 * @private | 133 * @private |
| 134 */ | 134 */ |
| 135 checkPointerSubpage_: function() { | 135 checkPointerSubpage_: function() { |
| 136 if (!this.hasMouse_ && !this.hasTouchpad_ && | 136 if (!this.hasMouse_ && !this.hasTouchpad_ && |
| 137 settings.getCurrentRoute() == settings.Route.POINTERS) { | 137 settings.getCurrentRoute() == settings.Route.POINTERS) { |
| 138 this.$.pages.fire('subpage-back'); | 138 settings.navigateTo(settings.Route.DEVICE); |
| 139 } | 139 } |
| 140 }, | 140 }, |
| 141 }); | 141 }); |
| OLD | NEW |