Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller.h

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)
Patch Set: minor change Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 base::string16* title, 52 base::string16* title,
53 base::string16* body) = 0; 53 base::string16* body) = 0;
54 54
55 // Removes the suggestion at the given index. 55 // Removes the suggestion at the given index.
56 virtual bool RemoveSuggestion(int index) = 0; 56 virtual bool RemoveSuggestion(int index) = 0;
57 57
58 // Returns the background color of the row item according to its |index|, or 58 // Returns the background color of the row item according to its |index|, or
59 // transparent if the default popup background should be used. 59 // transparent if the default popup background should be used.
60 virtual SkColor GetBackgroundColorForRow(int index) const = 0; 60 virtual SkColor GetBackgroundColorForRow(int index) const = 0;
61 61
62 // Returns the text color of the row item according to its |index|.
63 virtual SkColor GetTextColorForRow(int index) const = 0;
Mathieu 2016/11/12 12:52:05 would name GetValueFontColorForRow and ideally wou
lshang 2016/11/14 10:51:01 Renamed GetValueFontColorForRow and moved it into
64
62 // Returns the index of the selected line. A line is "selected" when it is 65 // Returns the index of the selected line. A line is "selected" when it is
63 // hovered or has keyboard focus. 66 // hovered or has keyboard focus.
64 virtual int selected_line() const = 0; 67 virtual int selected_line() const = 0;
65 68
66 virtual const AutofillPopupLayoutModel& layout_model() const = 0; 69 virtual const AutofillPopupLayoutModel& layout_model() const = 0;
67 70
68 protected: 71 protected:
69 ~AutofillPopupController() override {} 72 ~AutofillPopupController() override {}
70 }; 73 };
71 74
72 } // namespace autofill 75 } // namespace autofill
73 76
74 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 77 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698