OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEW_TEXT_UTILS_H_ | 5 #ifndef UI_VIEWS_VIEW_TEXT_UTILS_H_ |
6 #define UI_VIEWS_VIEW_TEXT_UTILS_H_ | 6 #define UI_VIEWS_VIEW_TEXT_UTILS_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Canvas; | 12 class Canvas; |
13 class Font; | 13 class Font; |
14 class Rect; | 14 class Rect; |
15 class Size; | 15 class Size; |
16 } | 16 } |
17 | 17 |
18 namespace views { | 18 namespace views { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // |word_width| fits at position |position| within the |bounds| rectangle. If | 66 // |word_width| fits at position |position| within the |bounds| rectangle. If |
67 // not, |position| is updated to wrap to the beginning of the next line. | 67 // not, |position| is updated to wrap to the beginning of the next line. |
68 void WrapIfWordDoesntFit(int word_width, | 68 void WrapIfWordDoesntFit(int word_width, |
69 int font_height, | 69 int font_height, |
70 gfx::Size* position, | 70 gfx::Size* position, |
71 const gfx::Rect& bounds); | 71 const gfx::Rect& bounds); |
72 | 72 |
73 } // namespace view_text_utils | 73 } // namespace view_text_utils |
74 | 74 |
75 #endif // UI_VIEWS_VIEW_TEXT_UTILS_H_ | 75 #endif // UI_VIEWS_VIEW_TEXT_UTILS_H_ |
OLD | NEW |