| 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 namespace views { | 13 namespace views { |
| 14 class MouseEvent; | 14 class MouseEvent; |
| 15 } | 15 } |
| 16 | 16 |
| 17 // EVBubbleView displays the EV Bubble in the LocationBarView. | 17 // EVBubbleView displays the EV Bubble in the LocationBarView. |
| 18 class EVBubbleView : public IconLabelBubbleView { | 18 class EVBubbleView : public IconLabelBubbleView { |
| 19 public: | 19 public: |
| 20 EVBubbleView(const int background_images[], | 20 EVBubbleView(const int background_images[], |
| 21 int contained_image, | 21 int contained_image, |
| 22 SkColor color, | 22 SkColor color, |
| 23 LocationBarView* location_bar); | 23 LocationBarView* location_bar); |
| 24 virtual ~EVBubbleView(); | 24 virtual ~EVBubbleView(); |
| 25 | 25 |
| 26 // Overridden from View. | 26 // Overridden from View. |
| 27 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 27 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 28 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 29 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 29 | 30 |
| 30 // Overridden from ui::EventHandler. | 31 // Overridden from ui::EventHandler. |
| 31 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 32 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 32 | 33 |
| 33 private: | 34 private: |
| 34 PageInfoHelper page_info_helper_; | 35 PageInfoHelper page_info_helper_; |
| 35 | 36 |
| 36 DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView); | 37 DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ | 40 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ |
| 40 | 41 |
| OLD | NEW |