blob: e477e946572411d11e9a4580cf1a866b72c18459 (
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
|
// 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_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
#define CHROME_BROWSER_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
#include "base/basictypes.h"
class LocationBarView;
namespace views {
class MouseEvent;
class View;
}
// This helper class is kept as a member by classes that need to show the Page
// Info dialog on click, to encapsulate that logic in one place.
class ClickHandler {
public:
ClickHandler(const views::View* owner, const LocationBarView* location_bar);
void OnMouseReleased(const views::MouseEvent& event, bool canceled);
private:
const views::View* owner_;
const LocationBarView* location_bar_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ClickHandler);
};
#endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
|