| 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/l10n_util.h" | |
| 11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 12 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
| 13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "gfx/canvas_skia.h" | 16 #include "gfx/canvas_skia.h" |
| 17 #include "gfx/color_utils.h" | 17 #include "gfx/color_utils.h" |
| 18 #include "gfx/font.h" | 18 #include "gfx/font.h" |
| 19 #include "gfx/insets.h" | 19 #include "gfx/insets.h" |
| 20 #include "views/background.h" | 20 #include "views/background.h" |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 | 23 |
| 24 // static | 24 // static |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 *paint_text = gfx::ElideText(text_, font_, width(), true); | 444 *paint_text = gfx::ElideText(text_, font_, width(), true); |
| 445 } else { | 445 } else { |
| 446 *paint_text = text_; | 446 *paint_text = text_; |
| 447 } | 447 } |
| 448 | 448 |
| 449 *text_bounds = GetTextBounds(); | 449 *text_bounds = GetTextBounds(); |
| 450 *flags = ComputeMultiLineFlags(); | 450 *flags = ComputeMultiLineFlags(); |
| 451 } | 451 } |
| 452 | 452 |
| 453 } // namespace views | 453 } // namespace views |
| OLD | NEW |