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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_layout_model.h

Issue 2581513002: Replace hard-coded colors from ui::NativeTheme for consistency and accessibility. (Closed)
Patch Set: Delete unused popup_constants.h includes Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/autofill_popup_layout_model.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_layout_model.h b/chrome/browser/ui/autofill/autofill_popup_layout_model.h
index 564b50cb48286f3ab1ea2c5168d071fe01385655..8c9c036ccab0a2129dffd2d329126e15cf2734ff 100644
--- a/chrome/browser/ui/autofill/autofill_popup_layout_model.h
+++ b/chrome/browser/ui/autofill/autofill_popup_layout_model.h
@@ -14,6 +14,7 @@
#include "ui/gfx/font_list.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/native_theme/native_theme.h"
namespace gfx {
class ImageSkia;
@@ -74,8 +75,8 @@ class AutofillPopupLayoutModel {
const gfx::FontList& GetValueFontListForRow(size_t index) const;
const gfx::FontList& GetLabelFontListForRow(size_t index) const;
- // Returns the value font color of the row item according to its |index|.
- SkColor GetValueFontColorForRow(size_t index) const;
+ // Returns the value font color_id of the row item according to its |index|.
Evan Stade 2016/12/20 18:01:19 nit: s/color_id/color ID
jiahuiguo 2017/01/03 19:37:52 Done.
+ ui::NativeTheme::ColorId GetValueFontColorForRow(size_t index) const;
// Returns the icon image of the item at |index| in the popup.
gfx::ImageSkia GetIconImage(size_t index) const;

Powered by Google App Engine
This is Rietveld 408576698