/external/chromium_org/chrome/browser/autocomplete/ |
D | autocomplete_input_unittest.cc | 17 const AutocompleteInput::Type type; in TEST() 19 { base::string16(), AutocompleteInput::INVALID }, in TEST() 20 { ASCIIToUTF16("?"), AutocompleteInput::FORCED_QUERY }, in TEST() 21 { ASCIIToUTF16("?foo"), AutocompleteInput::FORCED_QUERY }, in TEST() 22 { ASCIIToUTF16("?foo bar"), AutocompleteInput::FORCED_QUERY }, in TEST() 23 { ASCIIToUTF16("?http://foo.com/bar"), AutocompleteInput::FORCED_QUERY }, in TEST() 24 { ASCIIToUTF16("foo"), AutocompleteInput::UNKNOWN }, in TEST() 25 { ASCIIToUTF16("localhost"), AutocompleteInput::URL }, in TEST() 26 { ASCIIToUTF16("foo.c"), AutocompleteInput::UNKNOWN }, in TEST() 27 { ASCIIToUTF16("foo.com"), AutocompleteInput::URL }, in TEST() [all …]
|
D | autocomplete_input.cc | 32 AutocompleteInput::AutocompleteInput() in AutocompleteInput() function in AutocompleteInput 34 current_page_classification_(AutocompleteInput::INVALID_SPEC), in AutocompleteInput() 42 AutocompleteInput::AutocompleteInput( in AutocompleteInput() function in AutocompleteInput 47 AutocompleteInput::PageClassification current_page_classification, in AutocompleteInput() 95 AutocompleteInput::~AutocompleteInput() { in ~AutocompleteInput() 99 size_t AutocompleteInput::RemoveForcedQueryStringIfNecessary( in RemoveForcedQueryStringIfNecessary() 110 std::string AutocompleteInput::TypeToString(Type type) { in TypeToString() 125 AutocompleteInput::Type AutocompleteInput::Parse( in Parse() 427 void AutocompleteInput::ParseForEmphasizeComponents( in ParseForEmphasizeComponents() 446 AutocompleteInput::Parse(real_url, base::string16(), &real_parts, NULL, NULL); in ParseForEmphasizeComponents() [all …]
|
D | keyword_provider.h | 80 AutocompleteInput* input); 90 const AutocompleteInput& input); 93 virtual void Start(const AutocompleteInput& input, 110 static bool ExtractKeywordFromInput(const AutocompleteInput& input, 119 static int CalculateRelevance(AutocompleteInput::Type type, 129 const AutocompleteInput& input, 162 AutocompleteInput extension_suggest_last_input_;
|
D | autocomplete_result_unittest.cc | 153 AutocompleteInput input(ASCIIToUTF16("a"), base::string16::npos, in RunCopyOldMatchesTest() 155 AutocompleteInput::INVALID_SPEC, false, false, false, in RunCopyOldMatchesTest() 156 AutocompleteInput::ALL_MATCHES); in RunCopyOldMatchesTest() 189 AutocompleteInput input(ASCIIToUTF16("a"), base::string16::npos, in TEST_F() 191 AutocompleteInput::INVALID_SPEC, false, false, false, in TEST_F() 192 AutocompleteInput::ALL_MATCHES); in TEST_F() 272 AutocompleteInput input(base::string16(), base::string16::npos, in TEST_F() 274 AutocompleteInput::INVALID_SPEC, false, false, false, in TEST_F() 275 AutocompleteInput::ALL_MATCHES); in TEST_F() 318 AutocompleteInput input(base::string16(), base::string16::npos, in TEST_F() [all …]
|
D | history_url_provider_unittest.cc | 180 AutocompleteInput::Type* identified_input_type); 188 AutocompleteInput::Type type; in RunTest() 269 AutocompleteInput::Type* identified_input_type) { in RunTest() 270 AutocompleteInput input(text, base::string16::npos, desired_tld, GURL(), in RunTest() 271 AutocompleteInput::INVALID_SPEC, in RunTest() 273 AutocompleteInput::ALL_MATCHES); in RunTest() 552 AutocompleteInput input(ASCIIToUTF16("p"), base::string16::npos, in TEST_F() 554 AutocompleteInput::INVALID_SPEC, false, false, true, in TEST_F() 555 AutocompleteInput::ALL_MATCHES); in TEST_F() 594 AutocompleteInput input(ASCIIToUTF16("slash "), base::string16::npos, in TEST_F() [all …]
|
D | autocomplete_result.h | 17 class AutocompleteInput; variable 72 void CopyOldMatches(const AutocompleteInput& input, 82 void SortAndCull(const AutocompleteInput& input, Profile* profile); 148 static GURL ComputeAlternateNavUrl(const AutocompleteInput& input, 175 void AddMatch(AutocompleteInput::PageClassification page_classification, 184 AutocompleteInput::PageClassification page_classification,
|
D | autocomplete_input.h | 17 class AutocompleteInput { 96 AutocompleteInput(); 136 AutocompleteInput(const base::string16& text, 145 ~AutocompleteInput(); 209 AutocompleteInput::PageClassification current_page_classification() const { in current_page_classification() 254 AutocompleteInput::PageClassification current_page_classification_;
|
D | history_url_provider.h | 92 HistoryURLProviderParams(const AutocompleteInput& input, 103 AutocompleteInput input; 166 virtual void Start(const AutocompleteInput& input, 220 void RunAutocompletePasses(const AutocompleteInput& input, 230 const AutocompleteInput& input, 239 const AutocompleteInput& input) const;
|
D | contact_provider_chromeos.h | 18 class AutocompleteInput; variable 39 virtual void Start(const AutocompleteInput& input, 61 void AddContactIfMatched(const AutocompleteInput& input, 66 AutocompleteMatch CreateAutocompleteMatch(const AutocompleteInput& input,
|
D | extension_app_provider_unittest.cc | 89 AutocompleteInput input(keyword_cases[i].input, base::string16::npos, in RunTest() 91 AutocompleteInput::INVALID_SPEC, true, in RunTest() 92 false, true, AutocompleteInput::ALL_MATCHES); in RunTest() 140 AutocompleteInput input(ASCIIToUTF16("Test"), base::string16::npos, in TEST_F() 142 AutocompleteInput::INVALID_SPEC, true, true, in TEST_F() 143 true, AutocompleteInput::BEST_MATCH); in TEST_F()
|
D | bookmark_provider.cc | 38 void BookmarkProvider::Start(const AutocompleteInput& input, in Start() 48 ((input.type() != AutocompleteInput::UNKNOWN) && in Start() 49 (input.type() != AutocompleteInput::QUERY)) || in Start() 50 ((input.matches_requested() == AutocompleteInput::BEST_MATCH) && in Start() 56 input.matches_requested() == AutocompleteInput::BEST_MATCH); in Start() 63 void BookmarkProvider::DoAutocomplete(const AutocompleteInput& input, in DoAutocomplete() 177 AutocompleteInput::FormattedStringWithEquivalentMeaning(url, in TitleMatchToACMatch()
|
D | keyword_provider.cc | 144 AutocompleteInput* input) { in GetSubstitutingTemplateURLForInput() 220 const AutocompleteInput& input) { in CreateVerbatimMatch() 227 void KeywordProvider::Start(const AutocompleteInput& input, in Start() 336 if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { in Start() 350 (input.matches_requested() != AutocompleteInput::BEST_MATCH)) { in Start() 358 } else if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { in Start() 392 bool KeywordProvider::ExtractKeywordFromInput(const AutocompleteInput& input, in ExtractKeywordFromInput() 395 if ((input.type() == AutocompleteInput::INVALID) || in ExtractKeywordFromInput() 396 (input.type() == AutocompleteInput::FORCED_QUERY)) in ExtractKeywordFromInput() 405 int KeywordProvider::CalculateRelevance(AutocompleteInput::Type type, in CalculateRelevance() [all …]
|
/external/chromium/chrome/browser/autocomplete/ |
D | autocomplete_unittest.cc | 43 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 …]
|
D | history_contents_provider_unittest.cc | 42 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 …]
|
D | autocomplete.h | 170 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 …]
|
D | keyword_provider.h | 71 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_;
|
D | history_contents_provider.cc | 61 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 …]
|
D | history_url_provider.h | 87 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,
|
D | autocomplete.cc | 49 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 …]
|
D | builtin_provider.cc | 26 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()
|
D | search_provider.cc | 85 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 …]
|
/external/chromium_org/chrome/browser/omnibox/ |
D | omnibox_field_trial_unittest.cc | 55 AutocompleteInput::PageClassification page_classification); 78 AutocompleteInput::PageClassification page_classification) { in ExpectRuleValue() 177 AutocompleteInput::NTP, &demotions_by_type); in TEST_F() 182 AutocompleteInput::HOME_PAGE, &demotions_by_type); in TEST_F() 186 AutocompleteInput::BLANK, &demotions_by_type); in TEST_F() 205 AutocompleteInput::NTP); in TEST_F() 210 AutocompleteInput::HOME_PAGE); in TEST_F() 214 AutocompleteInput::BLANK); in TEST_F() 250 "rule1", AutocompleteInput::OTHER); // exact match in TEST_F() 252 "rule1", AutocompleteInput::BLANK); // partial fallback in TEST_F() [all …]
|
D | omnibox_field_trial.h | 128 AutocompleteInput::PageClassification current_page_classification, 139 AutocompleteInput::PageClassification current_page_classification); 145 AutocompleteInput::PageClassification current_page_classification); 156 AutocompleteInput::PageClassification current_page_classification, 162 AutocompleteInput::PageClassification current_page_classification); 175 AutocompleteInput::PageClassification current_page_classification); 251 AutocompleteInput::PageClassification page_classification);
|
D | omnibox_log.h | 24 AutocompleteInput::Type input_type, 27 AutocompleteInput::PageClassification current_page_classification, 42 AutocompleteInput::Type input_type; 53 AutocompleteInput::PageClassification current_page_classification;
|
/external/chromium_org/chrome/browser/extensions/api/omnibox/ |
D | omnibox_api_browsertest.cc | 35 AutocompleteInput(ASCIIToUTF16("keywor"), base::string16::npos, in IN_PROC_BROWSER_TEST_F() 36 base::string16(), GURL(), AutocompleteInput::NTP, in IN_PROC_BROWSER_TEST_F() 37 true, false, true, AutocompleteInput::ALL_MATCHES)); in IN_PROC_BROWSER_TEST_F() 57 AutocompleteInput(ASCIIToUTF16("keyword suggestio"), in IN_PROC_BROWSER_TEST_F() 59 AutocompleteInput::NTP, true, false, true, in IN_PROC_BROWSER_TEST_F() 60 AutocompleteInput::ALL_MATCHES)); in IN_PROC_BROWSER_TEST_F() 168 AutocompleteInput(ASCIIToUTF16("keyword command"), base::string16::npos, in IN_PROC_BROWSER_TEST_F() 169 base::string16(), GURL(), AutocompleteInput::NTP, in IN_PROC_BROWSER_TEST_F() 170 true, false, true, AutocompleteInput::ALL_MATCHES)); in IN_PROC_BROWSER_TEST_F() 183 AutocompleteInput(ASCIIToUTF16("keyword newtab"), base::string16::npos, in IN_PROC_BROWSER_TEST_F() [all …]
|