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

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: 2nd round of nits 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
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index bb363f9083e1880234207a74c1ea0d4616c2c24e..9df959c1d686e05d41f92c4f2bb820a47647677e 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 DisplayEnteredKeys() with
+ // |entered| as 0 will be sent when the device supports this feature.
+ virtual void DisplayEnteredKeys(BluetoothDevice* device,
+ uint32 entered) = 0;
keybuk 2013/04/18 00:56:25 Should this be called something like: KeypressN
deymo 2013/04/18 01:23:14 For the record: Changing this to KeysEntered
+
// 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
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698