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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 13870020: Bluetooth: Add support for pairing display notifications (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed wrong check made twice Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 26321bcdb538ad1ac693ad010a9041d47994bee0..1220bcca83cefb1e4f1cf3135538c46d255d6264 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -123,6 +123,22 @@ class BluetoothDevice {
virtual void DisplayPasskey(BluetoothDevice* device,
uint32 passkey) = 0;
+ // This method will be called when the Bluetooth daemon gets a notification
+ // of a key entered on the device |device| while pairing with the device
+ // using a PIN code or a Passkey.
+ //
+ // This method will be called only after DisplayPinCode() or
+ // DisplayPasskey() is called and before the corresponding
+ // DismissDisplayOrConfirm() is called, but is not warranted to be called
+ // on every pairing process that requires a PIN code or a Passkey because
+ // some device may not support this feature.
+ //
+ // The |entered| value describes the number of keys entered so far,
+ // including the last [enter] key. A first call to KeysEntered() with
+ // |entered| as 0 will be sent when the device supports this feature.
+ virtual void KeysEntered(BluetoothDevice* device,
+ uint32 entered) = 0;
+
// This method will be called when the Bluetooth daemon requires that the
// user confirm that the Passkey |passkey| is displayed on the screen
// of the device |device| so that it may be authenticated. The delegate

Powered by Google App Engine
This is Rietveld 408576698