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

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

Issue 2900173004: WebUI: Only highlight scrollable divs (Closed)
Patch Set: Created 3 years, 7 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 cr.exportPath('settings'); 5 cr.exportPath('settings');
6 6
7 var PairingEventType = chrome.bluetoothPrivate.PairingEventType; 7 var PairingEventType = chrome.bluetoothPrivate.PairingEventType;
8 8
9 // NOTE(dbeam): even though this behavior is only used privately, it must 9 // NOTE(dbeam): even though this behavior is only used privately, it must
10 // be globally accessible for Closure's --polymer_pass to compile happily. 10 // be globally accessible for Closure's --polymer_pass to compile happily.
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 else if (index > enteredKey) 321 else if (index > enteredKey)
322 cssClass += ' untyped'; 322 cssClass += ' untyped';
323 } 323 }
324 return cssClass; 324 return cssClass;
325 }, 325 },
326 }; 326 };
327 327
328 Polymer({ 328 Polymer({
329 is: 'bluetooth-device-dialog', 329 is: 'bluetooth-device-dialog',
330 330
331 behaviors: [ 331 behaviors: [I18nBehavior, settings.BluetoothPairDeviceBehavior],
332 I18nBehavior,
333 CrScrollableBehavior,
334 settings.BluetoothPairDeviceBehavior,
335 ],
336 332
337 properties: { 333 properties: {
338 /** 334 /**
339 * The version of this dialog to show: 'pairDevice', or 'connectError'. 335 * The version of this dialog to show: 'pairDevice', or 'connectError'.
340 * Must be set before the dialog is opened. 336 * Must be set before the dialog is opened.
341 */ 337 */
342 dialogId: String, 338 dialogId: String,
343 }, 339 },
344 340
345 observers: [ 341 observers: [
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 this.getDialog_().cancel(); 386 this.getDialog_().cancel();
391 }, 387 },
392 388
393 /** @private */ 389 /** @private */
394 onDialogCanceled_: function() { 390 onDialogCanceled_: function() {
395 if (this.dialogId == 'pairDevice') 391 if (this.dialogId == 'pairDevice')
396 this.sendResponse_(chrome.bluetoothPrivate.PairingResponse.CANCEL); 392 this.sendResponse_(chrome.bluetoothPrivate.PairingResponse.CANCEL);
397 this.endPairing(); 393 this.endPairing();
398 }, 394 },
399 }); 395 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698