OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "views/controls/label.h" | 5 #include "views/controls/label.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/string_split.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
16 #include "gfx/canvas_skia.h" | 17 #include "gfx/canvas_skia.h" |
17 #include "gfx/color_utils.h" | 18 #include "gfx/color_utils.h" |
18 #include "gfx/font.h" | 19 #include "gfx/font.h" |
19 #include "gfx/insets.h" | 20 #include "gfx/insets.h" |
20 #include "views/background.h" | 21 #include "views/background.h" |
21 | 22 |
22 namespace views { | 23 namespace views { |
23 | 24 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 *paint_text = gfx::ElideText(text_, font_, width(), true); | 446 *paint_text = gfx::ElideText(text_, font_, width(), true); |
446 } else { | 447 } else { |
447 *paint_text = text_; | 448 *paint_text = text_; |
448 } | 449 } |
449 | 450 |
450 *text_bounds = GetTextBounds(); | 451 *text_bounds = GetTextBounds(); |
451 *flags = ComputeMultiLineFlags(); | 452 *flags = ComputeMultiLineFlags(); |
452 } | 453 } |
453 | 454 |
454 } // namespace views | 455 } // namespace views |
OLD | NEW |