Home | History | Annotate | Download | only in location_bar
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef 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
      8 
      9 #include "chrome/browser/ui/views/location_bar/click_handler.h"
     10 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
     11 
     12 class LocationBarView;
     13 
     14 namespace views {
     15 class MouseEvent;
     16 }
     17 
     18 // EVBubbleView displays the EV Bubble in the LocationBarView.
     19 class EVBubbleView : public IconLabelBubbleView {
     20  public:
     21   EVBubbleView(const int background_images[],
     22                int contained_image,
     23                const SkColor& color,
     24                LocationBarView* location_bar);
     25   virtual ~EVBubbleView();
     26 
     27   // Overridden from view.
     28   virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
     29   virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
     30 
     31  private:
     32   ClickHandler click_handler_;
     33 
     34   DISALLOW_IMPLICIT_CONSTRUCTORS(EVBubbleView);
     35 };
     36 
     37 #endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
     38 
     39