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

Unified Diff: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.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: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
index 1495ba6b13e4e3b73d6c31160d0847e7fe8ba92b..be7108ec95b49e01c569e17399f8ab01fdf39f3c 100644
--- a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
@@ -97,6 +97,22 @@ class BluetoothOptionsHandler
// device::BluetoothDevice::PairingDelegate override.
//
+ // 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.
+ //
+ // The UI will show a visual indication that a given key was pressed in the
+ // same pairing overlay where the PIN code or Passkey is displayed.
+ //
+ // A first call with |entered| as 0 will indicate that this notification
+ // mechanism is supported by the device allowing the UI to display this fact.
+ // A last call with |entered| as the length of the key plus one will indicate
+ // that the [enter] key was pressed.
+ virtual void KeysEntered(device::BluetoothDevice* device,
+ uint32 entered) OVERRIDE;
+
+ // device::BluetoothDevice::PairingDelegate override.
+ //
// 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 UI will

Powered by Google App Engine
This is Rietveld 408576698