Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * Enumeration of possible states during pairing. The value associated with | 6 * Enumeration of possible states during pairing. The value associated with |
| 7 * each state maps to a localized string in the global variable | 7 * each state maps to a localized string in the global variable |
| 8 * |loadTimeData|. | 8 * |loadTimeData|. |
| 9 * @enum {string} | 9 * @enum {string} |
| 10 */ | 10 */ |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 543 break; | 543 break; |
| 544 case chrome.bluetoothPrivate.ConnectResultType.AUTH_REJECTED: | 544 case chrome.bluetoothPrivate.ConnectResultType.AUTH_REJECTED: |
| 545 message = 'bluetoothConnectAuthRejected'; | 545 message = 'bluetoothConnectAuthRejected'; |
| 546 break; | 546 break; |
| 547 case chrome.bluetoothPrivate.ConnectResultType.AUTH_TIMEOUT: | 547 case chrome.bluetoothPrivate.ConnectResultType.AUTH_TIMEOUT: |
| 548 message = 'bluetoothConnectAuthTimeout'; | 548 message = 'bluetoothConnectAuthTimeout'; |
| 549 break; | 549 break; |
| 550 case chrome.bluetoothPrivate.ConnectResultType.UNSUPPORTED_DEVICE: | 550 case chrome.bluetoothPrivate.ConnectResultType.UNSUPPORTED_DEVICE: |
| 551 message = 'bluetoothConnectUnsupportedDevice'; | 551 message = 'bluetoothConnectUnsupportedDevice'; |
| 552 break; | 552 break; |
| 553 case chrome.bluetoothPrivate.ConnectResultType.ATTRIBUTE_LENGTH_INVALID: | |
| 554 message = 'bluetoothConnectAttributeLengthInvalid'; | |
| 555 break; | |
| 556 case chrome.bluetoothPrivate.ConnectResultType.CONNECTION_CONGESTED: | |
| 557 message = 'bluetoothConnectConnectionCongested'; | |
| 558 break; | |
| 559 case chrome.bluetoothPrivate.ConnctResultType.INSUFFICIENT_ENCRYPTION: | |
|
Dan Beam
2016/01/11 20:34:05
fail
scheib
2016/01/11 20:35:57
I'll patch now.
Dan Beam
2016/01/11 20:37:37
yeah, I'm just skeptical as to how much testing th
scheib
2016/01/11 20:49:24
Tryjobs as run on patches here, nothing to be skep
| |
| 560 message = 'bluetoothConnectInsufficientEncryption'; | |
| 561 break; | |
| 562 case chrome.bluetoothPrivate.ConnctResultType.OFFSET_INVALID: | |
| 563 message = 'bluetoothConnectOffsetInvalid'; | |
| 564 break; | |
| 565 case chrome.bluetoothPrivate.ConnctResultType.READ_NOT_PERMITTED: | |
| 566 message = 'bluetoothConnectReadNotPermitted'; | |
| 567 break; | |
| 568 case chrome.bluetoothPrivate.ConnctResultType.REQUEST_NOT_SUPPORTED: | |
| 569 message = 'bluetoothConnectRequestNotSupported'; | |
| 570 break; | |
| 571 case chrome.bluetoothPrivate.ConnctResultType.WRITE_NOT_PERMITTED: | |
| 572 message = 'bluetoothConnectWriteNotPermitted'; | |
| 573 break; | |
| 553 } | 574 } |
| 554 if (message) | 575 if (message) |
| 555 BluetoothPairing.showMessage({message: message, address: address}); | 576 BluetoothPairing.showMessage({message: message, address: address}); |
| 556 }; | 577 }; |
| 557 | 578 |
| 558 /** | 579 /** |
| 559 * Closes the Bluetooth pairing dialog. | 580 * Closes the Bluetooth pairing dialog. |
| 560 */ | 581 */ |
| 561 BluetoothPairing.dismissDialog = function() { | 582 BluetoothPairing.dismissDialog = function() { |
| 562 var overlay = PageManager.getTopmostVisiblePage(); | 583 var overlay = PageManager.getTopmostVisiblePage(); |
| 563 var dialog = BluetoothPairing.getInstance(); | 584 var dialog = BluetoothPairing.getInstance(); |
| 564 if (overlay == dialog && dialog.dismissible_) { | 585 if (overlay == dialog && dialog.dismissible_) { |
| 565 if (dialog.event_) | 586 if (dialog.event_) |
| 566 dialog.event_.pairing = BluetoothPairingEventType.DISMISSED; | 587 dialog.event_.pairing = BluetoothPairingEventType.DISMISSED; |
| 567 PageManager.closeOverlay(); | 588 PageManager.closeOverlay(); |
| 568 } | 589 } |
| 569 }; | 590 }; |
| 570 | 591 |
| 571 // Export | 592 // Export |
| 572 return { | 593 return { |
| 573 BluetoothPairing: BluetoothPairing | 594 BluetoothPairing: BluetoothPairing |
| 574 }; | 595 }; |
| 575 }); | 596 }); |
| OLD | NEW |