OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // AutofillPopupController implementation. | 90 // AutofillPopupController implementation. |
91 size_t GetLineCount() const override; | 91 size_t GetLineCount() const override; |
92 const autofill::Suggestion& GetSuggestionAt(size_t row) const override; | 92 const autofill::Suggestion& GetSuggestionAt(size_t row) const override; |
93 const base::string16& GetElidedValueAt(size_t row) const override; | 93 const base::string16& GetElidedValueAt(size_t row) const override; |
94 const base::string16& GetElidedLabelAt(size_t row) const override; | 94 const base::string16& GetElidedLabelAt(size_t row) const override; |
95 bool GetRemovalConfirmationText(int list_index, | 95 bool GetRemovalConfirmationText(int list_index, |
96 base::string16* title, | 96 base::string16* title, |
97 base::string16* body) override; | 97 base::string16* body) override; |
98 bool RemoveSuggestion(int list_index) override; | 98 bool RemoveSuggestion(int list_index) override; |
99 SkColor GetBackgroundColorForRow(int index) const override; | 99 SkColor GetBackgroundColorForRow(int index) const override; |
| 100 SkColor GetTextColorForRow(int index) const override; |
100 int selected_line() const override; | 101 int selected_line() const override; |
101 const AutofillPopupLayoutModel& layout_model() const override; | 102 const AutofillPopupLayoutModel& layout_model() const override; |
102 | 103 |
103 content::WebContents* web_contents(); | 104 content::WebContents* web_contents(); |
104 | 105 |
105 // Change which line is currently selected by the user. | 106 // Change which line is currently selected by the user. |
106 void SetSelectedLine(int selected_line); | 107 void SetSelectedLine(int selected_line); |
107 | 108 |
108 // Increase the selected line by 1, properly handling wrapping. | 109 // Increase the selected line by 1, properly handling wrapping. |
109 void SelectNextLine(); | 110 void SelectNextLine(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // The line that is currently selected by the user. | 169 // The line that is currently selected by the user. |
169 // |kNoSelection| indicates that no line is currently selected. | 170 // |kNoSelection| indicates that no line is currently selected. |
170 int selected_line_; | 171 int selected_line_; |
171 | 172 |
172 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 173 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
173 }; | 174 }; |
174 | 175 |
175 } // namespace autofill | 176 } // namespace autofill |
176 | 177 |
177 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 178 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
OLD | NEW |