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_H_ | 5 #ifndef UI_VIEWS_CONTROLS_STYLED_LABEL_H_ |
6 #define UI_VIEWS_CONTROLS_STYLED_LABEL_H_ | 6 #define UI_VIEWS_CONTROLS_STYLED_LABEL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
14 #include "ui/gfx/font_list.h" | 14 #include "ui/gfx/font_list.h" |
| 15 #include "ui/gfx/geometry/size.h" |
15 #include "ui/gfx/range/range.h" | 16 #include "ui/gfx/range/range.h" |
16 #include "ui/gfx/size.h" | |
17 #include "ui/views/controls/link_listener.h" | 17 #include "ui/views/controls/link_listener.h" |
18 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 | 21 |
22 class Link; | 22 class Link; |
23 class StyledLabelListener; | 23 class StyledLabelListener; |
24 | 24 |
25 // A class which can apply mixed styles to a block of text. Currently, text is | 25 // A class which can apply mixed styles to a block of text. Currently, text is |
26 // always multiline. Trailing whitespace in the styled label text is not | 26 // always multiline. Trailing whitespace in the styled label text is not |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // Controls whether the text is automatically re-colored to be readable on the | 156 // Controls whether the text is automatically re-colored to be readable on the |
157 // background. | 157 // background. |
158 bool auto_color_readability_enabled_; | 158 bool auto_color_readability_enabled_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(StyledLabel); | 160 DISALLOW_COPY_AND_ASSIGN(StyledLabel); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace views | 163 } // namespace views |
164 | 164 |
165 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_H_ | 165 #endif // UI_VIEWS_CONTROLS_STYLED_LABEL_H_ |
OLD | NEW |