| 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 a35d44fabfd12e9b26798bf12c2d683cb35f2479..b3cd73179e6ad48f5a776443bbb5167265a517f0 100644
|
| --- a/chrome/browser/ui/search/instant_page.cc
|
| +++ b/chrome/browser/ui/search/instant_page.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/search/search.h"
|
| #include "chrome/browser/ui/search/instant_ipc_sender.h"
|
| +#include "chrome/browser/ui/search/instant_ntp.h"
|
| #include "chrome/browser/ui/search/search_model.h"
|
| #include "chrome/browser/ui/search/search_tab_helper.h"
|
| #include "chrome/common/render_messages.h"
|
| @@ -143,6 +144,7 @@ bool InstantPage::OnMessageReceived(const IPC::Message& message) {
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FocusOmnibox, OnFocusOmnibox)
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate,
|
| OnSearchBoxNavigate);
|
| + IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CountMouseover, OnCountMouseover);
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
|
| OnDeleteMostVisitedItem);
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
|
| @@ -258,6 +260,13 @@ void InstantPage::OnSearchBoxNavigate(int page_id,
|
| contents(), url, transition, disposition, is_search_type);
|
| }
|
|
|
| +void InstantPage::OnCountMouseover(int page_id) {
|
| + if (!contents()->IsActiveEntry(page_id))
|
| + return;
|
| +
|
| + InstantNTP::CountMouseover(contents());
|
| +}
|
| +
|
| void InstantPage::OnDeleteMostVisitedItem(int page_id, const GURL& url) {
|
| if (!contents()->IsActiveEntry(page_id))
|
| return;
|
|
|