Home
last modified time | relevance | path

Searched refs:LayoutIndexToTextIndex (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/ui/gfx/
Drender_text_pango.cc119 return SelectionModel(LayoutIndexToTextIndex(caret_pos), in FindCursorPosition()
129 const int start = LayoutIndexToTextIndex(item->offset); in GetFontSpansForTesting()
130 const int end = LayoutIndexToTextIndex(item->offset + item->length); in GetFontSpansForTesting()
163 if (caret < LayoutIndexToTextIndex(item->offset + item->length)) { in AdjacentCharSelectionModel()
168 if (caret > LayoutIndexToTextIndex(item->offset)) { in AdjacentCharSelectionModel()
258 size_t RenderTextPango::LayoutIndexToTextIndex(size_t index) const { in LayoutIndexToTextIndex() function in gfx::RenderTextPango
493 LayoutIndexToTextIndex(item->offset), CURSOR_FORWARD); in FirstSelectionModelInsideRun()
500 LayoutIndexToTextIndex(item->offset + item->length), CURSOR_BACKWARD); in LastSelectionModelInsideRun()
506 return LayoutIndexToTextIndex(run->item->offset + in GetGlyphTextIndex()
Drender_text_win.cc550 const size_t cursor = LayoutIndexToTextIndex(position + trailing); in FindCursorPosition()
561 Range(LayoutIndexToTextIndex(runs_[i]->range.start()), in GetFontSpansForTesting()
562 LayoutIndexToTextIndex(runs_[i]->range.end())))); in GetFontSpansForTesting()
594 if (caret < LayoutIndexToTextIndex(run->range.end())) { in AdjacentCharSelectionModel()
599 if (caret > LayoutIndexToTextIndex(run->range.start())) { in AdjacentCharSelectionModel()
724 size_t RenderTextWin::LayoutIndexToTextIndex(size_t index) const { in LayoutIndexToTextIndex() function in gfx::RenderTextWin
745 position < LayoutIndexToTextIndex(GetLayoutText().length()) && in IsCursorablePosition()
973 style.UpdatePosition(LayoutIndexToTextIndex(run_break)); in ItemizeLogicalText()
1262 size_t position = LayoutIndexToTextIndex(run->range.start()); in FirstSelectionModelInsideRun()
1269 size_t position = LayoutIndexToTextIndex(run->range.end()); in LastSelectionModelInsideRun()
Drender_text_pango.h38 virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE;
Drender_text_mac.h46 virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE;
Drender_text_win.h82 virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE;
Drender_text_mac.cc91 size_t RenderTextMac::LayoutIndexToTextIndex(size_t index) const { in LayoutIndexToTextIndex() function in gfx::RenderTextMac
240 style.UpdatePosition(LayoutIndexToTextIndex(end)); in ApplyStyles()
Drender_text.h481 virtual size_t LayoutIndexToTextIndex(size_t index) const = 0;
Drender_text_unittest.cc300 EXPECT_EQ(0U, render_text->LayoutIndexToTextIndex(0U)); in TEST_F()
301 EXPECT_EQ(2U, render_text->LayoutIndexToTextIndex(1U)); in TEST_F()