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

Unified Diff: ui/gfx/render_text.h

Issue 1018463004: Fix focus rectangle for label. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetFocusBounds Created 5 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 3bee634709ef4b516c0485c664955b8e56504589..6170c57c28a88251cfa2c7214fe709995789ffb8 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -461,6 +461,10 @@ class GFX_EXPORT RenderText {
const Vector2d& GetUpdatedDisplayOffset();
void SetDisplayOffset(int horizontal_offset);
+ // Returns the line offset from the origin after applying the text alignment
+ // and the display offset.
+ Vector2d GetLineOffset(size_t line_number);
+
protected:
RenderText();
@@ -569,10 +573,6 @@ class GFX_EXPORT RenderText {
void ApplyCompositionAndSelectionStyles();
void UndoCompositionAndSelectionStyles();
- // Returns the line offset from the origin after applying the text alignment
- // and the display offset.
- Vector2d GetLineOffset(size_t line_number);
-
// Convert points from the text space to the view space and back. Handles the
// display area, display offset, application LTR/RTL mode and multiline.
Point ToTextPoint(const Point& point);
« 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