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

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h

Issue 2304213002: Show device connection and paired status in chooser on Mac (Closed)
Patch Set: added comments Created 4 years, 3 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/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 37b1f9684deb7a378b88b7ba45c16f4f33342fc6..d47d0de300ccf9b607772065905783382a550811 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h
@@ -33,6 +33,8 @@ class BluetoothChooserController : public ChooserController {
base::string16 GetOkButtonLabel() const override;
size_t NumOptions() const override;
int GetSignalStrengthLevel(size_t index) const override;
+ bool IsConnected(size_t index) const override;
+ bool IsPaired(size_t index) const override;
base::string16 GetOption(size_t index) const override;
void RefreshOptions() override;
base::string16 GetStatus() const override;
@@ -69,6 +71,8 @@ class BluetoothChooserController : public ChooserController {
struct BluetoothDeviceInfo {
std::string id;
int signal_strength_level;
+ bool is_connected;
+ bool is_paired;
};
// Clears |device_names_and_ids_| and |device_name_counts_|. Called when

Powered by Google App Engine
This is Rietveld 408576698