OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ |
6 #define UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ | 6 #define UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace ui { | 10 namespace gfx { |
11 class Range; | 11 class Range; |
12 } | 12 } |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 // A listener interface for StyledLabel. | 16 // A listener interface for StyledLabel. |
17 class VIEWS_EXPORT StyledLabelListener { | 17 class VIEWS_EXPORT StyledLabelListener { |
18 public: | 18 public: |
19 virtual void StyledLabelLinkClicked(const ui::Range& range, | 19 virtual void StyledLabelLinkClicked(const gfx::Range& range, |
20 int event_flags) = 0; | 20 int event_flags) = 0; |
21 | 21 |
22 protected: | 22 protected: |
23 virtual ~StyledLabelListener() {} | 23 virtual ~StyledLabelListener() {} |
24 }; | 24 }; |
25 | 25 |
26 } // namespace views | 26 } // namespace views |
27 | 27 |
28 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ | 28 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ |
OLD | NEW |