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

Unified Diff: chrome/browser/external_tab_container.cc

Issue 122027: Remove the Menu object, converting all the remaining callers to use Menu2. I'... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/external_tab_container.cc
===================================================================
--- chrome/browser/external_tab_container.cc (revision 18306)
+++ chrome/browser/external_tab_container.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/external_tab_container.h"
+#include "app/l10n_util.h"
#include "app/win_util.h"
#include "base/logging.h"
#include "base/win_util.h"
@@ -268,17 +269,17 @@
external_context_menu_.reset(
new RenderViewContextMenuExternalWin(tab_contents(),
params,
- GetNativeView(),
disabled_context_menu_ids_));
external_context_menu_->Init();
POINT screen_pt = { params.x, params.y };
MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1);
+ bool rtl = l10n_util::TextDirection() == l10n_util::RIGHT_TO_LEFT;
automation_->Send(
new AutomationMsg_ForwardContextMenuToExternalHost(0, tab_handle_,
external_context_menu_->GetMenuHandle(), screen_pt.x, screen_pt.y,
- external_context_menu_->GetTPMAlignFlags()));
+ rtl ? TPM_RIGHTALIGN : TPM_LEFTALIGN));
return true;
}
« no previous file with comments | « chrome/browser/autocomplete/search_provider.cc ('k') | chrome/browser/tab_contents/render_view_context_menu_external_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698