blob: d80d98fa38998b5731db20fa8f85a71d74e45f4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
#pragma once
#include "chrome/browser/views/location_bar/click_handler.h"
#include "chrome/browser/views/location_bar/icon_label_bubble_view.h"
class LocationBarView;
namespace views {
class MouseEvent;
}
// EVBubbleView displays the EV Bubble in the LocationBarView.
class EVBubbleView : public IconLabelBubbleView {
public:
EVBubbleView(const int background_images[],
int contained_image,
const SkColor& color,
const LocationBarView* location_bar);
virtual ~EVBubbleView();
// Overridden from view.
virtual bool OnMousePressed(const views::MouseEvent& event);
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled);
private:
ClickHandler click_handler_;
DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView);
};
#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
|