| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // *~: Partial matches get a score on a sliding scale from about 575-1125 based | 167 // *~: Partial matches get a score on a sliding scale from about 575-1125 based |
| 168 // on how many times the URL for the Extension App has been typed and how | 168 // on how many times the URL for the Extension App has been typed and how |
| 169 // many of the letters match. | 169 // many of the letters match. |
| 170 | 170 |
| 171 class AutocompleteController; | 171 class AutocompleteController; |
| 172 class AutocompleteControllerDelegate; | 172 class AutocompleteControllerDelegate; |
| 173 class AutocompleteInput; | 173 class AutocompleteInput; |
| 174 struct AutocompleteMatch; | 174 struct AutocompleteMatch; |
| 175 class AutocompleteProvider; | 175 class AutocompleteProvider; |
| 176 class AutocompleteResult; | 176 class AutocompleteResult; |
| 177 class HistoryContentsProvider; | |
| 178 class KeywordProvider; | 177 class KeywordProvider; |
| 179 class Profile; | 178 class Profile; |
| 180 class SearchProvider; | 179 class SearchProvider; |
| 181 class TemplateURL; | 180 class TemplateURL; |
| 182 | 181 |
| 183 typedef std::vector<AutocompleteMatch> ACMatches; | 182 typedef std::vector<AutocompleteMatch> ACMatches; |
| 184 typedef std::vector<AutocompleteProvider*> ACProviders; | 183 typedef std::vector<AutocompleteProvider*> ACProviders; |
| 185 | 184 |
| 186 // AutocompleteInput ---------------------------------------------------------- | 185 // AutocompleteInput ---------------------------------------------------------- |
| 187 | 186 |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 AutocompleteInput::Type input_type; | 751 AutocompleteInput::Type input_type; |
| 753 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). | 752 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). |
| 754 size_t selected_index; | 753 size_t selected_index; |
| 755 // Inline autocompleted length (if displayed). | 754 // Inline autocompleted length (if displayed). |
| 756 size_t inline_autocompleted_length; | 755 size_t inline_autocompleted_length; |
| 757 // Result set. | 756 // Result set. |
| 758 const AutocompleteResult& result; | 757 const AutocompleteResult& result; |
| 759 }; | 758 }; |
| 760 | 759 |
| 761 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ | 760 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ |
| OLD | NEW |