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 #ifndef CHROME_COMMON_L10N_UTIL_WIN_H_ | 5 #ifndef CHROME_COMMON_L10N_UTIL_WIN_H_ |
2 #define CHROME_COMMON_L10N_UTIL_WIN_H_ | 6 #define CHROME_COMMON_L10N_UTIL_WIN_H_ |
3 | 7 |
4 #include <windows.h> | 8 #include <windows.h> |
5 | 9 |
6 namespace l10n_util { | 10 namespace l10n_util { |
7 | 11 |
8 // Returns the locale-dependent extended window styles. | 12 // Returns the locale-dependent extended window styles. |
9 // This function is used for adding locale-dependent extended window styles | 13 // This function is used for adding locale-dependent extended window styles |
10 // (e.g. WS_EX_LAYOUTRTL, WS_EX_RTLREADING, etc.) when creating a window. | 14 // (e.g. WS_EX_LAYOUTRTL, WS_EX_RTLREADING, etc.) when creating a window. |
11 // Callers should OR this value into their extended style value when creating | 15 // Callers should OR this value into their extended style value when creating |
12 // a window. | 16 // a window. |
13 int GetExtendedStyles(); | 17 int GetExtendedStyles(); |
14 | 18 |
15 // TODO(xji): | 19 // TODO(xji): |
16 // This is a temporary name, it will eventually replace GetExtendedStyles | 20 // This is a temporary name, it will eventually replace GetExtendedStyles |
17 int GetExtendedTooltipStyles(); | 21 int GetExtendedTooltipStyles(); |
18 | 22 |
19 // Give an HWND, this function sets the WS_EX_LAYOUTRTL extended style for the | 23 // Give an HWND, this function sets the WS_EX_LAYOUTRTL extended style for the |
20 // underlying window. When this style is set, the UI for the window is going to | 24 // underlying window. When this style is set, the UI for the window is going to |
21 // be mirrored. This is generally done for the UI of right-to-left languages | 25 // be mirrored. This is generally done for the UI of right-to-left languages |
22 // such as Hebrew. | 26 // such as Hebrew. |
23 void HWNDSetRTLLayout(HWND hwnd); | 27 void HWNDSetRTLLayout(HWND hwnd); |
24 | 28 |
25 } // namespace l10n_util | 29 } // namespace l10n_util |
26 | 30 |
27 #endif // CHROME_COMMON_L10N_UTIL_WIN_H_ | 31 #endif // CHROME_COMMON_L10N_UTIL_WIN_H_ |
28 | 32 |
OLD | NEW |