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

Side by Side Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 6 * @fileoverview
7 * 'settings-bluetooth-page' is the settings page for managing bluetooth 7 * 'settings-bluetooth-page' is the settings page for managing bluetooth
8 * properties and devices. 8 * properties and devices.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (this.selectedItem_) 242 if (this.selectedItem_)
243 this.connectDevice_(this.selectedItem_); 243 this.connectDevice_(this.selectedItem_);
244 }, 244 },
245 245
246 /** 246 /**
247 * @return {string} 247 * @return {string}
248 * @private 248 * @private
249 */ 249 */
250 getIcon_: function() { 250 getIcon_: function() {
251 if (!this.bluetoothEnabled_) 251 if (!this.bluetoothEnabled_)
252 return 'settings:bluetooth-disabled'; 252 return 'cr:bluetooth-disabled';
253 if (this.deviceConnected_) 253 if (this.deviceConnected_)
254 return 'settings:bluetooth-connected'; 254 return 'cr:bluetooth-connected';
255 return 'settings:bluetooth'; 255 return 'cr:bluetooth';
256 }, 256 },
257 257
258 /** 258 /**
259 * @return {string} 259 * @return {string}
260 * @private 260 * @private
261 */ 261 */
262 getTitle_: function() { 262 getTitle_: function() {
263 return this.i18n( 263 return this.i18n(
264 this.bluetoothEnabled_ ? 'bluetoothEnabled' : 'bluetoothDisabled'); 264 this.bluetoothEnabled_ ? 'bluetoothEnabled' : 'bluetoothDisabled');
265 }, 265 },
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 }, 618 },
619 619
620 /** 620 /**
621 * @param {Event} e 621 * @param {Event} e
622 * @private 622 * @private
623 */ 623 */
624 stopTap_: function(e) { 624 stopTap_: function(e) {
625 e.stopPropagation(); 625 e.stopPropagation();
626 }, 626 },
627 }); 627 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698