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

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: Fix which active tab we use. 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 f70b38a0e4e43ee36f9010e9b2aec0833664c2d2..6309f0e2060228be6d4a6dc655a5edc75499f2ff 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -625,6 +625,22 @@ void InstantController::InstantSupportDetermined(InstantLoader* loader,
content::NotificationService::NoDetails());
}
+void InstantController::OnWebSearchBoxBlur(InstantLoader* loader) {
+ if (loader_ != loader || mode_ != EXTENDED ||
+ model_.preview_state() != InstantModel::CUSTOM_NTP_CONTENT)
+ return;
+
+ browser_->OnWebSearchBoxBlur();
dhollowa 2012/11/15 21:31:00 BrowserInstantController is not needed to set this
+}
+
+void InstantController::OnWebSearchBoxFocus(InstantLoader* loader) {
+ if (loader_ != loader || mode_ != EXTENDED ||
+ model_.preview_state() != InstantModel::CUSTOM_NTP_CONTENT)
+ return;
+
+ browser_->OnWebSearchBoxFocus();
+}
+
void InstantController::SwappedTabContents(InstantLoader* loader) {
if (loader_ == loader)
model_.SetPreviewContents(GetPreviewContents());

Powered by Google App Engine
This is Rietveld 408576698