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

Side by Side Diff: components/autofill/core/browser/suggestion.h

Issue 1208133002: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added |match_start| usage. Created 5 years, 5 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_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // ID for the frontend to use in identifying the particular result. Positive 40 // ID for the frontend to use in identifying the particular result. Positive
41 // values are sent over IPC to identify the item selected. Negative values 41 // values are sent over IPC to identify the item selected. Negative values
42 // (see popup_item_ids.h) have special built-in meanings. Default initialized 42 // (see popup_item_ids.h) have special built-in meanings. Default initialized
43 // to 0. 43 // to 0.
44 int frontend_id; 44 int frontend_id;
45 45
46 base::string16 value; 46 base::string16 value;
47 base::string16 label; 47 base::string16 label;
48 base::string16 icon; 48 base::string16 icon;
49
50 // Offset within the suggestion text matches the user input.
51 size_t match_start;
49 }; 52 };
50 53
51 } // namespace autofill 54 } // namespace autofill
52 55
53 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.cc ('k') | components/autofill/core/browser/suggestion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698