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

Unified Diff: chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed errors reported by trybots Created 8 years, 4 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/views/location_bar/chrome_to_mobile_view.cc
diff --git a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc
index ebd5b4be425b3d3fdfcfe1e40e1faabc563e0712..a587352519183c0497834d59901cfe1a80be92f2 100644
--- a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc
+++ b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc
@@ -68,7 +68,7 @@ bool ChromeToMobileView::OnMousePressed(const views::MouseEvent& event) {
}
void ChromeToMobileView::OnMouseReleased(const views::MouseEvent& event) {
- if (event.IsOnlyLeftMouseButton() && HitTest(event.location()))
+ if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location()))
command_updater_->ExecuteCommand(IDC_CHROME_TO_MOBILE_PAGE);
}

Powered by Google App Engine
This is Rietveld 408576698