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

Unified Diff: chrome/browser/ui/search/instant_page.cc

Issue 14562006: Handle Esc key press event in Local NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 7 years, 7 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/ui/search/instant_page.cc
diff --git a/chrome/browser/ui/search/instant_page.cc b/chrome/browser/ui/search/instant_page.cc
index f1ae57f07de3e3e52d1f5be1f082167c0b2ae647..e44e2e45eb1700e605269c50bae781a8e935b6d2 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -76,6 +76,10 @@ void InstantPage::UpOrDownKeyPressed(int count) {
Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count));
}
+void InstantPage::EscKeyPressed() {
+ Send(new ChromeViewMsg_SearchBoxEscKeyPressed(routing_id()));
+}
+
void InstantPage::CancelSelection(const string16& user_text,
size_t selection_start,
size_t selection_end,

Powered by Google App Engine
This is Rietveld 408576698