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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 11414303: Make Google Search autocomplete provider cursor aware. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url.h
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 2e89118da58dcdcbfc665d434b90ebc73160e3b8..e06f8f2e2f10d5c9f7035eba390e27be35f51c56 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -70,6 +70,11 @@ class TemplateURLRef {
// TODO: Remove along with "aq" CGI param.
int accepted_suggestion;
+
+ // The 0-based position of the cursor within the query string at the time
+ // the request was issued. Set to string16::npos if not used or after the
+ // last character.
Peter Kasting 2012/12/18 03:01:01 I thought "after the last character" was allowed n
Bart N. 2012/12/18 23:47:39 You mean "wasn't", right? I forgot to fix it here.
+ size_t cursor_position;
};
TemplateURLRef(TemplateURL* owner, Type type);
@@ -157,6 +162,7 @@ class TemplateURLRef {
GOOGLE_ASSISTED_QUERY_STATS,
GOOGLE_BASE_URL,
GOOGLE_BASE_SUGGEST_URL,
+ GOOGLE_CURSOR_POSITION,
GOOGLE_INSTANT_ENABLED,
GOOGLE_INSTANT_EXTENDED_ENABLED,
GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,

Powered by Google App Engine
This is Rietveld 408576698