OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual ~View() {} | 61 virtual ~View() {} |
62 }; | 62 }; |
63 | 63 |
64 // Returns the text to be displayed in the chooser title. | 64 // Returns the text to be displayed in the chooser title. |
65 base::string16 GetTitle() const; | 65 base::string16 GetTitle() const; |
66 | 66 |
67 // Returns if the chooser needs to show an icon before the text. | 67 // Returns if the chooser needs to show an icon before the text. |
68 // For WebBluetooth, it is a signal strength icon. | 68 // For WebBluetooth, it is a signal strength icon. |
69 virtual bool ShouldShowIconBeforeText() const; | 69 virtual bool ShouldShowIconBeforeText() const; |
70 | 70 |
| 71 // Returns if the chooser needs to show a footnote view. |
| 72 virtual bool ShouldShowFootnoteView() const; |
| 73 |
71 // Returns if the chooser allows multiple items to be selected. | 74 // Returns if the chooser allows multiple items to be selected. |
72 virtual bool AllowMultipleSelection() const; | 75 virtual bool AllowMultipleSelection() const; |
73 | 76 |
74 // Returns the text to be displayed in the chooser when there are no options. | 77 // Returns the text to be displayed in the chooser when there are no options. |
75 virtual base::string16 GetNoOptionsText() const = 0; | 78 virtual base::string16 GetNoOptionsText() const = 0; |
76 | 79 |
77 // Returns the label for OK button. | 80 // Returns the label for OK button. |
78 virtual base::string16 GetOkButtonLabel() const = 0; | 81 virtual base::string16 GetOkButtonLabel() const = 0; |
79 | 82 |
80 // The number of options users can pick from. For example, it can be | 83 // The number of options users can pick from. For example, it can be |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 private: | 133 private: |
131 content::RenderFrameHost* const owning_frame_; | 134 content::RenderFrameHost* const owning_frame_; |
132 const int title_string_id_origin_; | 135 const int title_string_id_origin_; |
133 const int title_string_id_extension_; | 136 const int title_string_id_extension_; |
134 View* view_ = nullptr; | 137 View* view_ = nullptr; |
135 | 138 |
136 DISALLOW_COPY_AND_ASSIGN(ChooserController); | 139 DISALLOW_COPY_AND_ASSIGN(ChooserController); |
137 }; | 140 }; |
138 | 141 |
139 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 142 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
OLD | NEW |