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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const base::string16& GetElidedValueAt(size_t row) const override; | 94 const base::string16& GetElidedValueAt(size_t row) const override; |
95 const base::string16& GetElidedLabelAt(size_t row) const override; | 95 const base::string16& GetElidedLabelAt(size_t row) const override; |
96 bool GetRemovalConfirmationText(int list_index, | 96 bool GetRemovalConfirmationText(int list_index, |
97 base::string16* title, | 97 base::string16* title, |
98 base::string16* body) override; | 98 base::string16* body) override; |
99 bool RemoveSuggestion(int list_index) override; | 99 bool RemoveSuggestion(int list_index) override; |
100 #if !defined(OS_ANDROID) | 100 #if !defined(OS_ANDROID) |
101 const gfx::FontList& GetValueFontListForRow(size_t index) const override; | 101 const gfx::FontList& GetValueFontListForRow(size_t index) const override; |
102 const gfx::FontList& GetLabelFontList() const override; | 102 const gfx::FontList& GetLabelFontList() const override; |
103 #endif | 103 #endif |
| 104 SkColor GetBackgroundColorForRow(int index) const override; |
104 int selected_line() const override; | 105 int selected_line() const override; |
105 const AutofillPopupLayoutModel& layout_model() const override; | 106 const AutofillPopupLayoutModel& layout_model() const override; |
106 | 107 |
107 content::WebContents* web_contents(); | 108 content::WebContents* web_contents(); |
108 | 109 |
109 // Change which line is currently selected by the user. | 110 // Change which line is currently selected by the user. |
110 void SetSelectedLine(int selected_line); | 111 void SetSelectedLine(int selected_line); |
111 | 112 |
112 // Increase the selected line by 1, properly handling wrapping. | 113 // Increase the selected line by 1, properly handling wrapping. |
113 void SelectNextLine(); | 114 void SelectNextLine(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // The line that is currently selected by the user. | 186 // The line that is currently selected by the user. |
186 // |kNoSelection| indicates that no line is currently selected. | 187 // |kNoSelection| indicates that no line is currently selected. |
187 int selected_line_; | 188 int selected_line_; |
188 | 189 |
189 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 190 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
190 }; | 191 }; |
191 | 192 |
192 } // namespace autofill | 193 } // namespace autofill |
193 | 194 |
194 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 195 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
OLD | NEW |