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

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

Issue 2854423002: [omnibox] Use suggestion instead of input for base text (Closed)
Patch Set: Remove redundant class Created 3 years, 7 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
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_AUTOCOMPLETE_MATCH_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 13 matching lines...) Expand all
24 class TemplateURLService; 24 class TemplateURLService;
25 25
26 namespace base { 26 namespace base {
27 class Time; 27 class Time;
28 } // namespace base 28 } // namespace base
29 29
30 namespace gfx { 30 namespace gfx {
31 struct VectorIcon; 31 struct VectorIcon;
32 } // namespace gfx 32 } // namespace gfx
33 33
34 const char kACMatchPropertyInputText[] = "input text"; 34 const char kACMatchPropertySuggestionText[] = "match suggestion text";
35 const char kACMatchPropertyContentsPrefix[] = "match contents prefix"; 35 const char kACMatchPropertyContentsPrefix[] = "match contents prefix";
36 const char kACMatchPropertyContentsStartIndex[] = "match contents start index"; 36 const char kACMatchPropertyContentsStartIndex[] = "match contents start index";
37 37
38 // AutocompleteMatch ---------------------------------------------------------- 38 // AutocompleteMatch ----------------------------------------------------------
39 39
40 // A single result line with classified spans. The autocomplete popup displays 40 // A single result line with classified spans. The autocomplete popup displays
41 // the 'contents' and the 'description' (the description is optional) in the 41 // the 'contents' and the 'description' (the description is optional) in the
42 // autocomplete dropdown, and fills in 'fill_into_edit' into the textbox when 42 // autocomplete dropdown, and fills in 'fill_into_edit' into the textbox when
43 // that line is selected. fill_into_edit may be the same as 'description' for 43 // that line is selected. fill_into_edit may be the same as 'description' for
44 // things like URLs, but may be different for searches or other providers. For 44 // things like URLs, but may be different for searches or other providers. For
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 const base::string16& text, 425 const base::string16& text,
426 const ACMatchClassifications& classifications) const; 426 const ACMatchClassifications& classifications) const;
427 #endif 427 #endif
428 }; 428 };
429 429
430 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; 430 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification;
431 typedef std::vector<ACMatchClassification> ACMatchClassifications; 431 typedef std::vector<ACMatchClassification> ACMatchClassifications;
432 typedef std::vector<AutocompleteMatch> ACMatches; 432 typedef std::vector<AutocompleteMatch> ACMatches;
433 433
434 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ 434 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.cc ('k') | components/omnibox/browser/base_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698