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

Unified Diff: chrome/browser/ui/browser_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/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 1ad6c25b6b27792411ac6e05b15e8896b8ca0f24..6c3167c7257c57cbc91a398f0867b8059d253f86 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -115,6 +115,16 @@ void BrowserInstantController::InstantPreviewFocused() {
instant_->GetPreviewContents()->web_contents());
}
+void BrowserInstantController::OnWebSearchBoxBlur() {
+ chrome::search::SearchTabHelper::FromWebContents(
+ GetActiveTabContents()->web_contents())->OnWebSearchBoxBlur();
+}
+
+void BrowserInstantController::OnWebSearchBoxFocus() {
+ chrome::search::SearchTabHelper::FromWebContents(
+ GetActiveTabContents()->web_contents())->OnWebSearchBoxFocus();
+}
+
TabContents* BrowserInstantController::GetActiveTabContents() const {
return chrome::GetActiveTabContents(browser_);
}

Powered by Google App Engine
This is Rietveld 408576698