link_listener.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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 UI_VIEWS_CONTROLS_LINK_LISTENER_H_
6#define UI_VIEWS_CONTROLS_LINK_LISTENER_H_
7
8namespace views {
9
10class Link;
11
12// An interface implemented by an object to let it know that a link was clicked.
13class LinkListener {
14 public:
15  virtual void LinkClicked(Link* source, int event_flags) = 0;
16
17 protected:
18  virtual ~LinkListener() {}
19};
20
21}  // namespace views
22
23#endif  // UI_VIEWS_CONTROLS_LINK_LISTENER_H_
24