OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |