Lines Matching full:keyword
25 // Helper functor for Start(), for ending keyword mode unless explicitly told
59 : AutocompleteProvider(listener, profile, "Keyword"),
76 : AutocompleteProvider(listener, NULL, "Keyword"),
84 // Helper functor for Start(), for sorting keyword matches by quality.
87 // A keyword is of higher quality when a greater fraction of it has been
91 // probably better rankings than the fraction of the keyword typed. We should
114 string16 keyword;
115 if (!ExtractKeywordFromInput(input, &keyword, remaining_input))
124 const TemplateURL* template_url = model->GetTemplateURLForKeyword(keyword);
130 // This object ensures we end keyword mode if we exit the function without
131 // toggling keyword mode to on.
144 // Split user input into a keyword and some query input.
157 string16 keyword, remaining_input;
158 if (!ExtractKeywordFromInput(input, &keyword, &remaining_input))
167 // Get the best matches for this keyword.
178 model->FindMatchingKeywords(keyword,
211 if (keyword_matches.front() == keyword) {
212 const TemplateURL* template_url(model->GetTemplateURLForKeyword(keyword));
215 matches_.push_back(CreateAutocompleteMatch(model, keyword, input,
216 keyword.length(),
262 input, keyword.length(),
277 string16* keyword,
283 *keyword = TemplateURLModel::CleanUserInputKeyword(
285 return !keyword->empty();
308 // Return first token as keyword.
323 // Allow extension keyword providers to accept empty string input. This is
336 // Keyword that has no replacement text (aka a shorthand for a URL).
345 // keyword template URL. The escaping here handles whitespace in user
384 const string16& keyword,
390 // Get keyword data from data store.
392 model->GetTemplateURLForKeyword(keyword));
396 // Create an edit entry of "[keyword] [remaining input]". This is helpful
399 const bool keyword_complete = (prefix_length == keyword.length());
403 // When the user wants keyword matches to take
412 result.fill_into_edit.assign(keyword);
418 // to the user's input. Because right now inexact keyword matches can't score
424 // into keyword templates.
429 result.transition = PageTransition::KEYWORD;
431 // Create popup entry description based on the keyword name.
434 IDS_AUTOCOMPLETE_KEYWORD_DESCRIPTION, keyword));
464 string16 keyword, remaining_input;
466 !ExtractKeywordFromInput(input, &keyword, &remaining_input))
470 model->GetTemplateURLForKeyword(keyword));
484 string16 keyword, remaining_input;
485 if (!ExtractKeywordFromInput(input, &keyword, &remaining_input)) {
499 // the extension unless the full keyword had been typed.
503 model, keyword, input, keyword.length(),