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

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

Issue 2615673003: [MD WebUI] Move icons used in Bookmarks and Settings to shared file. (Closed)
Patch Set: reorder some icons 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return this.i18n('touchpadTitle'); 71 return this.i18n('touchpadTitle');
72 return ''; 72 return '';
73 }, 73 },
74 74
75 /** 75 /**
76 * @return {string} 76 * @return {string}
77 * @private 77 * @private
78 */ 78 */
79 getPointersIcon_: function() { 79 getPointersIcon_: function() {
80 if (this.hasMouse_) 80 if (this.hasMouse_)
81 return 'settings:mouse'; 81 return 'cr:mouse';
82 if (this.hasTouchpad_) 82 if (this.hasTouchpad_)
83 return 'settings:touch-app'; 83 return 'cr:touch-app';
84 return ''; 84 return '';
85 }, 85 },
86 86
87 /** 87 /**
88 * Handler for tapping the mouse and touchpad settings menu item. 88 * Handler for tapping the mouse and touchpad settings menu item.
89 * @private 89 * @private
90 */ 90 */
91 onPointersTap_: function() { 91 onPointersTap_: function() {
92 settings.navigateTo(settings.Route.POINTERS); 92 settings.navigateTo(settings.Route.POINTERS);
93 }, 93 },
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 * @private 144 * @private
145 */ 145 */
146 checkPointerSubpage_: function() { 146 checkPointerSubpage_: function() {
147 // Check that the properties have explicitly been set to false. 147 // Check that the properties have explicitly been set to false.
148 if (this.hasMouse_ === false && this.hasTouchpad_ === false && 148 if (this.hasMouse_ === false && this.hasTouchpad_ === false &&
149 settings.getCurrentRoute() == settings.Route.POINTERS) { 149 settings.getCurrentRoute() == settings.Route.POINTERS) {
150 settings.navigateTo(settings.Route.DEVICE); 150 settings.navigateTo(settings.Route.DEVICE);
151 } 151 }
152 }, 152 },
153 }); 153 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698