Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / controls / link_listener.h
blob99a6077790450d434b29a9827aa6395d51b42c53
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.
5 #ifndef UI_VIEWS_CONTROLS_LINK_LISTENER_H_
6 #define UI_VIEWS_CONTROLS_LINK_LISTENER_H_
8 #include "ui/views/views_export.h"
10 namespace views {
12 class Link;
14 // An interface implemented by an object to let it know that a link was clicked.
15 class VIEWS_EXPORT LinkListener {
16 public:
17 virtual void LinkClicked(Link* source, int event_flags) = 0;
19 protected:
20 virtual ~LinkListener() {}
23 } // namespace views
25 #endif // UI_VIEWS_CONTROLS_LINK_LISTENER_H_