/external/chromium_org/ui/gfx/ |
D | render_text_pango.cc | 108 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()
|
D | render_text.cc | 476 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()
|
D | selection_model.cc | 33 base::StringAppendF(&str, "%" PRIuS, caret_pos()); in ToString()
|
D | selection_model.h | 73 size_t caret_pos() const { return selection_.end(); } in caret_pos() function
|
D | render_text_win.cc | 582 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()
|
D | render_text.h | 247 size_t cursor_position() const { return selection_model_.caret_pos(); } in cursor_position() 528 size_t caret_pos,
|
D | render_text_unittest.cc | 308 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/ |
D | textfield_views_model.cc | 411 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()
|
D | native_textfield_views.cc | 282 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/ |
D | autocomplete_edit_view.h | 88 size_t caret_pos) = 0;
|
D | autocomplete_edit_view_views.cc | 370 size_t caret_pos) { in SetWindowTextAndCaretPos() argument 371 const ui::Range range(caret_pos, caret_pos); in SetWindowTextAndCaretPos()
|
D | autocomplete_edit_unittest.cc | 37 size_t caret_pos) {} in SetWindowTextAndCaretPos() argument
|
D | autocomplete_edit_view_mac.h | 62 size_t caret_pos);
|
D | autocomplete_edit_view_views.h | 96 size_t caret_pos) OVERRIDE;
|
D | autocomplete_edit_view_gtk.h | 117 size_t caret_pos);
|
D | autocomplete_edit_view_win.h | 112 size_t caret_pos);
|
D | autocomplete_edit_view_mac.mm | 368 size_t caret_pos) { 369 DCHECK_LE(caret_pos, text.size()); 370 SetTextAndSelectedRange(text, NSMakeRange(caret_pos, caret_pos));
|
D | autocomplete_edit_view_gtk.cc | 557 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/ |
D | omnibox_view.h | 109 size_t caret_pos,
|
D | omnibox_edit_unittest.cc | 39 size_t caret_pos, in SetWindowTextAndCaretPos() argument
|
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/ |
D | omnibox_view_mac.h | 37 size_t caret_pos,
|
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
D | omnibox_view_views.cc | 485 size_t caret_pos, in SetWindowTextAndCaretPos() argument 488 const gfx::Range range(caret_pos, caret_pos); in SetWindowTextAndCaretPos()
|
D | omnibox_view_views.h | 81 size_t caret_pos,
|
/external/chromium_org/chrome/browser/ui/gtk/omnibox/ |
D | omnibox_view_gtk.h | 76 size_t caret_pos,
|
D | omnibox_view_gtk.cc | 489 size_t caret_pos, in SetWindowTextAndCaretPos() argument 492 CharRange range(static_cast<int>(caret_pos), static_cast<int>(caret_pos)); in SetWindowTextAndCaretPos()
|