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

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: Using KeyCaptureChange IPC for notification of focus change, and checking if it really changed in t… 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
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 ce3fc9f81a55ba64f807a46f56915814a22f15b1..6a98e41c9369d536ea5df757e22e260853fd12d7 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -108,9 +108,10 @@ void InstantPage::SetDisplayInstantResults(bool display_instant_results) {
routing_id(), display_instant_results));
}
-void InstantPage::KeyCaptureChanged(bool is_key_capture_enabled) {
+void InstantPage::KeyCaptureChanged(OmniboxFocusState state,
+ OmniboxFocusChangeReason reason) {
Send(new ChromeViewMsg_SearchBoxKeyCaptureChanged(
- routing_id(), is_key_capture_enabled));
+ routing_id(), state, reason));
}
void InstantPage::SendMostVisitedItems(

Powered by Google App Engine
This is Rietveld 408576698