| 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" |
| 9 |
| 8 namespace ui { | 10 namespace ui { |
| 9 class Range; | 11 class Range; |
| 10 } | 12 } |
| 11 | 13 |
| 12 namespace views { | 14 namespace views { |
| 13 | 15 |
| 14 // A listener interface for StyledLabel. | 16 // A listener interface for StyledLabel. |
| 15 class VIEWS_EXPORT StyledLabelListener { | 17 class VIEWS_EXPORT StyledLabelListener { |
| 16 public: | 18 public: |
| 17 virtual void StyledLabelLinkClicked(const ui::Range& range, | 19 virtual void StyledLabelLinkClicked(const ui::Range& range, |
| 18 int event_flags) = 0; | 20 int event_flags) = 0; |
| 19 | 21 |
| 20 protected: | 22 protected: |
| 21 virtual ~StyledLabelListener() {} | 23 virtual ~StyledLabelListener() {} |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 } // namespace views | 26 } // namespace views |
| 25 | 27 |
| 26 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ | 28 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_LISTENER_H_ |
| OLD | NEW |