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

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

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « no previous file | chrome/browser/instant/instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_controller.h
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index a774364ead62e6f3ab7a36ffd5baa350373fb6eb..98c691f69dfe88de96bdfc9b6554ffab37982ce1 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -108,6 +108,13 @@ class InstantController : public InstantPage::Delegate {
// handled the key press.
bool OnUpOrDownKeyPressed(int count);
+ // Called when the user has arrowed into the suggestions but wants to cancel,
+ // typically by pressing ESC. The omnibox text is expected to have been
+ // reverted to |full_text| by the OmniboxEditModel prior to calling this.
+ // |match| is the match reverted to.
+ void OnCancel(const AutocompleteMatch& match,
+ const string16& full_text);
+
// The preview WebContents. May be NULL. InstantController retains ownership.
content::WebContents* GetPreviewContents() const;
« no previous file with comments | « no previous file | chrome/browser/instant/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698