Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INPUT_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 // See description of enum for details. | 171 // See description of enum for details. |
| 172 MatchesRequested matches_requested() const { return matches_requested_; } | 172 MatchesRequested matches_requested() const { return matches_requested_; } |
| 173 | 173 |
| 174 // operator==() by another name. | 174 // operator==() by another name. |
| 175 bool Equals(const AutocompleteInput& other) const; | 175 bool Equals(const AutocompleteInput& other) const; |
| 176 | 176 |
| 177 // Resets all internal variables to the null-constructed state. | 177 // Resets all internal variables to the null-constructed state. |
| 178 void Clear(); | 178 void Clear(); |
| 179 | 179 |
| 180 private: | 180 private: |
| 181 // NOTE: Whenever adding a new field here, please make sure to update Clear() | |
| 182 // and Equals() methods. | |
| 183 | |
|
Peter Kasting
2013/01/28 00:04:22
Nit: extra newline
Bart N.
2013/01/29 21:28:17
Done.
| |
| 181 string16 text_; | 184 string16 text_; |
| 182 size_t cursor_position_; | 185 size_t cursor_position_; |
| 183 string16 desired_tld_; | 186 string16 desired_tld_; |
| 184 Type type_; | 187 Type type_; |
| 185 url_parse::Parsed parts_; | 188 url_parse::Parsed parts_; |
| 186 string16 scheme_; | 189 string16 scheme_; |
| 187 GURL canonicalized_url_; | 190 GURL canonicalized_url_; |
| 188 bool prevent_inline_autocomplete_; | 191 bool prevent_inline_autocomplete_; |
| 189 bool prefer_keyword_; | 192 bool prefer_keyword_; |
| 190 bool allow_exact_keyword_match_; | 193 bool allow_exact_keyword_match_; |
| 191 MatchesRequested matches_requested_; | 194 MatchesRequested matches_requested_; |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ | 197 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ |
| OLD | NEW |