summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 17:48:40 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 17:48:40 +0000
commit405ed122f92ca9248de2a65103edba9b02471a9f (patch)
tree9d8cb957ff47ba6790107feec65acdfa592d9747 /chrome/common
parent296d61e24b5a5311f120a767a59ac006176f6f9a (diff)
downloadchromium_src-405ed122f92ca9248de2a65103edba9b02471a9f.zip
chromium_src-405ed122f92ca9248de2a65103edba9b02471a9f.tar.gz
chromium_src-405ed122f92ca9248de2a65103edba9b02471a9f.tar.bz2
Port some files in chrome/browser/
#ifdef out windows-specific portion of chrome/common/l10n_util.h, which allows me to port some other files. I also extracted parts of chrome/views/tree_view.h to tree_model.h, so that ATL/WTL-specific parts stay in tree_view.h, but tree_model.h is platform-independent and can be included in files using it as base class. Review URL: http://codereview.chromium.org/8618 Patch from Paweł Hajdan jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/l10n_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/l10n_util.h b/chrome/common/l10n_util.h
index 68d1f32..7631a1f 100644
--- a/chrome/common/l10n_util.h
+++ b/chrome/common/l10n_util.h
@@ -8,7 +8,11 @@
#ifndef CHROME_COMMON_L10N_UTIL_H_
#define CHROME_COMMON_L10N_UTIL_H_
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
#include <windows.h>
+#endif
#include <string>
#include <vector>
@@ -154,11 +158,13 @@ int GetExtendedTooltipStyles();
// ChromeCanvas::TEXT_ALIGN_RIGHT.
int DefaultCanvasTextAlignment();
+#if defined(OS_WIN)
// 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);
+#endif
// In place sorting of strings using collation rules for |locale|.
void SortStrings(const std::wstring& locale,