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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Revised patch with tests added 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/omnibox/omnibox_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
index 815bd8b6111fc445074fa47b5cfca765939c70d0..4ab95032cbd61ceb9c737621cbd96cef4a9cd1cd 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -502,7 +502,7 @@ void OmniboxPopupContentsView::OpenIndex(size_t index,
size_t OmniboxPopupContentsView::GetIndexForPoint(
const gfx::Point& point) {
- if (!HitTest(point))
+ if (!HitTestPoint(point))
return OmniboxPopupModel::kNoMatch;
int nb_match = model_->result().size();
@@ -511,7 +511,7 @@ size_t OmniboxPopupContentsView::GetIndexForPoint(
views::View* child = child_at(i);
gfx::Point point_in_child_coords(point);
View::ConvertPointToView(this, child, &point_in_child_coords);
- if (child->HitTest(point_in_child_coords))
+ if (child->HitTestPoint(point_in_child_coords))
return i;
}
return OmniboxPopupModel::kNoMatch;

Powered by Google App Engine
This is Rietveld 408576698