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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_icon_view.h

Issue 1947533003: Second try at fixing location bar icon keyboard activation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" 9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
10 10
(...skipping 12 matching lines...) Expand all
23 LocationIconView(const gfx::FontList& font_list, 23 LocationIconView(const gfx::FontList& font_list,
24 SkColor parent_background_color, 24 SkColor parent_background_color,
25 LocationBarView* location_bar); 25 LocationBarView* location_bar);
26 ~LocationIconView() override; 26 ~LocationIconView() override;
27 27
28 // IconLabelBubbleView: 28 // IconLabelBubbleView:
29 gfx::Size GetMinimumSize() const override; 29 gfx::Size GetMinimumSize() const override;
30 bool OnMousePressed(const ui::MouseEvent& event) override; 30 bool OnMousePressed(const ui::MouseEvent& event) override;
31 bool OnMouseDragged(const ui::MouseEvent& event) override; 31 bool OnMouseDragged(const ui::MouseEvent& event) override;
32 void OnMouseReleased(const ui::MouseEvent& event) override; 32 void OnMouseReleased(const ui::MouseEvent& event) override;
33 bool OnKeyPressed(const ui::KeyEvent& event) override;
34 void OnGestureEvent(ui::GestureEvent* event) override; 33 void OnGestureEvent(ui::GestureEvent* event) override;
35 bool GetTooltipText(const gfx::Point& p, 34 bool GetTooltipText(const gfx::Point& p,
36 base::string16* tooltip) const override; 35 base::string16* tooltip) const override;
37 SkColor GetTextColor() const override; 36 SkColor GetTextColor() const override;
38 SkColor GetBorderColor() const override; 37 SkColor GetBorderColor() const override;
39 bool OnActivate() override; 38 bool OnActivate() override;
40 39
41 // Whether we should show the tooltip for this icon or not. 40 // Whether we should show the tooltip for this icon or not.
42 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; } 41 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; }
43 42
(...skipping 23 matching lines...) Expand all
67 66
68 // True if hovering this view should display a tooltip. 67 // True if hovering this view should display a tooltip.
69 bool show_tooltip_; 68 bool show_tooltip_;
70 69
71 LocationBarView* location_bar_; 70 LocationBarView* location_bar_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(LocationIconView); 72 DISALLOW_COPY_AND_ASSIGN(LocationIconView);
74 }; 73 };
75 74
76 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 75 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698