OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/location_bar/click_handler.h" | 9 #include "chrome/browser/ui/views/location_bar/click_handler.h" |
10 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" | 10 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" |
11 | 11 |
12 class LocationBarView; | 12 class LocationBarView; |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 class MouseEvent; | 15 class MouseEvent; |
16 } | 16 } |
17 | 17 |
18 // EVBubbleView displays the EV Bubble in the LocationBarView. | 18 // EVBubbleView displays the EV Bubble in the LocationBarView. |
19 class EVBubbleView : public IconLabelBubbleView { | 19 class EVBubbleView : public IconLabelBubbleView { |
20 public: | 20 public: |
21 EVBubbleView(const int background_images[], | 21 EVBubbleView(const int background_images[], |
22 int contained_image, | 22 int contained_image, |
23 const SkColor& color, | 23 const SkColor& color, |
24 LocationBarView* location_bar); | 24 LocationBarView* location_bar, |
| 25 BrowserShowPageInfo* delegate); |
25 virtual ~EVBubbleView(); | 26 virtual ~EVBubbleView(); |
26 | 27 |
27 // Overridden from view. | 28 // Overridden from view. |
28 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 29 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
29 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 30 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
30 | 31 |
31 private: | 32 private: |
32 ClickHandler click_handler_; | 33 ClickHandler click_handler_; |
33 | 34 |
34 DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView); |
35 }; | 36 }; |
36 | 37 |
37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ | 38 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ |
38 | |
OLD | NEW |