Lines Matching refs:selection
36 // Default color used for drawing selection background.
358 // Reset selection model. SetText should always followed by SetSelectionModel
451 // Cancelling a selection moves to the edge of the selection.
452 if (break_type != LINE_BREAK && !selection().is_empty() && !select) {
456 // Use the selection start if it is left (when |direction| is CURSOR_LEFT)
457 // or right (when |direction| is CURSOR_RIGHT) of the selection end.
468 position.set_selection_start(selection().start());
473 // Enforce valid selection model components.
475 Range range(std::min(model.selection().start(), text_length),
490 position.set_selection_start(selection().start());
506 if (selection().is_empty())
510 selection(), cursor.caret_pos(), cursor.caret_affinity());
531 size_t selection_max = selection().GetMax();
539 size_t selection_min = selection().GetMin();
556 const bool reversed = selection().is_reversed();
718 const std::vector<Rect> sel = GetSubstringBounds(selection());
720 // Override the selection color with black, and force the background to be
734 // Restore saved transparency and selection color.
804 const Range& sel = selection();
869 DCHECK_LE(model.selection().GetMax(), text().length());
908 // Apply the selected text color to the [un-reversed] selection range.
909 if (!selection().is_empty() && focused()) {
910 const Range range(selection().GetMin(), selection().GetMax());
1082 Range(select ? selection().start() : cursor, cursor),
1171 const std::vector<Rect> sel = GetSubstringBounds(selection());