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

Unified Diff: chrome/views/native_control.cc

Issue 18076: request review: fix issue 2821 and 6132 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « chrome/views/native_control.h ('k') | chrome/views/table_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/native_control.cc
===================================================================
--- chrome/views/native_control.cc (revision 8587)
+++ chrome/views/native_control.cc (working copy)
@@ -340,6 +340,17 @@
return ex_style;
}
+DWORD NativeControl::GetAdditionalRTLStyle() const {
+ // If the UI for the view is mirrored, we should make sure we add the
+ // extended window style for a right-to-left layout so the subclass creates
+ // a mirrored HWND for the underlying control.
+ DWORD ex_style = 0;
+ if (UILayoutIsRightToLeft())
+ ex_style |= l10n_util::GetExtendedTooltipStyles();
+
+ return ex_style;
+}
+
// static
LRESULT CALLBACK NativeControl::NativeControlWndProc(HWND window, UINT message,
WPARAM w_param,
« no previous file with comments | « chrome/views/native_control.h ('k') | chrome/views/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698