Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Side by Side Diff: components/omnibox/browser/search_suggestion_parser.h

Issue 2836453002: Standardizing on the name "tail suggestions" (in comments) (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Result: 166 // Result:
167 int CalculateRelevance(const AutocompleteInput& input, 167 int CalculateRelevance(const AutocompleteInput& input,
168 bool keyword_provider_requested) const override; 168 bool keyword_provider_requested) const override;
169 169
170 private: 170 private:
171 // The search terms to be used for this suggestion. 171 // The search terms to be used for this suggestion.
172 base::string16 suggestion_; 172 base::string16 suggestion_;
173 173
174 // The contents to be displayed as prefix of match contents. 174 // The contents to be displayed as prefix of match contents.
175 // Used for postfix suggestions to display a leading ellipsis (or some 175 // Used for tail suggestions to display a leading ellipsis (or some
176 // equivalent character) to indicate omitted text. 176 // equivalent character) to indicate omitted text.
177 // Only used to pass this information to about:omnibox's "Additional Info". 177 // Only used to pass this information to about:omnibox's "Additional Info".
178 base::string16 match_contents_prefix_; 178 base::string16 match_contents_prefix_;
179 179
180 // Optional annotation for the |match_contents_| for disambiguation. 180 // Optional annotation for the |match_contents_| for disambiguation.
181 // This may be displayed in the autocomplete match contents, but is defined 181 // This may be displayed in the autocomplete match contents, but is defined
182 // separately to facilitate different formatting. 182 // separately to facilitate different formatting.
183 base::string16 annotation_; 183 base::string16 annotation_;
184 184
185 // Optional additional parameters to be added to the search URL. 185 // Optional additional parameters to be added to the search URL.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 const AutocompleteSchemeClassifier& scheme_classifier, 307 const AutocompleteSchemeClassifier& scheme_classifier,
308 int default_result_relevance, 308 int default_result_relevance,
309 bool is_keyword_result, 309 bool is_keyword_result,
310 Results* results); 310 Results* results);
311 311
312 private: 312 private:
313 DISALLOW_COPY_AND_ASSIGN(SearchSuggestionParser); 313 DISALLOW_COPY_AND_ASSIGN(SearchSuggestionParser);
314 }; 314 };
315 315
316 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_ 316 #endif // COMPONENTS_OMNIBOX_BROWSER_SEARCH_SUGGESTION_PARSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698