Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_input.h

Issue 12039053: Fix cursor position for default provider searches in keyword mode. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed Mark's comments. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_input.cc » ('j') | chrome/browser/autocomplete/autocomplete_input.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698