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

Side by Side Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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-subpage' is the settings subpage for managing bluetooth 7 * 'settings-bluetooth-subpage' is the settings subpage for managing bluetooth
8 * properties and devices. 8 * properties and devices.
9 */ 9 */
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 /** @private */ 233 /** @private */
234 selectedUnpairedItemChanged_: function() { 234 selectedUnpairedItemChanged_: function() {
235 if (this.selectedUnpairedItem_) 235 if (this.selectedUnpairedItem_)
236 this.connectDevice_(this.selectedUnpairedItem_); 236 this.connectDevice_(this.selectedUnpairedItem_);
237 }, 237 },
238 238
239 /** @private */ 239 /** @private */
240 updateDiscovery_: function() { 240 updateDiscovery_: function() {
241 if (!this.adapterState || !this.adapterState.powered) 241 if (!this.adapterState || !this.adapterState.powered)
242 return; 242 return;
243 if (settings.getCurrentRoute() == settings.Route.BLUETOOTH_DEVICES) 243 if (settings.getCurrentRoute() == settings.routes.BLUETOOTH_DEVICES)
244 this.startDiscovery_(); 244 this.startDiscovery_();
245 else 245 else
246 this.stopDiscovery_(); 246 this.stopDiscovery_();
247 }, 247 },
248 248
249 /** 249 /**
250 * If bluetooth is enabled, request the complete list of devices and update 250 * If bluetooth is enabled, request the complete list of devices and update
251 * this.deviceList_. 251 * this.deviceList_.
252 * @private 252 * @private
253 */ 253 */
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 /** @private */ 467 /** @private */
468 onDialogClose_: function() { 468 onDialogClose_: function() {
469 this.dialogId_ = ''; 469 this.dialogId_ = '';
470 this.pairingDevice_ = undefined; 470 this.pairingDevice_ = undefined;
471 // The list is dynamic so focus the first item. 471 // The list is dynamic so focus the first item.
472 var device = this.$$('#unpairedContainer bluetooth-device-list-item'); 472 var device = this.$$('#unpairedContainer bluetooth-device-list-item');
473 if (device) 473 if (device)
474 device.focus(); 474 device.focus();
475 }, 475 },
476 }); 476 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698