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

Unified Diff: chrome/browser/ui/views/location_bar/keyword_hint_view.cc

Issue 2792103005: Make keyword hint view ("press tab to search foo.com") clickable. (Closed)
Patch Set: elaborate on comment Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/keyword_hint_view.cc
diff --git a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
index ddb6903142374d48b1d6f6311939900ee18e732b..3ec9238e726e19a7d5bbed14a86a8f79f355b3fe 100644
--- a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
+++ b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
@@ -54,13 +54,15 @@ gfx::Size TabKeyBubbleView::GetPreferredSize() const {
} // namespace
-KeywordHintView::KeywordHintView(Profile* profile,
+KeywordHintView::KeywordHintView(views::ButtonListener* listener,
+ Profile* profile,
const gfx::FontList& font_list,
const gfx::FontList& bubble_font_list,
int bubble_height,
SkColor text_color,
SkColor background_color)
- : profile_(profile),
+ : CustomButton(listener),
+ profile_(profile),
leading_label_(nullptr),
tab_key_view_(nullptr),
trailing_label_(nullptr),
« no previous file with comments | « chrome/browser/ui/views/location_bar/keyword_hint_view.h ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698