summaryrefslogtreecommitdiffstats
path: root/chrome/common/l10n_util_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/l10n_util_win.h')
-rw-r--r--chrome/common/l10n_util_win.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/common/l10n_util_win.h b/chrome/common/l10n_util_win.h
new file mode 100644
index 0000000..733cc2b
--- /dev/null
+++ b/chrome/common/l10n_util_win.h
@@ -0,0 +1,28 @@
+#ifndef CHROME_COMMON_L10N_UTIL_WIN_H_
+#define CHROME_COMMON_L10N_UTIL_WIN_H_
+
+#include <windows.h>
+
+namespace l10n_util {
+
+// Returns the locale-dependent extended window styles.
+// This function is used for adding locale-dependent extended window styles
+// (e.g. WS_EX_LAYOUTRTL, WS_EX_RTLREADING, etc.) when creating a window.
+// Callers should OR this value into their extended style value when creating
+// a window.
+int GetExtendedStyles();
+
+// TODO(xji):
+// This is a temporary name, it will eventually replace GetExtendedStyles
+int GetExtendedTooltipStyles();
+
+// Give an HWND, this function sets the WS_EX_LAYOUTRTL extended style for the
+// underlying window. When this style is set, the UI for the window is going to
+// be mirrored. This is generally done for the UI of right-to-left languages
+// such as Hebrew.
+void HWNDSetRTLLayout(HWND hwnd);
+
+} // namespace l10n_util
+
+#endif // CHROME_COMMON_L10N_UTIL_WIN_H_
+