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

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: Reverted back to asvitkine's fix. REALLY answered PK's comments. :) 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..7719617f76dcd6088659e62fd99f285a40c3c7c6 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(string16 user_text);
sreeram 2013/02/12 18:12:29 const string16&
beaudoin 2013/02/12 20:27:30 Done.
+
// 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