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

Unified Diff: ui/gfx/render_text.h

Issue 2556083002: Don't subtract border from max size for display rect. (Closed)
Patch Set: Created 4 years 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/views/corewm/tooltip_aura.h » ('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 7e0b48310116e1fa2cf8ac004389c6bae197a084..3b69982c45dc83609ac13e33cee4b284a8132b74 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -528,6 +528,9 @@ class GFX_EXPORT RenderText {
// Retrieves the text in the given |range|.
base::string16 GetTextFromRange(const Range& range) const;
+ // Returns the number of text lines, only for unit test.
+ size_t line_size_for_test() const { return lines_.size(); }
sky 2016/12/07 17:09:37 Add to test::RenderTextTestApi ?
oshima 2016/12/13 14:22:18 Extracted to a separate file. PTAL.
+
protected:
RenderText();
« no previous file with comments | « no previous file | ui/views/corewm/tooltip_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698