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

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

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: Finish renaming. Created 8 years, 1 month 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_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index bcb9fe9a693be38e4ac7befa007fded6dc600fd7..9e956a63c1fbab3bf9dae9e82d5540b0d2267ec1 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -394,6 +394,13 @@ void InstantLoader::OnUpOrDownKeyPressed(int count) {
count));
}
+void InstantLoader::OnKeyCaptureChange(bool is_key_capture_enabled) {
+ content::RenderViewHost* rvh =
+ preview_contents_->web_contents()->GetRenderViewHost();
+ rvh->Send(new ChromeViewMsg_SearchBoxKeyCaptureChanged(
+ rvh->GetRoutingID(), is_key_capture_enabled));
+}
+
void InstantLoader::SearchModeChanged(const chrome::search::Mode& mode) {
content::RenderViewHost* rvh =
preview_contents_->web_contents()->GetRenderViewHost();

Powered by Google App Engine
This is Rietveld 408576698