Index: chrome/browser/chooser_controller/chooser_controller.h |
diff --git a/chrome/browser/chooser_controller/chooser_controller.h b/chrome/browser/chooser_controller/chooser_controller.h |
index c5a3609b5377cd44fff62e24534b980e7b021967..70782207893c6e4178cb0416eb2a2aa633e9ce5a 100644 |
--- a/chrome/browser/chooser_controller/chooser_controller.h |
+++ b/chrome/browser/chooser_controller/chooser_controller.h |
@@ -59,6 +59,9 @@ class ChooserController { |
// Returns the text to be displayed in the chooser title. |
base::string16 GetTitle() const; |
+ // Returns if the chooser needs to show an icon before the text. |
+ virtual bool ShouldShowIconBeforeText() const; |
+ |
// Returns the text to be displayed in the chooser when there are no options. |
virtual base::string16 GetNoOptionsText() const = 0; |
@@ -70,6 +73,11 @@ class ChooserController { |
// chooser so that users can grant permission. |
virtual size_t NumOptions() const = 0; |
+ // The signal strength level (non-negative) of the device at |index|, which |
+ // is used to retrieve the corresponding icon to be displayed before the |
+ // text. Returns -1 if no icon should be shown. |
+ virtual int GetSignalStrengthLevel(size_t index) const; |
+ |
// The |index|th option string which is listed in the chooser. |
virtual base::string16 GetOption(size_t index) const = 0; |