| 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_|.
|
|
|