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

Unified Diff: chrome/browser/views/wrench_menu.cc

Issue 3017033: Mirror wrench menu corner alignment in RTL mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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: chrome/browser/views/wrench_menu.cc
===================================================================
--- chrome/browser/views/wrench_menu.cc (revision 53545)
+++ chrome/browser/views/wrench_menu.cc (working copy)
@@ -563,7 +563,8 @@
gfx::Rect bounds(screen_loc.x(), screen_loc.y(), host->width(),
host->height() - 1);
root_->RunMenuAt(host->GetWindow()->GetNativeWindow(), host, bounds,
- MenuItemView::TOPRIGHT, true);
+ base::i18n::IsRTL() ? MenuItemView::TOPLEFT : MenuItemView::TOPRIGHT,
+ true);
if (selected_menu_model_)
selected_menu_model_->ActivatedAt(selected_index_);
}
« 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