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

Unified Diff: ui/gfx/render_text_linux.h

Issue 11535014: Replace StyleRange with BreakList; update RenderText, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 11 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 | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_linux.h
diff --git a/ui/gfx/render_text_linux.h b/ui/gfx/render_text_linux.h
index 12f61ba7fd1d80039ff47272e11a0be1b7061698..2abdf2b07488bffd356533b7a5c2a3dd06305b94 100644
--- a/ui/gfx/render_text_linux.h
+++ b/ui/gfx/render_text_linux.h
@@ -45,6 +45,9 @@ class RenderTextLinux : public RenderText {
virtual void DrawVisualText(Canvas* canvas) OVERRIDE;
private:
+ friend class RenderTextTest;
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, PangoAttributes);
+
// Returns the run that contains the character attached to the caret in the
// given selection model. Return NULL if not found.
GSList* GetRunContainingCaret(const SelectionModel& caret) const;
@@ -71,6 +74,9 @@ class RenderTextLinux : public RenderText {
// Get the visual bounds of the logical selection.
std::vector<Rect> GetSelectionBounds();
+ // Get the text index corresponding to the |run|'s |glyph_index|.
+ size_t GetGlyphTextIndex(PangoLayoutRun* run, int glyph_index) const;
+
// Pango Layout.
PangoLayout* layout_;
// A single line layout resulting from laying out via |layout_|.
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698