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 9fe26d0cb45098db6664b3d143e7055652a46142..940c8674297ba54b49c6e5ccdbba18db36d69cc4 100644 |
--- a/chrome/browser/chooser_controller/chooser_controller.h |
+++ b/chrome/browser/chooser_controller/chooser_controller.h |
@@ -62,6 +62,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; |
Jeffrey Yasskin
2016/08/19 17:46:54
This should say that it's a signal strength icon.
juncai
2016/08/19 22:59:16
Done.
|
+ |
// Returns the text to be displayed in the chooser when there are no options. |
virtual base::string16 GetNoOptionsText() const = 0; |
@@ -73,6 +76,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 |
Jeffrey Yasskin
2016/08/19 17:46:54
Can you say what the valid levels are? This is 0-4
juncai
2016/08/19 22:59:16
Done.
|
+ // 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; |