| 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_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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "googleurl/src/url_parse.h" | 16 #include "googleurl/src/url_parse.h" |
| 17 | 17 |
| 18 // The AutocompleteController is the center of the autocomplete system. A | 18 // The AutocompleteController is the center of the autocomplete system. A |
| 19 // class creates an instance of the controller, which in turn creates a set of | 19 // class creates an instance of the controller, which in turn creates a set of |
| 20 // AutocompleteProviders to serve it. The owning class can ask the controller | 20 // AutocompleteProviders to serve it. The owning class can ask the controller |
| 21 // to Start() a query; the controller in turn passes this call down to the | 21 // to Start() a query; the controller in turn passes this call down to the |
| 22 // providers, each of which keeps track of its own matches and whether it has | 22 // providers, each of which keeps track of its own matches and whether it has |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 AutocompleteInput::Type input_type; | 719 AutocompleteInput::Type input_type; |
| 720 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). | 720 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). |
| 721 size_t selected_index; | 721 size_t selected_index; |
| 722 // Inline autocompleted length (if displayed). | 722 // Inline autocompleted length (if displayed). |
| 723 size_t inline_autocompleted_length; | 723 size_t inline_autocompleted_length; |
| 724 // Result set. | 724 // Result set. |
| 725 const AutocompleteResult& result; | 725 const AutocompleteResult& result; |
| 726 }; | 726 }; |
| 727 | 727 |
| 728 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ | 728 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ |
| OLD | NEW |