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

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: Save focus visibility state per tab. 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 09aee030bad29ff4805634404b125bbe49b62af4..6810eac9946b564bab4ef057aa822a6c7ec77d65 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -618,6 +618,13 @@ void InstantController::InstantSupportDetermined(InstantLoader* loader,
content::NotificationService::NoDetails());
}
+void InstantController::OnWebSearchBoxFocusChange(InstantLoader* loader,
+ bool is_focused) {
+ if (loader_ == loader && extended_enabled_ &&
+ model_.mode().is_ntp() && is_focused)
+ browser_->SetInvisibleFocus();
dhollowa 2012/11/20 23:50:17 I assume defocusing the fakebox by clicking elsewh
samarth 2012/11/21 00:40:15 Yes, that's handled as it is normally.
+}
+
void InstantController::SwappedTabContents(InstantLoader* loader) {
if (loader_ == loader)
model_.SetPreviewContents(GetPreviewContents());

Powered by Google App Engine
This is Rietveld 408576698