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

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

Issue 17526008: Log NTP hovers in 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Spacing fixes Created 7 years, 6 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 f4fb89f0f6407d23f4e18c2aa9cda09fe1161519..9c322934f17c9814ff59a9f6d81c4c757ac03c4f 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -207,6 +207,8 @@ bool InstantPage::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FocusOmnibox, OnFocusOmnibox)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate,
OnSearchBoxNavigate);
+ IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxLogIframeHover,
+ OnSearchBoxLogIframeHover);
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
OnDeleteMostVisitedItem);
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
@@ -322,6 +324,13 @@ void InstantPage::OnSearchBoxNavigate(int page_id,
contents(), url, transition, disposition, is_search_type);
}
+void InstantPage::OnSearchBoxLogIframeHover(int page_id, int pos) {
+ if (!contents()->IsActiveEntry(page_id))
+ return;
+
+ delegate_->LogIframeHover(pos);
+}
+
void InstantPage::OnDeleteMostVisitedItem(int page_id, const GURL& url) {
if (!contents()->IsActiveEntry(page_id))
return;

Powered by Google App Engine
This is Rietveld 408576698