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

Unified Diff: chrome/browser/ui/views/location_bar/ev_bubble_view.h

Issue 1423263004: [MD] Use programmatic rendering for omnibox chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/ev_bubble_view.h
diff --git a/chrome/browser/ui/views/location_bar/ev_bubble_view.h b/chrome/browser/ui/views/location_bar/ev_bubble_view.h
index aae2353fe9c8eb4b6790b514e62c5222129c78b6..18740473a540b91d4363e6829ead8c1a555bc9f0 100644
--- a/chrome/browser/ui/views/location_bar/ev_bubble_view.h
+++ b/chrome/browser/ui/views/location_bar/ev_bubble_view.h
@@ -20,6 +20,10 @@ class EVBubbleView : public IconLabelBubbleView {
~EVBubbleView() override;
// IconLabelBubbleView:
+ SkColor GetTextColor() const override;
+ SkColor GetBorderColor() const override;
+
+ // views::View:
gfx::Size GetMinimumSize() const override;
bool OnMousePressed(const ui::MouseEvent& event) override;
void OnMouseReleased(const ui::MouseEvent& event) override;
@@ -32,6 +36,10 @@ class EVBubbleView : public IconLabelBubbleView {
// Returns what the minimum size would be if the preferred size were |size|.
gfx::Size GetMinimumSizeForPreferredSize(gfx::Size size) const;
+ // TODO(estade): this should be gleaned from the theme instead of hardcoded in
+ // location_bar_view.cc and cached here.
+ SkColor text_color_;
+
PageInfoHelper page_info_helper_;
DISALLOW_COPY_AND_ASSIGN(EVBubbleView);

Powered by Google App Engine
This is Rietveld 408576698