Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: ui/gfx/text_constants.h

Issue 11535014: Replace StyleRange with BreakList; update RenderText, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 // Use the first strong character's direction. 33 // Use the first strong character's direction.
34 DIRECTIONALITY_FROM_TEXT = 0, 34 DIRECTIONALITY_FROM_TEXT = 0,
35 // Use the UI locale's text reading direction. 35 // Use the UI locale's text reading direction.
36 DIRECTIONALITY_FROM_UI, 36 DIRECTIONALITY_FROM_UI,
37 // Use LTR regardless of content or UI locale. 37 // Use LTR regardless of content or UI locale.
38 DIRECTIONALITY_FORCE_LTR, 38 DIRECTIONALITY_FORCE_LTR,
39 // Use RTL regardless of content or UI locale. 39 // Use RTL regardless of content or UI locale.
40 DIRECTIONALITY_FORCE_RTL, 40 DIRECTIONALITY_FORCE_RTL,
41 }; 41 };
42 42
43 // Text styles and adornments.
44 // TODO(msw): Merge with gfx::Font::FontStyle.
45 enum TextStyle {
46 BOLD = 0,
47 ITALIC,
48 STRIKE,
49 DIAGONAL_STRIKE,
50 UNDERLINE,
51 NUM_TEXT_STYLES,
52 };
53
43 } // namespace gfx 54 } // namespace gfx
44 55
45 #endif // UI_GFX_TEXT_CONSTANTS_H_ 56 #endif // UI_GFX_TEXT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698