OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GFX_TEXT_CONSTANTS_H_ | 5 #ifndef UI_GFX_TEXT_CONSTANTS_H_ |
6 #define UI_GFX_TEXT_CONSTANTS_H_ | 6 #define UI_GFX_TEXT_CONSTANTS_H_ |
7 | 7 |
8 namespace gfx { | 8 namespace gfx { |
9 | 9 |
10 // TODO(msw): Distinguish between logical character stops and glyph stops? | 10 // TODO(msw): Distinguish between logical character stops and glyph stops? |
(...skipping 26 matching lines...) Expand all Loading... |
37 BOLD = 0, | 37 BOLD = 0, |
38 ITALIC, | 38 ITALIC, |
39 STRIKE, | 39 STRIKE, |
40 DIAGONAL_STRIKE, | 40 DIAGONAL_STRIKE, |
41 UNDERLINE, | 41 UNDERLINE, |
42 NUM_TEXT_STYLES, | 42 NUM_TEXT_STYLES, |
43 }; | 43 }; |
44 | 44 |
45 // Elision behaviors of text that exceeds constrained dimensions. | 45 // Elision behaviors of text that exceeds constrained dimensions. |
46 enum ElideBehavior { | 46 enum ElideBehavior { |
47 TRUNCATE = 0, // Do not elide or fade; the text may be truncated at the end. | 47 NO_ELIDE = 0, // Do not modify the text, it may overflow its available bounds. |
| 48 TRUNCATE, // Do not elide or fade, just truncate at the end of the string. |
48 ELIDE_HEAD, // Add an ellipsis at the start of the string. | 49 ELIDE_HEAD, // Add an ellipsis at the start of the string. |
49 ELIDE_MIDDLE, // Add an ellipsis in the middle of the string. | 50 ELIDE_MIDDLE, // Add an ellipsis in the middle of the string. |
50 ELIDE_TAIL, // Add an ellipsis at the end of the string. | 51 ELIDE_TAIL, // Add an ellipsis at the end of the string. |
51 ELIDE_EMAIL, // Add ellipses to username and domain substrings. | 52 ELIDE_EMAIL, // Add ellipses to username and domain substrings. |
52 FADE_TAIL, // Fade the string's end opposite of its horizontal alignment. | 53 FADE_TAIL, // Fade the string's end opposite of its horizontal alignment. |
53 }; | 54 }; |
54 | 55 |
55 } // namespace gfx | 56 } // namespace gfx |
56 | 57 |
57 #endif // UI_GFX_TEXT_CONSTANTS_H_ | 58 #endif // UI_GFX_TEXT_CONSTANTS_H_ |
OLD | NEW |