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

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

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. 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_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index f3146a5d324ce0429e460109f88df97bf6c3657a..531e9a2a64f07f3916dfb4421f16253dd3af2d8b 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -659,6 +659,11 @@ void InstantController::ShowInstantPreview(InstantLoader* loader,
Show(reason, height, units);
}
+void InstantController::StartCapturingKeyStrokes(InstantLoader* loader) {
+ if (loader_ == loader && extended_enabled_ && model_.mode().is_ntp())
+ browser_->SetInvisibleFocus();
+}
+
void InstantController::InstantSupportDetermined(InstantLoader* loader,
bool supports_instant) {
if (supports_instant) {

Powered by Google App Engine
This is Rietveld 408576698