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

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

Issue 2629573006: chromeos: Add Power device page to chrome://md-settings. (Closed)
Patch Set: update copyright year Created 3 years, 11 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 /** 111 /**
112 * Handler for tapping the Display settings menu item. 112 * Handler for tapping the Display settings menu item.
113 * @private 113 * @private
114 */ 114 */
115 onDisplayTap_: function() { 115 onDisplayTap_: function() {
116 settings.navigateTo(settings.Route.DISPLAY); 116 settings.navigateTo(settings.Route.DISPLAY);
117 }, 117 },
118 118
119 /** 119 /**
120 * Handler for tapping the Power settings menu item.
121 * @private
122 */
123 onPowerTap_: function() {
124 settings.navigateTo(settings.Route.POWER);
125 },
126
127 /**
120 * Handler for tapping the Storage settings menu item. 128 * Handler for tapping the Storage settings menu item.
121 * @private 129 * @private
122 */ 130 */
123 onStorageTap_: function() { 131 onStorageTap_: function() {
124 settings.navigateTo(settings.Route.STORAGE); 132 settings.navigateTo(settings.Route.STORAGE);
125 }, 133 },
126 134
127 /** @protected */ 135 /** @protected */
128 currentRouteChanged: function() { 136 currentRouteChanged: function() {
129 this.checkPointerSubpage_(); 137 this.checkPointerSubpage_();
(...skipping 14 matching lines...) Expand all
144 * @private 152 * @private
145 */ 153 */
146 checkPointerSubpage_: function() { 154 checkPointerSubpage_: function() {
147 // Check that the properties have explicitly been set to false. 155 // Check that the properties have explicitly been set to false.
148 if (this.hasMouse_ === false && this.hasTouchpad_ === false && 156 if (this.hasMouse_ === false && this.hasTouchpad_ === false &&
149 settings.getCurrentRoute() == settings.Route.POINTERS) { 157 settings.getCurrentRoute() == settings.Route.POINTERS) {
150 settings.navigateTo(settings.Route.DEVICE); 158 settings.navigateTo(settings.Route.DEVICE);
151 } 159 }
152 }, 160 },
153 }); 161 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698