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

Unified Diff: chrome/browser/instant/instant_client.cc

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reworked to send ESC down to JS, added test. 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_client.cc
diff --git a/chrome/browser/instant/instant_client.cc b/chrome/browser/instant/instant_client.cc
index ab5d339e323f144101d0852bae88a1eca868c7c9..618e2a757e8221c28d58cc279ba17e79322650f0 100644
--- a/chrome/browser/instant/instant_client.cc
+++ b/chrome/browser/instant/instant_client.cc
@@ -70,6 +70,10 @@ void InstantClient::UpOrDownKeyPressed(int count) {
Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count));
}
+void InstantClient::EscKeyPressed() {
+ Send(new ChromeViewMsg_SearchBoxEscKeyPressed(routing_id()));
+}
+
void InstantClient::SearchModeChanged(const chrome::search::Mode& mode) {
Send(new ChromeViewMsg_SearchBoxModeChanged(routing_id(), mode));
}

Powered by Google App Engine
This is Rietveld 408576698