| OLD | NEW |
| 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_EV_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" | 8 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" |
| 9 #include "chrome/browser/ui/views/location_bar/page_info_helper.h" | 9 #include "chrome/browser/ui/views/location_bar/page_info_helper.h" |
| 10 | 10 |
| 11 class LocationBarView; | 11 class LocationBarView; |
| 12 | 12 |
| 13 // EVBubbleView displays the EV Bubble in the LocationBarView. | 13 // EVBubbleView displays the EV Bubble in the LocationBarView. |
| 14 class EVBubbleView : public IconLabelBubbleView { | 14 class EVBubbleView : public IconLabelBubbleView { |
| 15 public: | 15 public: |
| 16 EVBubbleView(const gfx::Font& font, | 16 EVBubbleView(const gfx::FontList& font_list, |
| 17 int font_y_offset, | 17 int font_y_offset, |
| 18 SkColor text_color, | 18 SkColor text_color, |
| 19 SkColor parent_background_color, | 19 SkColor parent_background_color, |
| 20 LocationBarView* parent); | 20 LocationBarView* parent); |
| 21 virtual ~EVBubbleView(); | 21 virtual ~EVBubbleView(); |
| 22 | 22 |
| 23 // Overridden from View. | 23 // Overridden from View. |
| 24 virtual gfx::Size GetMinimumSize() OVERRIDE; | 24 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 25 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 25 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 26 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 26 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 27 | 27 |
| 28 // Overridden from ui::EventHandler. | 28 // Overridden from ui::EventHandler. |
| 29 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 29 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 PageInfoHelper page_info_helper_; | 32 PageInfoHelper page_info_helper_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(EVBubbleView); | 34 DISALLOW_COPY_AND_ASSIGN(EVBubbleView); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ | 37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ |
| 38 | 38 |
| OLD | NEW |