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

Unified Diff: ui/gfx/render_text.h

Issue 2767163003: Vertically center multi-line RenderTextHarfBuzz that uses SetMinLineHeight(). (Closed)
Patch Set: respond to comments Created 3 years, 9 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 | « no previous file | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index f24633c2583e27c07285ed3c93cd5d605b413207..00fe00c8e734d7bfc0eebaf5bbaee6601c36ef8e 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -680,6 +680,10 @@ class GFX_EXPORT RenderText {
size_t caret_pos,
LogicalCursorDirection caret_affinity);
+ // Returns the baseline, with which the text best appears vertically centered.
+ static int DetermineBaselineCenteringText(const int display_height,
+ const FontList& font_list);
+
private:
friend class test::RenderTextTestApi;
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698