Home
last modified time | relevance | path

Searched refs:caret_pos (Results 1 – 25 of 27) sorted by relevance

12

/external/chromium_org/ui/gfx/
Drender_text_pango.cc108 int caret_pos = 0, trailing = 0; in FindCursorPosition() local
110 &caret_pos, &trailing); in FindCursorPosition()
114 caret_pos = g_utf8_offset_to_pointer(layout_text_ + caret_pos, in FindCursorPosition()
116 DCHECK_LE(static_cast<size_t>(caret_pos), strlen(layout_text_)); in FindCursorPosition()
119 return SelectionModel(LayoutIndexToTextIndex(caret_pos), in FindCursorPosition()
152 if (edge.caret_pos() == selection.caret_pos()) in AdjacentCharSelectionModel()
161 size_t caret = selection.caret_pos(); in AdjacentCharSelectionModel()
204 size_t cursor = cur.caret_pos(); in AdjacentWordSelectionModel()
477 size_t position = TextIndexToLayoutIndex(caret.caret_pos()); in GetRunContainingCaret()
Drender_text.cc476 std::min(model.caret_pos(), text_length)); in MoveCursorTo()
510 selection(), cursor.caret_pos(), cursor.caret_affinity()); in IsPointInSelection()
747 size_t caret_pos = caret.caret_pos(); in GetCursorBounds() local
748 DCHECK(IsCursorablePosition(caret_pos)); in GetCursorBounds()
755 if (caret_pos == (caret_affinity == CURSOR_BACKWARD ? 0 : text().length())) { in GetCursorBounds()
758 if ((GetTextDirection() == base::i18n::RIGHT_TO_LEFT) == (caret_pos == 0)) in GetCursorBounds()
762 caret_pos : IndexOfAdjacentGrapheme(caret_pos, CURSOR_BACKWARD); in GetCursorBounds()
1070 size_t caret_pos, in RangeContainsCaret() argument
1074 caret_pos - 1 : caret_pos + 1; in RangeContainsCaret()
1075 return range.Contains(Range(caret_pos, adjacent)); in RangeContainsCaret()
Dselection_model.cc33 base::StringAppendF(&str, "%" PRIuS, caret_pos()); in ToString()
Dselection_model.h73 size_t caret_pos() const { return selection_.end(); } in caret_pos() function
Drender_text_win.cc582 if (edge.caret_pos() == selection.caret_pos()) in AdjacentCharSelectionModel()
590 size_t caret = selection.caret_pos(); in AdjacentCharSelectionModel()
631 pos = std::min(selection.caret_pos() + 1, text().length()); in AdjacentWordSelectionModel()
634 if (iter.IsWord() && pos > selection.caret_pos()) in AdjacentWordSelectionModel()
642 pos = std::max<int>(selection.caret_pos() - 1, 0); in AdjacentWordSelectionModel()
646 if (begin == selection.caret_pos()) { in AdjacentWordSelectionModel()
650 } else if (iter.pos() >= selection.caret_pos()) { in AdjacentWordSelectionModel()
1241 size_t layout_position = TextIndexToLayoutIndex(caret.caret_pos()); in GetRunContainingCaret()
Drender_text.h247 size_t cursor_position() const { return selection_model_.caret_pos(); } in cursor_position()
528 size_t caret_pos,
Drender_text_unittest.cc308 EXPECT_EQ(render_text->FindCursorPosition(Point(0, 0)).caret_pos(), 0U); in TEST_F()
309 EXPECT_EQ(render_text->FindCursorPosition(Point(20, 0)).caret_pos(), 2U); in TEST_F()
312 EXPECT_TRUE(selection.caret_pos() == 0U || selection.caret_pos() == 2U); in TEST_F()
/external/chromium_org/ui/views/controls/textfield/
Dtextfield_views_model.cc411 gfx::Range range(render_text_->selection().start(), model.caret_pos()); in MoveCursorTo()
415 gfx::SelectionModel(model.caret_pos(), model.caret_affinity())); in MoveCursorTo()
681 if (next == model.caret_pos()) in ReplaceTextInternal()
684 render_text_->SelectRange(gfx::Range(next, model.caret_pos())); in ReplaceTextInternal()
Dnative_textfield_views.cc282 selection.Contains(gfx::Range(drop_cursor_position_.caret_pos())); in OnDragUpdated()
330 size_t drop = drop_destination_model.caret_pos(); in OnPerformDrop()
376 gfx::Range(start_caret.caret_pos(), end_caret.caret_pos()), in SelectRect()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view.h88 size_t caret_pos) = 0;
Dautocomplete_edit_view_views.cc370 size_t caret_pos) { in SetWindowTextAndCaretPos() argument
371 const ui::Range range(caret_pos, caret_pos); in SetWindowTextAndCaretPos()
Dautocomplete_edit_unittest.cc37 size_t caret_pos) {} in SetWindowTextAndCaretPos() argument
Dautocomplete_edit_view_mac.h62 size_t caret_pos);
Dautocomplete_edit_view_views.h96 size_t caret_pos) OVERRIDE;
Dautocomplete_edit_view_gtk.h117 size_t caret_pos);
Dautocomplete_edit_view_win.h112 size_t caret_pos);
Dautocomplete_edit_view_mac.mm368 size_t caret_pos) {
369 DCHECK_LE(caret_pos, text.size());
370 SetTextAndSelectedRange(text, NSMakeRange(caret_pos, caret_pos));
Dautocomplete_edit_view_gtk.cc557 size_t caret_pos) { in SetWindowTextAndCaretPos() argument
558 CharRange range(static_cast<int>(caret_pos), static_cast<int>(caret_pos)); in SetWindowTextAndCaretPos()
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_view.h109 size_t caret_pos,
Domnibox_edit_unittest.cc39 size_t caret_pos, in SetWindowTextAndCaretPos() argument
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_view_mac.h37 size_t caret_pos,
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_view_views.cc485 size_t caret_pos, in SetWindowTextAndCaretPos() argument
488 const gfx::Range range(caret_pos, caret_pos); in SetWindowTextAndCaretPos()
Domnibox_view_views.h81 size_t caret_pos,
/external/chromium_org/chrome/browser/ui/gtk/omnibox/
Domnibox_view_gtk.h76 size_t caret_pos,
Domnibox_view_gtk.cc489 size_t caret_pos, in SetWindowTextAndCaretPos() argument
492 CharRange range(static_cast<int>(caret_pos), static_cast<int>(caret_pos)); in SetWindowTextAndCaretPos()

12