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

Unified Diff: ash/touch/touch_hud_projection.cc

Issue 19271002: Fix projection touch HUD in RTL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied reviews Created 7 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_hud_projection.cc
diff --git a/ash/touch/touch_hud_projection.cc b/ash/touch/touch_hud_projection.cc
index 3a834a57eceb6f0598d706021e11be7f8ec4b75a..00d619336efb958aacf55143aea3256aa9fffc35 100644
--- a/ash/touch/touch_hud_projection.cc
+++ b/ash/touch/touch_hud_projection.cc
@@ -63,7 +63,8 @@ class TouchPointView : public views::View,
this));
fadeout_->Start();
} else {
- SetX(touch.root_location().x() - kPointRadius - 1);
+ SetX(parent()->GetMirroredXInView(touch.root_location().x()) -
+ kPointRadius - 1);
SetY(touch.root_location().y() - kPointRadius - 1);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698