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

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

Issue 2152243002: [Autofill] Tweak credit card signin promo visually. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed round2 Created 4 years, 5 months 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 15 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
16 #include "third_party/skia/include/core/SkColor.h"
16 17
17 namespace gfx { 18 namespace gfx {
18 class FontList; 19 class FontList;
19 class Point; 20 class Point;
20 class Rect; 21 class Rect;
21 } 22 }
22 23
23 namespace autofill { 24 namespace autofill {
24 25
25 class AutofillPopupLayoutModel; 26 class AutofillPopupLayoutModel;
(...skipping 29 matching lines...) Expand all
55 // Removes the suggestion at the given index. 56 // Removes the suggestion at the given index.
56 virtual bool RemoveSuggestion(int index) = 0; 57 virtual bool RemoveSuggestion(int index) = 0;
57 58
58 #if !defined(OS_ANDROID) 59 #if !defined(OS_ANDROID)
59 // The same font can vary based on the type of data it is showing, 60 // The same font can vary based on the type of data it is showing,
60 // so we need to know the row. 61 // so we need to know the row.
61 virtual const gfx::FontList& GetValueFontListForRow(size_t index) const = 0; 62 virtual const gfx::FontList& GetValueFontListForRow(size_t index) const = 0;
62 virtual const gfx::FontList& GetLabelFontList() const = 0; 63 virtual const gfx::FontList& GetLabelFontList() const = 0;
63 #endif 64 #endif
64 65
66 // Returns the background color of the row item according to its |index|.
67 virtual SkColor GetBackgroundColorForRow(int index) const = 0;
68
65 // Returns the index of the selected line. A line is "selected" when it is 69 // Returns the index of the selected line. A line is "selected" when it is
66 // hovered or has keyboard focus. 70 // hovered or has keyboard focus.
67 virtual int selected_line() const = 0; 71 virtual int selected_line() const = 0;
68 72
69 virtual const AutofillPopupLayoutModel& layout_model() const = 0; 73 virtual const AutofillPopupLayoutModel& layout_model() const = 0;
70 74
71 protected: 75 protected:
72 ~AutofillPopupController() override {} 76 ~AutofillPopupController() override {}
73 }; 77 };
74 78
75 } // namespace autofill 79 } // namespace autofill
76 80
77 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 81 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698