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

Unified Diff: chrome/browser/ui/search/instant_page.cc

Issue 14646034: Add onfocuschange to the Extended Search API, with associated isFocused attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying again after rebase master. Created 7 years, 7 months 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
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/common/omnibox_focus_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_page.cc
diff --git a/chrome/browser/ui/search/instant_page.cc b/chrome/browser/ui/search/instant_page.cc
index b151aea7ee3faa5c4246b5f5eaa81918ca7330bf..190b51f7bf7ac3cfefbfc334ede37dc7d82cbb94 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -112,9 +112,9 @@ void InstantPage::SetDisplayInstantResults(bool display_instant_results) {
routing_id(), display_instant_results));
}
-void InstantPage::KeyCaptureChanged(bool is_key_capture_enabled) {
- Send(new ChromeViewMsg_SearchBoxKeyCaptureChanged(
- routing_id(), is_key_capture_enabled));
+void InstantPage::FocusChanged(OmniboxFocusState state,
+ OmniboxFocusChangeReason reason) {
+ Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), state, reason));
}
void InstantPage::SendMostVisitedItems(
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/common/omnibox_focus_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698