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

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: fit whole runs, remove single-line stuff Created 7 years, 5 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
Index: ui/gfx/render_text_win.h
diff --git a/ui/gfx/render_text_win.h b/ui/gfx/render_text_win.h
index 704829d65c7e91735930e9e4914e665976e2c162..95d3e18e6f2c75d7d29cc41b1e5abe9d269fc2e6 100644
--- a/ui/gfx/render_text_win.h
+++ b/ui/gfx/render_text_win.h
@@ -67,6 +67,7 @@ class RenderTextWin : public RenderText {
// Overridden from RenderText:
virtual Size GetStringSize() OVERRIDE;
+ virtual Size GetMultilineTextSize() OVERRIDE;
virtual int GetBaseline() OVERRIDE;
virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
virtual std::vector<FontSpan> GetFontSpansForTesting() OVERRIDE;
@@ -93,6 +94,7 @@ class RenderTextWin : public RenderText {
void ItemizeLogicalText();
void LayoutVisualText();
void LayoutTextRun(internal::TextRun* run);
+ void ComputeLines();
// Helper function that calls |ScriptShape()| on the run, which has logic to
// handle E_OUTOFMEMORY return codes.

Powered by Google App Engine
This is Rietveld 408576698