Home | History | Annotate | Download | only in autocomplete

Lines Matching full:line

44 void AutocompletePopupModel::SetHoveredLine(size_t line) {
45 const bool is_disabling = (line == kNoMatch);
46 DCHECK(is_disabling || (line < result().size()));
48 if (line == hovered_line_)
51 // Make sure the old hovered line is redrawn. No need to redraw the selected
52 // line since selection overrides hover so the appearance won't change.
56 // Change the hover to the new line.
57 hovered_line_ = line;
62 void AutocompletePopupModel::SetSelectedLine(size_t line,
72 line = std::min(line, result.size() - 1);
73 const AutocompleteMatch& match = result.match_at(line);
84 if (line == selected_line_ && !force)
91 // NOTE: We should never reach here with no selected line; the same code that
93 // selected line.
97 selected_line_ = line;
187 // Clamp the new line to [0, result_.count() - 1].
242 // line, turn hover off. Practically, this shouldn't happen, but it