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

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

Issue 2792103005: Make keyword hint view ("press tab to search foo.com") clickable. (Closed)
Patch Set: 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.h
diff --git a/chrome/browser/ui/views/location_bar/keyword_hint_view.h b/chrome/browser/ui/views/location_bar/keyword_hint_view.h
index 18209417a9377384b84439d8c8b614e2830b6c19..446477d723698bed7d6ddd877f3f51fe78d061ff 100644
--- a/chrome/browser/ui/views/location_bar/keyword_hint_view.h
+++ b/chrome/browser/ui/views/location_bar/keyword_hint_view.h
@@ -10,7 +10,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/gfx/geometry/size.h"
-#include "ui/views/view.h"
+#include "ui/views/controls/button/custom_button.h"
class Profile;
@@ -30,9 +30,10 @@ class Label;
//
// NOTE: This should really be called LocationBarKeywordHintView, but I
// couldn't bring myself to use such a long name.
-class KeywordHintView : public views::View {
+class KeywordHintView : public views::CustomButton {
public:
- KeywordHintView(Profile* profile,
+ KeywordHintView(views::ButtonListener* listener,
+ Profile* profile,
const gfx::FontList& font_list,
const gfx::FontList& bubble_font_list,
int tab_key_height,

Powered by Google App Engine
This is Rietveld 408576698