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

Unified Diff: ui/gfx/render_text_win.h

Issue 16867016: Windows implementation of multiline RenderText (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: min height/baseline; update tests Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_win.h
diff --git a/ui/gfx/render_text_win.h b/ui/gfx/render_text_win.h
index 17e0671150d7a7c9d77df1563048c44fd64ac115..b5e77b8a78f44960c60b15b16a6bb9027edb1543 100644
--- a/ui/gfx/render_text_win.h
+++ b/ui/gfx/render_text_win.h
@@ -89,6 +89,8 @@ class RenderTextWin : public RenderText {
private:
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_BreakRunsByUnicodeBlocks);
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_LogicalClusters);
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_MinWidth);
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth);
void ItemizeLogicalText();
void LayoutVisualText();
@@ -123,11 +125,12 @@ class RenderTextWin : public RenderText {
SCRIPT_STATE script_state_;
ScopedVector<internal::TextRun> runs_;
- Size string_size_;
- // A common vertical baseline for all the text runs. This is computed as the
- // largest baseline over all the runs' fonts.
- int common_baseline_;
+ // Single line width of the layout text.
+ int string_width_;
+
+ // Wrapped multiline size of the layout text.
+ Size multiline_string_size_;
scoped_ptr<int[]> visual_to_logical_;
scoped_ptr<int[]> logical_to_visual_;
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698