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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.cc

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/chromeos/input_method/candidate_window.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
index 6dce7ecebf2e6fca96ee41f94f4d8ea2f68f2a4a..3fb3c07db58113bb304213b6c3e86df86eb08f4b 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1185,7 +1185,8 @@ void CandidateWindowView::OnCandidatePressed(
gfx::Point converted_location = location;
views::View::ConvertPointToView(this, candidate_views_[i],
&converted_location);
- if (candidate_views_[i]->HitTest(converted_location)) {
+ if (candidate_views_[i]->HitTest(gfx::Rect(converted_location,
+ gfx::Size(0, 0)))) {
SelectCandidateAt(i);
break;
}

Powered by Google App Engine
This is Rietveld 408576698