Home
last modified time | relevance | path

Searched refs:AutocompleteMatch (Results 1 – 25 of 62) sorted by relevance

123

/external/chromium/chrome/browser/autocomplete/
Dautocomplete_match.cc11 AutocompleteMatch::AutocompleteMatch() in AutocompleteMatch() function in AutocompleteMatch
24 AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider, in AutocompleteMatch() function in AutocompleteMatch
40 AutocompleteMatch::~AutocompleteMatch() { in ~AutocompleteMatch()
44 std::string AutocompleteMatch::TypeToString(Type type) { in TypeToString()
63 int AutocompleteMatch::TypeToIcon(Type type) { in TypeToIcon()
82 bool AutocompleteMatch::MoreRelevant(const AutocompleteMatch& elem1, in MoreRelevant()
83 const AutocompleteMatch& elem2) { in MoreRelevant()
94 bool AutocompleteMatch::DestinationSortFunc(const AutocompleteMatch& elem1, in DestinationSortFunc()
95 const AutocompleteMatch& elem2) { in DestinationSortFunc()
105 bool AutocompleteMatch::DestinationsEqual(const AutocompleteMatch& elem1, in DestinationsEqual()
[all …]
Dautocomplete_match.h28 struct AutocompleteMatch { struct
85 AutocompleteMatch(); argument
86 AutocompleteMatch(AutocompleteProvider* provider,
90 ~AutocompleteMatch();
100 static bool MoreRelevant(const AutocompleteMatch& elem1,
101 const AutocompleteMatch& elem2);
104 static bool DestinationSortFunc(const AutocompleteMatch& elem1,
105 const AutocompleteMatch& elem2);
106 static bool DestinationsEqual(const AutocompleteMatch& elem1,
107 const AutocompleteMatch& elem2);
[all …]
Dsearch_provider.cc96 if ((i->type == AutocompleteMatch::SEARCH_HISTORY) || in FinalizeInstantQuery()
97 (i->type == AutocompleteMatch::SEARCH_SUGGEST) || in FinalizeInstantQuery()
98 (i->type == AutocompleteMatch::SEARCH_WHAT_YOU_TYPED)) { in FinalizeInstantQuery()
103 if (((i->type == AutocompleteMatch::SEARCH_HISTORY) || in FinalizeInstantQuery()
104 (i->type == AutocompleteMatch::SEARCH_SUGGEST)) && in FinalizeInstantQuery()
120 AutocompleteMatch::SEARCH_SUGGEST, in FinalizeInstantQuery()
126 std::sort(matches_.begin(), matches_.end(), &AutocompleteMatch::MoreRelevant); in FinalizeInstantQuery()
186 AutocompleteMatch match; in Start()
544 AutocompleteMatch::SEARCH_WHAT_YOU_TYPED, in ConvertResultsToAutocompleteMatches()
550 AutocompleteMatch::SEARCH_SUGGEST, in ConvertResultsToAutocompleteMatches()
[all …]
Dautocomplete_edit.cc130 AutocompleteMatch AutocompleteEditModel::CurrentMatch() { in CurrentMatch()
131 AutocompleteMatch match; in CurrentMatch()
216 AutocompleteMatch current_match = CurrentMatch(); in OnChanged()
248 AutocompleteMatch match; in GetDataForURLExport()
309 AutocompleteMatch match; in CurrentTextIsURL()
314 AutocompleteMatch::Type AutocompleteEditModel::CurrentTextType() const { in CurrentTextType()
315 AutocompleteMatch match; in CurrentTextType()
413 AutocompleteMatch match; in CanPasteAndGo()
434 AutocompleteMatch match; in AcceptInput()
461 if (match.type == AutocompleteMatch::SEARCH_WHAT_YOU_TYPED || in AcceptInput()
[all …]
Dsearch_provider_unittest.cc54 AutocompleteMatch FindMatchWithDestination(const GURL& url);
198 AutocompleteMatch SearchProviderTest::FindMatchWithDestination( in FindMatchWithDestination()
205 return AutocompleteMatch(NULL, 1, false, AutocompleteMatch::HISTORY_URL); in FindMatchWithDestination()
248 AutocompleteMatch term1_match = FindMatchWithDestination(term1_url_); in TEST_F()
255 AutocompleteMatch what_you_typed_match = in TEST_F()
269 ASSERT_EQ(AutocompleteMatch::SEARCH_WHAT_YOU_TYPED, in TEST_F()
312 AutocompleteMatch match = FindMatchWithDestination(keyword_url_); in TEST_F()
376 AutocompleteMatch instant_match = FindMatchWithDestination(instant_url); in TEST_F()
385 AutocompleteMatch what_you_typed_match = in TEST_F()
410 AutocompleteMatch instant_match = FindMatchWithDestination(instant_url); in TEST_F()
[all …]
Dkeyword_provider_unittest.cc34 ResultType AutocompleteMatch::* member);
66 ResultType AutocompleteMatch::* member) { in RunTest()
126 &AutocompleteMatch::fill_into_edit); in TEST_F()
151 &AutocompleteMatch::destination_url); in TEST_F()
180 &AutocompleteMatch::contents); in TEST_F()
200 &AutocompleteMatch::description); in TEST_F()
Dautocomplete_result_unittest.cc30 AutocompleteMatch* match);
55 AutocompleteMatch* match) { in PopulateAutocompleteMatch()
69 AutocompleteMatch match; in PopulateAutocompleteMatches()
81 AutocompleteMatch expected_match; in AssertResultMatches()
83 const AutocompleteMatch& match = *(result.begin() + i); in AssertResultMatches()
126 AutocompleteMatch match; in TEST_F()
Dautocomplete.h171 struct AutocompleteMatch;
179 typedef std::vector<AutocompleteMatch> ACMatches;
416 virtual void DeleteMatch(const AutocompleteMatch& match);
515 void AddMatch(const AutocompleteMatch& match);
537 const AutocompleteMatch& match_at(size_t index) const;
566 static bool HasMatchByDestination(const AutocompleteMatch& match,
667 void DeleteMatch(const AutocompleteMatch& match);
Dhistory_url_provider.cc195 AutocompleteMatch what_you_typed_match(SuggestExactInput(params->input, in DoAutocomplete()
302 AutocompleteMatch HistoryURLProvider::SuggestExactInput( in SuggestExactInput()
305 AutocompleteMatch match(this, in SuggestExactInput()
307 AutocompleteMatch::URL_WHAT_YOU_TYPED); in SuggestExactInput()
338 AutocompleteMatch::ClassifyLocationInString(match_location, in SuggestExactInput()
352 AutocompleteMatch* match, in FixupExactSuggestion()
389 AutocompleteMatch::ClassifyMatchInString(input.text(), in FixupExactSuggestion()
478 const AutocompleteMatch& what_you_typed_match, in PromoteOrCreateShorterSuggestion()
772 AutocompleteMatch HistoryURLProvider::HistoryMatchToACMatch( in HistoryMatchToACMatch()
778 AutocompleteMatch match(this, in HistoryMatchToACMatch()
[all …]
Dhistory_quick_provider.cc86 void HistoryQuickProvider::DeleteMatch(const AutocompleteMatch& match) {} in DeleteMatch()
109 AutocompleteMatch ac_match = in DoAutocomplete()
118 AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch( in QuickMatchToACMatch()
141 AutocompleteMatch match(this, score, !!info.visit_count(), in QuickMatchToACMatch()
143 AutocompleteMatch::HISTORY_URL : in QuickMatchToACMatch()
144 AutocompleteMatch::HISTORY_TITLE); in QuickMatchToACMatch()
Dhistory_url_provider.h211 const AutocompleteMatch& what_you_typed_match,
241 AutocompleteMatch SuggestExactInput(const AutocompleteInput& input,
252 AutocompleteMatch* match,
287 AutocompleteMatch HistoryMatchToACMatch(
Dkeyword_provider.h109 AutocompleteMatch* match);
124 AutocompleteMatch CreateAutocompleteMatch(
155 std::vector<AutocompleteMatch> extension_suggest_matches_;
Dautocomplete_popup_view_mac.h94 static NSAttributedString* MatchText(const AutocompleteMatch& match,
103 const AutocompleteMatch::ACMatchClassifications &classifications,
134 NSImage* ImageForMatch(const AutocompleteMatch& match);
Dkeyword_provider.cc316 AutocompleteMatch* match) { in FillInURLAndContents()
339 AutocompleteMatch::ClassifyLocationInString(0, match->contents.length(), in FillInURLAndContents()
358 AutocompleteMatch::ClassifyLocationInString(content_param_offsets[1], in FillInURLAndContents()
382 AutocompleteMatch KeywordProvider::CreateAutocompleteMatch( in CreateAutocompleteMatch()
409 AutocompleteMatch result(this, relevance, false, in CreateAutocompleteMatch()
410 supports_replacement ? AutocompleteMatch::SEARCH_OTHER_ENGINE : in CreateAutocompleteMatch()
411 AutocompleteMatch::HISTORY_KEYWORD); in CreateAutocompleteMatch()
437 AutocompleteMatch::ClassifyLocationInString( in CreateAutocompleteMatch()
506 AutocompleteMatch* match = &extension_suggest_matches_.back(); in Observe()
Dautocomplete_unittest.cc26 return os << static_cast<const AutocompleteMatch*>(&(*it)); in operator <<()
88 AutocompleteMatch match(this, relevance_ - i, false, in AddResults()
89 AutocompleteMatch::URL_WHAT_YOU_TYPED); in AddResults()
394 TEST(AutocompleteMatch, MoreRelevant) { in TEST() argument
408 AutocompleteMatch m1(NULL, 0, false, AutocompleteMatch::URL_WHAT_YOU_TYPED); in TEST()
409 AutocompleteMatch m2(NULL, 0, false, AutocompleteMatch::URL_WHAT_YOU_TYPED); in TEST()
415 AutocompleteMatch::MoreRelevant(m1, m2)); in TEST()
Dautocomplete_popup_view_gtk_unittest.cc49 const AutocompleteMatch::ACMatchClassifications& classifications, in SetupLayoutForMatch()
194 AutocompleteMatch::ACMatchClassifications classifications; in TEST_F()
229 AutocompleteMatch::ACMatchClassifications classifications; in TEST_F()
271 AutocompleteMatch::ACMatchClassifications classifications; in TEST_F()
333 AutocompleteMatch::ACMatchClassifications classifications; in TEST_F()
391 AutocompleteMatch::ACMatchClassifications classifications; in TEST_F()
Dautocomplete_classifier.h16 struct AutocompleteMatch;
40 AutocompleteMatch* match,
Dhistory_contents_provider.cc207 AutocompleteMatch HistoryContentsProvider::ResultToMatch( in ResultToMatch()
212 AutocompleteMatch match(this, score, true, MatchInTitle(result) ? in ResultToMatch()
213 AutocompleteMatch::HISTORY_TITLE : AutocompleteMatch::HISTORY_BODY); in ResultToMatch()
232 AutocompleteMatch* match) const { in ClassifyDescription()
Dautocomplete_popup_model.cc73 const AutocompleteMatch& match = result.match_at(line); in SetSelectedLine()
131 bool AutocompletePopupModel::GetKeywordForMatch(const AutocompleteMatch& match, in GetKeywordForMatch()
203 const AutocompleteMatch& match = result().match_at(selected_line_); in TryDeletingCurrentItem()
226 const AutocompleteMatch& match) const { in GetIconIfExtensionMatch()
Dautocomplete_edit.h134 AutocompleteMatch CurrentMatch();
156 AutocompleteMatch::Type CurrentTextType() const;
401 void InfoForCurrentSelection(AutocompleteMatch* match,
406 void GetInfoForCurrentText(AutocompleteMatch* match,
/external/chromium/chrome/browser/extensions/
Dextension_omnibox_apitest.cc42 AutocompleteMatch match = result.match_at(i); in AutocompleteResultAsString()
118 AutocompleteMatch match = result.match_at(0); in IN_PROC_BROWSER_TEST_F()
119 EXPECT_EQ(AutocompleteMatch::SEARCH_WHAT_YOU_TYPED, match.type); in IN_PROC_BROWSER_TEST_F()
188 AutocompleteMatch match = result.match_at(4); in IN_PROC_BROWSER_TEST_F()
189 EXPECT_EQ(AutocompleteMatch::SEARCH_WHAT_YOU_TYPED, match.type); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/instant/
Dinstant_controller.h27 struct AutocompleteMatch;
83 const AutocompleteMatch& match,
228 bool ShouldShowPreviewFor(const AutocompleteMatch& match,
253 const TemplateURL* GetTemplateURL(const AutocompleteMatch& match);
/external/chromium/chrome/browser/ui/views/autocomplete/
Dautocomplete_result_view.h48 void SetMatch(const AutocompleteMatch& match);
52 const AutocompleteMatch& match,
120 AutocompleteMatch match_;
/external/chromium/chrome/browser/
Domnibox_search_hint.cc192 AutocompleteMatch::Type type = in Observe()
194 if (type == AutocompleteMatch::SEARCH_WHAT_YOU_TYPED || in Observe()
195 type == AutocompleteMatch::SEARCH_HISTORY || in Observe()
196 type == AutocompleteMatch::SEARCH_SUGGEST) { in Observe()
/external/chromium/chrome/browser/ui/webui/options/
Dbrowser_options_handler.cc438 const AutocompleteMatch& match = result.match_at(i); in OnResultChanged()
439 AutocompleteMatch::Type type = match.type; in OnResultChanged()
440 if (type != AutocompleteMatch::HISTORY_URL && in OnResultChanged()
441 type != AutocompleteMatch::HISTORY_TITLE && in OnResultChanged()
442 type != AutocompleteMatch::HISTORY_BODY && in OnResultChanged()
443 type != AutocompleteMatch::HISTORY_KEYWORD && in OnResultChanged()
444 type != AutocompleteMatch::NAVSUGGEST) in OnResultChanged()

123