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

Unified Diff: ash/ime/candidate_view.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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: ash/ime/candidate_view.cc
diff --git a/ash/ime/candidate_view.cc b/ash/ime/candidate_view.cc
index 4071071255427cd0160e57c5d4e7ee5a6c52364f..cfd85cb94a86a91dddb491eaef9dec59fb9b57f6 100644
--- a/ash/ime/candidate_view.cc
+++ b/ash/ime/candidate_view.cc
@@ -226,9 +226,9 @@ void CandidateView::StateChanged() {
}
bool CandidateView::OnMouseDragged(const ui::MouseEvent& event) {
- if (!HitTestPoint(event.location())) {
+ if (!HitTestPoint(gfx::ToFlooredPoint(event.location()))) {
// Moves the drag target to the sibling view.
- gfx::Point location_in_widget(event.location());
+ gfx::Point location_in_widget(gfx::ToFlooredPoint(event.location()));
ConvertPointToWidget(this, &location_in_widget);
for (int i = 0; i < parent()->child_count(); ++i) {
CandidateView* sibling =

Powered by Google App Engine
This is Rietveld 408576698