| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #include "chrome/common/l10n_util.h" | 5 #include "chrome/common/l10n_util.h" |
| 2 #include "chrome/common/l10n_util_win.h" | 6 #include "chrome/common/l10n_util_win.h" |
| 3 | 7 |
| 4 namespace l10n_util { | 8 namespace l10n_util { |
| 5 | 9 |
| 6 int GetExtendedStyles() { | 10 int GetExtendedStyles() { |
| 7 return GetTextDirection() == LEFT_TO_RIGHT ? 0 : | 11 return GetTextDirection() == LEFT_TO_RIGHT ? 0 : |
| 8 WS_EX_LAYOUTRTL | WS_EX_RTLREADING; | 12 WS_EX_LAYOUTRTL | WS_EX_RTLREADING; |
| 9 } | 13 } |
| 10 | 14 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 26 |
| 23 // Right-to-left layout changes are not applied to the window immediately | 27 // Right-to-left layout changes are not applied to the window immediately |
| 24 // so we should make sure a WM_PAINT is sent to the window by invalidating | 28 // so we should make sure a WM_PAINT is sent to the window by invalidating |
| 25 // the entire window rect. | 29 // the entire window rect. |
| 26 ::InvalidateRect(hwnd, NULL, true); | 30 ::InvalidateRect(hwnd, NULL, true); |
| 27 } | 31 } |
| 28 } | 32 } |
| 29 | 33 |
| 30 } // namespace l10n_util | 34 } // namespace l10n_util |
| 31 | 35 |
| OLD | NEW |