diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 01:21:56 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 01:21:56 +0000 |
commit | 81514c583f3c281ddbb72d13a021bfed58f7e3c7 (patch) | |
tree | beab789f1dbb7629c8bbf95acb27ba224bb35650 /chrome/views/background.cc | |
parent | 0999c45abbe8d57f1c62c65f91459881a4af321a (diff) | |
download | chromium_src-81514c583f3c281ddbb72d13a021bfed58f7e3c7.zip chromium_src-81514c583f3c281ddbb72d13a021bfed58f7e3c7.tar.gz chromium_src-81514c583f3c281ddbb72d13a021bfed58f7e3c7.tar.bz2 |
Add #ifdefs to the views/ code and move windows specific code into their own files to get some files compiling.
Review URL: http://codereview.chromium.org/18136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/background.cc')
-rw-r--r-- | chrome/views/background.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/views/background.cc b/chrome/views/background.cc index 1aa631e..056e511 100644 --- a/chrome/views/background.cc +++ b/chrome/views/background.cc @@ -59,16 +59,24 @@ class BackgroundPainter : public Background { DISALLOW_EVIL_CONSTRUCTORS(BackgroundPainter); }; -Background::Background() : native_control_brush_(NULL) { +Background::Background() +#if defined(OS_WIN) + : native_control_brush_(NULL) +#endif +{ } Background::~Background() { +#if defined(OS_WIN) DeleteObject(native_control_brush_); +#endif } void Background::SetNativeControlColor(SkColor color) { +#if defined(OS_WIN) DeleteObject(native_control_brush_); native_control_brush_ = CreateSolidBrush(skia::SkColorToCOLORREF(color)); +#endif } //static |