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

Unified Diff: views/controls/button/text_button.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
« no previous file with comments | « views/controls/button/menu_button.cc ('k') | views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/text_button.cc
===================================================================
--- views/controls/button/text_button.cc (revision 74080)
+++ views/controls/button/text_button.cc (working copy)
@@ -343,7 +343,7 @@
//
// Due to the above, we must perform the flipping manually for RTL UIs.
gfx::Rect text_bounds(text_x, text_y, text_width, text_size_.height());
- text_bounds.set_x(MirroredLeftPointForRect(text_bounds));
+ text_bounds.set_x(GetMirroredXForRect(text_bounds));
SkColor text_color = (show_multiple_icon_states_ &&
(state() == BS_HOT || state() == BS_PUSHED)) ? color_hover_ : color_;
@@ -391,7 +391,7 @@
// Mirroring the icon position if necessary.
gfx::Rect icon_bounds(icon_x, icon_y, icon.width(), icon.height());
- icon_bounds.set_x(MirroredLeftPointForRect(icon_bounds));
+ icon_bounds.set_x(GetMirroredXForRect(icon_bounds));
canvas->DrawBitmapInt(icon, icon_bounds.x(), icon_bounds.y());
}
}
« no previous file with comments | « views/controls/button/menu_button.cc ('k') | views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698