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

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: Fix indent issues. 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..6fafcf828af142eb0c0bee6b5b79e4859a3053b0 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -108,9 +108,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(

Powered by Google App Engine
This is Rietveld 408576698