OLD | NEW |
---|---|
(Empty) | |
1 | |
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
3 // Use of this source code is governed by a BSD-style license that can be | |
4 // found in the LICENSE file. | |
5 | |
6 #ifndef UI_GFX_TEXT_CONSTANTS_H_ | |
7 #define UI_GFX_TEXT_CONSTANTS_H_ | |
8 | |
9 namespace gfx { | |
10 | |
11 // TODO(msw): Distinguish between logical character stops and glyph stops? | |
12 // TODO(msw): Merge with base::i18n::BreakIterator::BreakType. | |
13 enum BreakType { | |
14 CHARACTER_BREAK = 0, // Stop cursor movement on neighboring characters. | |
Alexei Svitkine (slow)
2012/07/30 22:29:16
Nit: Please put comments on the preceding line. I
msw
2012/07/31 03:03:06
Done.
| |
15 WORD_BREAK, // Stop cursor movement on nearest word boundaries. | |
16 LINE_BREAK, // Stop cursor movement on line ends as shown on screen. | |
17 }; | |
18 | |
19 // Horizontal text alignment modes. | |
20 enum HorizontalAlignment { | |
21 ALIGN_LEFT = 0, // Align the text's left edge with that of its display area. | |
22 ALIGN_CENTER, // Align the text's center with that of its display area. | |
23 ALIGN_RIGHT, // Align the text's right edge with that of its display area. | |
24 }; | |
25 | |
26 // The directionality modes used to determine the base text direction. | |
27 enum DirectionalityMode { | |
28 DIRECTIONALITY_FROM_TEXT = 0, // Use the first strong character's direction. | |
29 DIRECTIONALITY_FROM_UI, // Use the UI locale's text reading direction. | |
30 DIRECTIONALITY_FORCE_LTR, // Use LTR regardless of content or UI locale. | |
31 DIRECTIONALITY_FORCE_RTL, // Use RTL regardless of content or UI locale. | |
32 }; | |
33 | |
34 } // namespace gfx | |
35 | |
36 #endif // UI_GFX_TEXT_CONSTANTS_H_ | |
OLD | NEW |