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

Side by Side Diff: chrome/renderer/searchbox/searchbox.cc

Issue 17526008: Log NTP hovers in 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed newline 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/searchbox/searchbox.h" 5 #include "chrome/renderer/searchbox/searchbox.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 void SearchBox::NavigateToURL(const GURL& url, 146 void SearchBox::NavigateToURL(const GURL& url,
147 content::PageTransition transition, 147 content::PageTransition transition,
148 WindowOpenDisposition disposition, 148 WindowOpenDisposition disposition,
149 bool is_search_type) { 149 bool is_search_type) {
150 render_view()->Send(new ChromeViewHostMsg_SearchBoxNavigate( 150 render_view()->Send(new ChromeViewHostMsg_SearchBoxNavigate(
151 render_view()->GetRoutingID(), render_view()->GetPageId(), 151 render_view()->GetRoutingID(), render_view()->GetPageId(),
152 url, transition, disposition, is_search_type)); 152 url, transition, disposition, is_search_type));
153 } 153 }
154 154
155 void SearchBox::LogIframeHover() {
156 render_view()->Send(new ChromeViewHostMsg_LogIframeHover(
157 render_view()->GetRoutingID(), render_view()->GetPageId()));
158 }
159
155 void SearchBox::DeleteMostVisitedItem( 160 void SearchBox::DeleteMostVisitedItem(
156 InstantRestrictedID most_visited_item_id) { 161 InstantRestrictedID most_visited_item_id) {
157 render_view()->Send(new ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem( 162 render_view()->Send(new ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem(
158 render_view()->GetRoutingID(), render_view()->GetPageId(), 163 render_view()->GetRoutingID(), render_view()->GetPageId(),
159 GetURLForMostVisitedItem(most_visited_item_id))); 164 GetURLForMostVisitedItem(most_visited_item_id)));
160 } 165 }
161 166
162 void SearchBox::UndoMostVisitedDeletion( 167 void SearchBox::UndoMostVisitedDeletion(
163 InstantRestrictedID most_visited_item_id) { 168 InstantRestrictedID most_visited_item_id) {
164 render_view()->Send(new ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion( 169 render_view()->Send(new ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion(
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 InstantMostVisitedItem item; 557 InstantMostVisitedItem item;
553 return GetMostVisitedItemWithID(item_id, &item) ? item.url : GURL(); 558 return GetMostVisitedItemWithID(item_id, &item) ? item.url : GURL();
554 } 559 }
555 560
556 void SearchBox::OnToggleVoiceSearch() { 561 void SearchBox::OnToggleVoiceSearch() {
557 if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) { 562 if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
558 extensions_v8::SearchBoxExtension::DispatchToggleVoiceSearch( 563 extensions_v8::SearchBoxExtension::DispatchToggleVoiceSearch(
559 render_view()->GetWebView()->mainFrame()); 564 render_view()->GetWebView()->mainFrame());
560 } 565 }
561 } 566 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698