Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:shortcut

189     const history::ShortcutsDatabase::Shortcut& shortcut,
199 match.fill_into_edit = shortcut.match_core.fill_into_edit;
200 match.destination_url = shortcut.match_core.destination_url;
202 match.contents = shortcut.match_core.contents;
204 shortcut.match_core.contents_class);
205 match.description = shortcut.match_core.description;
207 shortcut.match_core.description_class);
209 static_cast<content::PageTransition>(shortcut.match_core.transition);
210 match.type = static_cast<AutocompleteMatch::Type>(shortcut.match_core.type);
211 match.keyword = shortcut.match_core.keyword;
212 match.RecordAdditionalInfo("number of hits", shortcut.number_of_hits);
213 match.RecordAdditionalInfo("last access time", shortcut.last_access_time);
215 base::UTF16ToUTF8(shortcut.text));
390 const history::ShortcutsDatabase::Shortcut& shortcut,
393 DCHECK_LE(terms.length(), shortcut.text.length());
395 // The initial score is based on how much of the shortcut the user has typed.
400 // shortcut than are the remaining continued characters.
402 sqrt(static_cast<double>(terms.length()) / shortcut.text.length());
406 base::TimeDelta time_passed = base::Time::Now() - shortcut.last_access_time;
411 // We modulate the decay factor based on how many times the shortcut has been
418 (shortcut.number_of_hits + kNumUsesPerDecaySpeedDivisorIncrement - 1) /