DescriptionBluetooth: Add support for pairing display notifications
The HID 1.1 spec defines a notification signal sent from the device
every time the user types a new digit of the provided passkey during
the SSP pairing.
This patch extends the BluetoothDevice::PairingDelegate interface to
support a new method DisplayEnteredKeys to update the number of
pressed keys.
BUG=221105
TEST=device_unittest and manual test.
Manual test part:
=================
1. Open the chrome://settings page in the chromebook and click on "Inspect element". A new panel with the HTML is displayed.
2. Go to the "Console" tab in the opened panel and switch the "<top frame>" drop down in the status line at the bottom of the screen to "settings".
3. Run the following command:
options.BrowserOptions.addBluetoothDevice({"name":"MyMouse","address":"00:11:22:33:44:55","pairing":"bluetoothRemotePasskey","entered":4,"passkey":123456})
4. The passkey 123456 should be displayed on the screen with the first 4 keys in a different style.
5. Replacing "entered":4 by "entered":7 should also change the style of the "enter" key.
6. Removing the "entered":4, should show the keys darker than the "entered":0 state.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195153
Patch Set 1 : #
Total comments: 11
Patch Set 2 : nits #
Total comments: 2
Patch Set 3 : 2nd round of nits #
Total comments: 2
Patch Set 4 : Changed notification name to KeysEntered #Patch Set 5 : implementation and test #
Total comments: 4
Patch Set 6 : key notifications verified and more nits #Patch Set 7 : fixed wrong check made twice #
Messages
Total messages: 21 (0 generated)
|