Chromium Code Reviews| Index: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h |
| diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h |
| index 2c6b9db37e68c64e8f100786d3aa309c793b46bc..b7c01221024a1af7356b3a0619bf99713de1d938 100644 |
| --- a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h |
| +++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h |
| @@ -28,9 +28,11 @@ class BluetoothChooserController : public ChooserController { |
| ~BluetoothChooserController() override; |
| // ChooserController: |
| + bool HasIconBeforeText() const override; |
| base::string16 GetNoOptionsText() const override; |
| base::string16 GetOkButtonLabel() const override; |
| size_t NumOptions() const override; |
| + int GetSignalStrengthLevel(size_t index) const override; |
| base::string16 GetOption(size_t index) const override; |
| void RefreshOptions() override; |
| base::string16 GetStatus() const override; |
| @@ -65,11 +67,16 @@ class BluetoothChooserController : public ChooserController { |
| void ResetEventHandler(); |
| private: |
| + struct BluetoothDeviceInfo { |
| + std::string id; |
| + int signal_level; |
|
msw
2016/08/12 23:08:48
nit: |signal_strength_level|
juncai
2016/08/15 21:53:19
Done.
|
| + }; |
| + |
| // Clears |device_names_and_ids_| and |device_name_map_|. Called when |
| // Bluetooth adapter is turned on or off, or when re-scan happens. |
| void ClearAllDevices(); |
| - std::vector<std::string> device_ids_; |
| + std::vector<BluetoothDeviceInfo> devices_info_; |
|
msw
2016/08/12 23:08:48
optional nit: |devices_|?
juncai
2016/08/15 21:53:19
Done.
|
| std::unordered_map<std::string, base::string16> device_id_to_name_map_; |
| // Maps from device name to number of devices. |
| std::unordered_map<base::string16, int> device_name_map_; |