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

Unified Diff: chrome/browser/instant/instant_page.h

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added issue number to TODO. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/instant/instant_page.h
diff --git a/chrome/browser/instant/instant_page.h b/chrome/browser/instant/instant_page.h
index 1051b226cdeb2fcd4b6ac9c62b522b901c7e1bfa..2388e725a32e27a8c1d8115e9e70d484be344a09 100644
--- a/chrome/browser/instant/instant_page.h
+++ b/chrome/browser/instant/instant_page.h
@@ -147,6 +147,11 @@ class InstantPage : public content::WebContentsObserver {
// a repeat count, negative for moving up, positive for moving down.
void UpOrDownKeyPressed(int count);
+ // Tells the page that the user pressed Esc in the omnibox after having
+ // arrowed down in the suggestions. The page should reset the selection to
+ // the first suggestion. |user_text| is what the omnibox has been reset to.
+ void CancelSelection(const string16& user_text);
+
// Tells the page that the active tab's search mode has changed.
void SearchModeChanged(const chrome::search::Mode& mode);

Powered by Google App Engine
This is Rietveld 408576698