Lines Matching defs:cursor
130 // Old cursor position.
138 // New cursor position.
153 at /* old cursor */,
157 at + new_text.length() /* new cursor */,
300 // SetText moves the cursor to the end.
378 bool TextfieldModel::MoveCursorTo(const gfx::SelectionModel& cursor) {
381 // ConfirmCompositionText() updates cursor position. Need to reflect it in
383 gfx::Range range(render_text_->selection().start(), cursor.caret_pos());
387 gfx::SelectionModel(cursor.caret_pos(), cursor.caret_affinity()));
389 return render_text_->MoveCursorTo(cursor);
395 gfx::SelectionModel cursor = render_text_->FindCursorPosition(point);
397 cursor.set_selection_start(render_text_->selection().start());
398 return render_text_->MoveCursorTo(cursor);
489 // A trick to let undo/redo handle cursor correctly.
490 // Undoing CUT moves the cursor to the end of the change rather
564 size_t cursor = GetCursorPosition();
566 render_text_->SetText(new_text.insert(cursor, composition.text));
567 gfx::Range range(cursor, cursor + composition.text.length());
579 cursor + emphasized_range.GetMin(),
580 cursor + emphasized_range.GetMax()));
583 cursor + composition.selection.GetMin(),
584 cursor + composition.selection.GetMax()));
586 render_text_->SetCursorPosition(cursor + composition.selection.end());
652 size_t cursor = GetCursorPosition();
657 render_text_->IndexOfAdjacentGrapheme(cursor, gfx::CURSOR_FORWARD);