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

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: 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..e95fd04a09623bffa0f3bbfd0cd42f7264fa93d3 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -118,6 +118,10 @@ void InstantPage::SendMostVisitedItems(
Send(new ChromeViewMsg_SearchBoxMostVisitedItemsChanged(routing_id(), items));
}
+void InstantPage::FocusChanged(bool is_focused) {
+ Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), is_focused));
+}
+
InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url)
: delegate_(delegate),
instant_url_(instant_url),

Powered by Google App Engine
This is Rietveld 408576698