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

Unified Diff: chrome/browser/ui/search/search_tab_helper.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/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index aa7f1dd6950f878a3a914dd053bca8d8d4c1f3aa..7c38cc6360db372f4f1747857d54d94bf6e56ca5 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -84,6 +84,16 @@ void SearchTabHelper::NavigateToPendingEntry(
UpdateModelBasedOnURL(url, !is_initial_navigation_commit_);
}
+void SearchTabHelper::OnWebSearchBoxFocus() {
+ if (model_.mode().is_ntp())
+ model_.SetMode(Mode(Mode::MODE_NTP_WEB_SEARCHBOX_HAS_FOCUS, false));
Mathieu 2012/11/15 20:37:20 I think this is missing the origin parameter (2nd
+}
+
+void SearchTabHelper::OnWebSearchBoxBlur() {
+ if (model_.mode().is_ntp())
+ model_.SetMode(Mode(Mode::MODE_NTP, false));
+}
+
void SearchTabHelper::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698