Home
last modified time | relevance | path

Searched refs:AutocompleteInput (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium/chrome/browser/autocomplete/
Dautocomplete_unittest.cc43 virtual void Start(const AutocompleteInput& input,
61 void TestProvider::Start(const AutocompleteInput& input, in Start()
71 if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { in Start()
207 AutocompleteInput::ALL_MATCHES); in RunTest()
222 AutocompleteInput::SYNCHRONOUS_MATCHES); in RunExactKeymatchTest()
275 const AutocompleteInput::Type type; in TEST_F()
277 { ASCIIToUTF16(""), AutocompleteInput::INVALID }, in TEST_F()
278 { ASCIIToUTF16("?"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
279 { ASCIIToUTF16("?foo"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
280 { ASCIIToUTF16("?foo bar"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
[all …]
Dhistory_contents_provider_unittest.cc42 void RunQuery(const AutocompleteInput& input, in RunQuery()
48 if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) in RunQuery()
110 AutocompleteInput input(ASCIIToUTF16("FOO"), string16(), true, false, true, in TEST_F()
111 AutocompleteInput::ALL_MATCHES); in TEST_F()
124 AutocompleteInput input(ASCIIToUTF16("PAGEONE"), string16(), true, false, in TEST_F()
125 true, AutocompleteInput::ALL_MATCHES); in TEST_F()
141 AutocompleteInput sync_input(ASCIIToUTF16("PAGEONE"), string16(), true, false, in TEST_F()
142 true, AutocompleteInput::SYNCHRONOUS_MATCHES); in TEST_F()
148 AutocompleteInput async_input(ASCIIToUTF16("PAGEONE"), string16(), true, in TEST_F()
149 false, true, AutocompleteInput::ALL_MATCHES); in TEST_F()
[all …]
Dautocomplete.h170 class AutocompleteInput; variable
185 class AutocompleteInput {
218 AutocompleteInput();
219 AutocompleteInput(const string16& text,
225 ~AutocompleteInput();
319 bool Equals(const AutocompleteInput& other) const;
394 virtual void Start(const AutocompleteInput& input,
509 void CopyOldMatches(const AutocompleteInput& input,
523 void SortAndCull(const AutocompleteInput& input);
655 AutocompleteInput::MatchesRequested matches_requested);
[all …]
Dkeyword_provider.h71 const AutocompleteInput& input,
75 virtual void Start(const AutocompleteInput& input, bool minimal_changes);
91 static bool ExtractKeywordFromInput(const AutocompleteInput& input,
116 static int CalculateRelevance(AutocompleteInput::Type type,
127 const AutocompleteInput& input,
151 AutocompleteInput extension_suggest_last_input_;
Dhistory_contents_provider.cc61 input_type_(AutocompleteInput::INVALID), in HistoryContentsProvider()
66 void HistoryContentsProvider::Start(const AutocompleteInput& input, in Start()
70 if (input.text().empty() || (input.type() == AutocompleteInput::INVALID) || in Start()
82 if ((input.type() == AutocompleteInput::URL) || in Start()
83 (((input.type() == AutocompleteInput::REQUESTED_URL) || in Start()
84 (input.type() == AutocompleteInput::UNKNOWN)) && in Start()
90 if (input.matches_requested() == AutocompleteInput::BEST_MATCH) { in Start()
114 if (input.matches_requested() != AutocompleteInput::ALL_MATCHES) { in Start()
134 if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { in Start()
216 AutocompleteInput::FormattedStringWithEquivalentMeaning(result.url(), in ResultToMatch()
[all …]
Dautocomplete.cc49 AutocompleteInput::AutocompleteInput() in AutocompleteInput() function in AutocompleteInput
58 AutocompleteInput::AutocompleteInput(const string16& text, in AutocompleteInput() function in AutocompleteInput
91 AutocompleteInput::~AutocompleteInput() { in ~AutocompleteInput()
95 void AutocompleteInput::RemoveForcedQueryStringIfNecessary(Type type, in RemoveForcedQueryStringIfNecessary()
102 std::string AutocompleteInput::TypeToString(Type type) { in TypeToString()
118 AutocompleteInput::Type AutocompleteInput::Parse( in Parse()
406 void AutocompleteInput::ParseForEmphasizeComponents( in ParseForEmphasizeComponents()
426 AutocompleteInput::Parse(real_url, desired_tld, &real_parts, NULL, NULL); in ParseForEmphasizeComponents()
447 string16 AutocompleteInput::FormattedStringWithEquivalentMeaning( in FormattedStringWithEquivalentMeaning()
453 return (AutocompleteInput::Parse(formatted_url, string16(), NULL, NULL, in FormattedStringWithEquivalentMeaning()
[all …]
Dhistory_url_provider.h87 HistoryURLProviderParams(const AutocompleteInput& input,
96 AutocompleteInput input;
157 virtual void Start(const AutocompleteInput& input,
190 static int CalculateRelevance(AutocompleteInput::Type input_type,
228 void RunAutocompletePasses(const AutocompleteInput& input,
241 AutocompleteMatch SuggestExactInput(const AutocompleteInput& input,
251 const AutocompleteInput& input,
Dbuiltin_provider.cc26 void BuiltinProvider::Start(const AutocompleteInput& input, in Start()
29 if ((input.type() == AutocompleteInput::INVALID) || in Start()
30 (input.type() == AutocompleteInput::FORCED_QUERY) || in Start()
31 (input.type() == AutocompleteInput::QUERY) || in Start()
32 (input.matches_requested() == AutocompleteInput::BEST_MATCH)) in Start()
Dsearch_provider.cc85 AutocompleteInput::RemoveForcedQueryStringIfNecessary(input_.type(), in FinalizeInstantQuery()
133 void SearchProvider::Start(const AutocompleteInput& input, in Start()
138 (input.matches_requested() != AutocompleteInput::ALL_MATCHES); in Start()
141 if (!profile_ || (input.type() == AutocompleteInput::INVALID)) { in Start()
333 input_.matches_requested() == AutocompleteInput::ALL_MATCHES))) in StartOrStopSuggestQuery()
340 if (input_.matches_requested() != AutocompleteInput::ALL_MATCHES) in StartOrStopSuggestQuery()
369 if (input_.type() == AutocompleteInput::FORCED_QUERY) in IsQuerySuitableForSuggest()
385 return (input_.type() == AutocompleteInput::QUERY); in IsQuerySuitableForSuggest()
674 case AutocompleteInput::UNKNOWN: in CalculateRelevanceForWhatYouTyped()
675 case AutocompleteInput::QUERY: in CalculateRelevanceForWhatYouTyped()
[all …]
Dkeyword_provider.cc109 const AutocompleteInput& input, in GetSubstitutingTemplateURLForInput()
128 void KeywordProvider::Start(const AutocompleteInput& input, in Start()
188 input.matches_requested() == AutocompleteInput::ALL_MATCHES && in Start()
220 input.matches_requested() == AutocompleteInput::ALL_MATCHES && in Start()
276 bool KeywordProvider::ExtractKeywordFromInput(const AutocompleteInput& input, in ExtractKeywordFromInput()
279 if ((input.type() == AutocompleteInput::INVALID) || in ExtractKeywordFromInput()
280 (input.type() == AutocompleteInput::FORCED_QUERY)) in ExtractKeywordFromInput()
369 int KeywordProvider::CalculateRelevance(AutocompleteInput::Type type, in CalculateRelevance()
375 return (type == AutocompleteInput::URL) ? 700 : 450; in CalculateRelevance()
378 return (allow_exact_keyword_match && (type == AutocompleteInput::QUERY)) ? in CalculateRelevance()
[all …]
Dhistory_contents_provider.h29 virtual void Start(const AutocompleteInput& input,
58 void QueryBookmarks(const AutocompleteInput& input);
74 AutocompleteInput::Type input_type_;
Dhistory_quick_provider.h35 virtual void Start(const AutocompleteInput& input,
58 AutocompleteInput::Type input_type,
73 AutocompleteInput autocomplete_input_;
Dextension_app_provider.h41 virtual void Start(const AutocompleteInput& input,
62 void HighlightMatch(const AutocompleteInput& input,
68 int CalculateRelevance(AutocompleteInput::Type type,
Dhistory_url_provider.cc107 const AutocompleteInput& input, in HistoryURLProviderParams()
128 void HistoryURLProvider::Start(const AutocompleteInput& input, in Start()
190 (params->input.type() != AutocompleteInput::QUERY) && in DoAutocomplete()
191 ((params->input.type() != AutocompleteInput::UNKNOWN) || in DoAutocomplete()
303 const AutocompleteInput& input, in SuggestExactInput()
322 AutocompleteInput::FormattedStringWithEquivalentMeaning(url, in SuggestExactInput()
351 const AutocompleteInput& input, in FixupExactSuggestion()
458 int HistoryURLProvider::CalculateRelevance(AutocompleteInput::Type input_type, in CalculateRelevance()
569 const AutocompleteInput& input, in RunAutocompletePasses()
573 if ((input.type() == AutocompleteInput::INVALID) || in RunAutocompletePasses()
[all …]
Dextension_app_provider.cc32 void ExtensionAppProvider::Start(const AutocompleteInput& input, in Start()
36 if (input.type() == AutocompleteInput::INVALID) in Start()
61 input.type() != AutocompleteInput::FORCED_QUERY; in Start()
118 void ExtensionAppProvider::HighlightMatch(const AutocompleteInput& input, in HighlightMatch()
138 int ExtensionAppProvider::CalculateRelevance(AutocompleteInput::Type type, in CalculateRelevance()
Dhistory_quick_provider.cc42 void HistoryQuickProvider::Start(const AutocompleteInput& input, in Start()
46 if ((input.type() == AutocompleteInput::INVALID) || in Start()
47 (input.type() == AutocompleteInput::FORCED_QUERY)) in Start()
153 AutocompleteInput::FormattedStringWithEquivalentMeaning(info.url(), in QuickMatchToACMatch()
200 AutocompleteInput::Type input_type, in CalculateRelevance()
Dautocomplete_result_unittest.cc95 AutocompleteInput input(ASCIIToUTF16("a"), string16(), false, false, false, in RunCopyOldMatchesTest()
96 AutocompleteInput::ALL_MATCHES); in RunCopyOldMatchesTest()
127 AutocompleteInput input(ASCIIToUTF16("a"), string16(), false, false, false, in TEST_F()
128 AutocompleteInput::ALL_MATCHES); in TEST_F()
Dhistory_url_provider_unittest.cc192 AutocompleteInput input(text, desired_tld, prevent_inline_autocomplete, in RunTest()
193 false, true, AutocompleteInput::ALL_MATCHES); in RunTest()
207 AutocompleteInput input(text, string16(), false, false, true, in RunAdjustOffsetTest()
208 AutocompleteInput::ALL_MATCHES); in RunAdjustOffsetTest()
462 AutocompleteInput input(ASCIIToUTF16("p"), string16(), false, false, true, in TEST_F()
463 AutocompleteInput::ALL_MATCHES); in TEST_F()
Dextension_app_provider_unittest.cc76 AutocompleteInput input(keyword_cases[i].input, string16(), true, in RunTest()
77 false, true, AutocompleteInput::ALL_MATCHES); in RunTest()
Dhistory_provider.cc63 string16 HistoryProvider::FixupUserInput(const AutocompleteInput& input) { in FixupUserInput()
80 if ((input.type() != AutocompleteInput::URL) && in FixupUserInput()
Dsearch_provider.h66 virtual void Start(const AutocompleteInput& input,
284 AutocompleteInput input_;
Dbuiltin_provider.h27 virtual void Start(const AutocompleteInput& input, bool minimal_changes);
Dkeyword_provider_unittest.cc69 AutocompleteInput input(keyword_cases[i].input, string16(), true, in RunTest()
70 false, true, AutocompleteInput::ALL_MATCHES); in RunTest()
Dhistory_provider.h47 static string16 FixupUserInput(const AutocompleteInput& input);
/external/chromium/chrome/browser/extensions/
Dextension_omnibox_apitest.cc106 AutocompleteInput::ALL_MATCHES); in IN_PROC_BROWSER_TEST_F()
132 AutocompleteInput::ALL_MATCHES); in IN_PROC_BROWSER_TEST_F()
197 AutocompleteInput::ALL_MATCHES); in IN_PROC_BROWSER_TEST_F()

12