page_info_helper.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_INFO_HELPER_H_
6#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_INFO_HELPER_H_
7
8#include "base/basictypes.h"
9
10class LocationBarView;
11
12namespace ui {
13class LocatedEvent;
14}
15
16namespace views {
17class View;
18}
19
20// This helper class is kept as a member by classes that need to show the Page
21// Info bubble on click, to encapsulate that logic in one place.
22class PageInfoHelper {
23 public:
24  PageInfoHelper(const views::View* owner, LocationBarView* location_bar);
25
26  void ProcessEvent(const ui::LocatedEvent& event);
27
28 private:
29  const views::View* owner_;
30  LocationBarView* location_bar_;
31
32  DISALLOW_IMPLICIT_CONSTRUCTORS(PageInfoHelper);
33};
34
35#endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_INFO_HELPER_H_
36
37