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

Unified Diff: views/controls/menu/menu_item_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
« no previous file with comments | « views/controls/button/text_button.cc ('k') | views/controls/menu/menu_item_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_item_view.cc
===================================================================
--- views/controls/menu/menu_item_view.cc (revision 74080)
+++ views/controls/menu/menu_item_view.cc (working copy)
@@ -610,7 +610,7 @@
}
void MenuItemView::AdjustBoundsForRTLUI(gfx::Rect* rect) const {
- rect->set_x(MirroredLeftPointForRect(*rect));
+ rect->set_x(GetMirroredXForRect(*rect));
}
void MenuItemView::PaintAccelerator(gfx::Canvas* canvas) {
@@ -624,7 +624,7 @@
parent_menu_item_->GetSubmenu()->max_accelerator_width();
gfx::Rect accel_bounds(width() - item_right_margin_ - max_accel_width,
GetTopMargin(), max_accel_width, available_height);
- accel_bounds.set_x(MirroredLeftPointForRect(accel_bounds));
+ accel_bounds.set_x(GetMirroredXForRect(accel_bounds));
int flags = GetRootMenuItem()->GetDrawStringFlags() |
gfx::Canvas::TEXT_VALIGN_MIDDLE;
flags &= ~(gfx::Canvas::TEXT_ALIGN_RIGHT | gfx::Canvas::TEXT_ALIGN_LEFT);
« no previous file with comments | « views/controls/button/text_button.cc ('k') | views/controls/menu/menu_item_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698