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

Unified Diff: chrome/browser/ui/views/bookmark_bar_view.cc

Issue 6334152: Clean up RTL methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/bookmark_bar_view.cc
===================================================================
--- chrome/browser/ui/views/bookmark_bar_view.cc (revision 74080)
+++ chrome/browser/ui/views/bookmark_bar_view.cc (working copy)
@@ -507,7 +507,7 @@
y,
kDropIndicatorWidth,
h);
- indicator_bounds.set_x(MirroredLeftPointForRect(indicator_bounds));
+ indicator_bounds.set_x(GetMirroredXForRect(indicator_bounds));
// TODO(sky/glen): make me pretty!
canvas->FillRectInt(kDropIndicatorColor, indicator_bounds.x(),
@@ -777,7 +777,7 @@
if (loc.x() < 0 || loc.x() >= width() || loc.y() < 0 || loc.y() >= height())
return NULL;
- gfx::Point adjusted_loc(MirroredXCoordinateInsideView(loc.x()), loc.y());
+ gfx::Point adjusted_loc(GetMirroredXInView(loc.x()), loc.y());
// Check the buttons first.
for (int i = 0; i < GetBookmarkButtonCount(); ++i) {
@@ -1378,7 +1378,7 @@
// right-to-left on RTL locales). Thus, in order to make sure the drop
// coordinates calculation works, we mirror the event's X coordinate if the
// locale is RTL.
- int mirrored_x = MirroredXCoordinateInsideView(event.x());
+ int mirrored_x = GetMirroredXInView(event.x());
*index = -1;
*drop_on = false;

Powered by Google App Engine
This is Rietveld 408576698