Lines Matching defs:line
99 void OmniboxPopupModel::SetHoveredLine(size_t line) {
100 const bool is_disabling = (line == kNoMatch);
101 DCHECK(is_disabling || (line < result().size()));
103 if (line == hovered_line_)
106 // Make sure the old hovered line is redrawn. No need to redraw the selected
107 // line since selection overrides hover so the appearance won't change.
111 // Change the hover to the new line.
112 hovered_line_ = line;
117 void OmniboxPopupModel::SetSelectedLine(size_t line,
127 line = std::min(line, result.size() - 1);
128 const AutocompleteMatch& match = result.match_at(line);
139 if (line == selected_line_ && !force)
148 // NOTE: We should never reach here with no selected line; the same code that
150 // selected line.
155 selected_line_ = line;
197 // Clamp the new line to [0, result_.count() - 1].
275 // line, turn hover off. Practically, this shouldn't happen, but it