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

Unified Diff: ui/gfx/render_text.h

Issue 378723003: RenderText: Allow setting display offset explicitly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | ui/gfx/render_text.cc » ('J')
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 3c87440eddd7f4da2852a61348607c0b348abc70..c69063fcf8073a22a25f88ed686616c7301a83a2 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -421,6 +421,9 @@ class GFX_EXPORT RenderText {
// Rect can't have a negative width.)
virtual Range GetGlyphBounds(size_t index) = 0;
+ const Vector2d& GetUpdatedDisplayOffset();
+ void SetDisplayOffset(const Vector2d& offset);
+
protected:
RenderText();
@@ -454,8 +457,6 @@ class GFX_EXPORT RenderText {
// returns the difference between them.
virtual int GetLayoutTextBaseline() = 0;
- const Vector2d& GetUpdatedDisplayOffset();
-
void set_cached_bounds_and_offset_valid(bool valid) {
cached_bounds_and_offset_valid_ = valid;
}
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | ui/gfx/render_text.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698