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

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

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return loadTimeData.getBoolean('enablePowerSettings'); 50 return loadTimeData.getBoolean('enablePowerSettings');
51 }, 51 },
52 readOnly: true, 52 readOnly: true,
53 }, 53 },
54 54
55 /** @private {!Map<string, string>} */ 55 /** @private {!Map<string, string>} */
56 focusConfig_: { 56 focusConfig_: {
57 type: Object, 57 type: Object,
58 value: function() { 58 value: function() {
59 var map = new Map(); 59 var map = new Map();
60 map.set( 60 map.set(settings.Route.POINTERS.path, '#pointersRow .subpage-arrow');
61 settings.Route.POINTERS.path, '#pointersRow .subpage-arrow'); 61 map.set(settings.Route.KEYBOARD.path, '#keyboardRow .subpage-arrow');
62 map.set( 62 map.set(settings.Route.STYLUS.path, '#stylusRow .subpage-arrow');
63 settings.Route.KEYBOARD.path, '#keyboardRow .subpage-arrow'); 63 map.set(settings.Route.DISPLAY.path, '#displayRow .subpage-arrow');
64 map.set( 64 map.set(settings.Route.STORAGE.path, '#storageRow .subpage-arrow');
65 settings.Route.STYLUS.path, '#stylusRow .subpage-arrow'); 65 map.set(settings.Route.POWER.path, '#powerRow .subpage-arrow');
66 map.set(
67 settings.Route.DISPLAY.path, '#displayRow .subpage-arrow');
68 map.set(
69 settings.Route.STORAGE.path, '#storageRow .subpage-arrow');
70 map.set(
71 settings.Route.POWER.path, '#powerRow .subpage-arrow');
72 return map; 66 return map;
73 }, 67 },
74 }, 68 },
75 }, 69 },
76 70
77 observers: [ 71 observers: [
78 'pointersChanged_(hasMouse_, hasTouchpad_)', 72 'pointersChanged_(hasMouse_, hasTouchpad_)',
79 ], 73 ],
80 74
81 /** @override */ 75 /** @override */
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 * @private 167 * @private
174 */ 168 */
175 checkPointerSubpage_: function() { 169 checkPointerSubpage_: function() {
176 // Check that the properties have explicitly been set to false. 170 // Check that the properties have explicitly been set to false.
177 if (this.hasMouse_ === false && this.hasTouchpad_ === false && 171 if (this.hasMouse_ === false && this.hasTouchpad_ === false &&
178 settings.getCurrentRoute() == settings.Route.POINTERS) { 172 settings.getCurrentRoute() == settings.Route.POINTERS) {
179 settings.navigateTo(settings.Route.DEVICE); 173 settings.navigateTo(settings.Route.DEVICE);
180 } 174 }
181 }, 175 },
182 }); 176 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698