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

Issue 13870020: Bluetooth: Add support for pairing display notifications (Closed)

Created:
7 years, 8 months ago by deymo
Modified:
7 years, 8 months ago
Reviewers:
keybuk, glotov
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, youngki
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Bluetooth: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -12 lines) Patch
M chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js View 1 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.cc View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_experimental_chromeos_unittest.cc View 1 2 3 4 5 6 6 chunks +33 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
deymo
glotov@ for chrome/browser/ui/webui/options/chromeos/ keybuk@ for device/bluetooth/
7 years, 8 months ago (2013-04-17 23:17:53 UTC) #1
keybuk
https://codereview.chromium.org/13870020/diff/2001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/13870020/diff/2001/device/bluetooth/bluetooth_device.h#newcode127 device/bluetooth/bluetooth_device.h:127: // of a key entered in the device |device| ...
7 years, 8 months ago (2013-04-17 23:43:37 UTC) #2
deymo
Description updated with manual test. New patch uploaded. PTAL https://codereview.chromium.org/13870020/diff/2001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/13870020/diff/2001/device/bluetooth/bluetooth_device.h#newcode127 device/bluetooth/bluetooth_device.h:127: ...
7 years, 8 months ago (2013-04-18 00:26:01 UTC) #3
keybuk
https://codereview.chromium.org/13870020/diff/6001/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h File chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h (right): https://codereview.chromium.org/13870020/diff/6001/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h#newcode99 chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h:99: missing // https://codereview.chromium.org/13870020/diff/6001/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h#newcode101 chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h:101: // of a key entered ...
7 years, 8 months ago (2013-04-18 00:30:12 UTC) #4
keybuk
https://chromiumcodereview.appspot.com/13870020/diff/13001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://chromiumcodereview.appspot.com/13870020/diff/13001/device/bluetooth/bluetooth_device.h#newcode140 device/bluetooth/bluetooth_device.h:140: uint32 entered) = 0; Should this be called something ...
7 years, 8 months ago (2013-04-18 00:56:25 UTC) #5
deymo
There it is the new change. https://chromiumcodereview.appspot.com/13870020/diff/13001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://chromiumcodereview.appspot.com/13870020/diff/13001/device/bluetooth/bluetooth_device.h#newcode140 device/bluetooth/bluetooth_device.h:140: uint32 entered) = ...
7 years, 8 months ago (2013-04-18 01:23:14 UTC) #6
keybuk
This CL should probably add the appropriate line of code to BluetoothDeviceExperimentalChromeOS that makes this ...
7 years, 8 months ago (2013-04-18 06:17:09 UTC) #7
deymo
On 2013/04/18 06:17:09, keybuk wrote: > This CL should probably add the appropriate line of ...
7 years, 8 months ago (2013-04-18 06:57:10 UTC) #8
glotov
lgtm
7 years, 8 months ago (2013-04-18 11:06:34 UTC) #9
keybuk
On 2013/04/18 06:57:10, deymo wrote: > On 2013/04/18 06:17:09, keybuk wrote: > > This CL ...
7 years, 8 months ago (2013-04-18 15:33:54 UTC) #10
deymo
> Can you give a good reason? It's a small enough change in code you're ...
7 years, 8 months ago (2013-04-18 16:37:16 UTC) #11
keybuk
On 2013/04/18 16:37:16, deymo wrote: > > Can you give a good reason? It's a ...
7 years, 8 months ago (2013-04-18 17:14:50 UTC) #12
deymo
PTAL
7 years, 8 months ago (2013-04-18 23:15:25 UTC) #13
keybuk
https://codereview.chromium.org/13870020/diff/25001/device/bluetooth/bluetooth_experimental_chromeos_unittest.cc File device/bluetooth/bluetooth_experimental_chromeos_unittest.cc (right): https://codereview.chromium.org/13870020/diff/25001/device/bluetooth/bluetooth_experimental_chromeos_unittest.cc#newcode1237 device/bluetooth/bluetooth_experimental_chromeos_unittest.cc:1237: Doesn't check the KeysEntered call here. Should verify that ...
7 years, 8 months ago (2013-04-18 23:50:36 UTC) #14
deymo
Please, take yet another look. https://codereview.chromium.org/13870020/diff/25001/device/bluetooth/bluetooth_experimental_chromeos_unittest.cc File device/bluetooth/bluetooth_experimental_chromeos_unittest.cc (right): https://codereview.chromium.org/13870020/diff/25001/device/bluetooth/bluetooth_experimental_chromeos_unittest.cc#newcode1237 device/bluetooth/bluetooth_experimental_chromeos_unittest.cc:1237: On 2013/04/18 23:50:36, keybuk ...
7 years, 8 months ago (2013-04-19 01:35:00 UTC) #15
keybuk
lgtm
7 years, 8 months ago (2013-04-19 01:58:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/13870020/34001
7 years, 8 months ago (2013-04-19 07:13:24 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-19 07:15:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/13870020/34001
7 years, 8 months ago (2013-04-19 08:00:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/13870020/41003
7 years, 8 months ago (2013-04-19 09:16:28 UTC) #20
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 13:08:18 UTC) #21
Message was sent while issue was closed.
Change committed as 195153

Powered by Google App Engine
This is Rietveld 408576698