| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MATCH_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "chrome/common/page_transition_types.h" | 12 #include "content/common/page_transition_types.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 | 14 |
| 15 class AutocompleteProvider; | 15 class AutocompleteProvider; |
| 16 class PageTransition; | 16 class PageTransition; |
| 17 class TemplateURL; | 17 class TemplateURL; |
| 18 | 18 |
| 19 // AutocompleteMatch ---------------------------------------------------------- | 19 // AutocompleteMatch ---------------------------------------------------------- |
| 20 | 20 |
| 21 // A single result line with classified spans. The autocomplete popup displays | 21 // A single result line with classified spans. The autocomplete popup displays |
| 22 // the 'contents' and the 'description' (the description is optional) in the | 22 // the 'contents' and the 'description' (the description is optional) in the |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void ValidateClassifications( | 193 void ValidateClassifications( |
| 194 const string16& text, | 194 const string16& text, |
| 195 const ACMatchClassifications& classifications) const; | 195 const ACMatchClassifications& classifications) const; |
| 196 #endif | 196 #endif |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 199 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 200 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 200 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 201 | 201 |
| 202 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 202 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |