diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 01:36:03 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 01:36:03 +0000 |
commit | e044f8df992fcb9f289b98115d0722dcd8cea103 (patch) | |
tree | 6844ce69dfaf4cbdfe0e540e6647ef60b3c22451 /chrome/views/background.cc | |
parent | 81514c583f3c281ddbb72d13a021bfed58f7e3c7 (diff) | |
download | chromium_src-e044f8df992fcb9f289b98115d0722dcd8cea103.zip chromium_src-e044f8df992fcb9f289b98115d0722dcd8cea103.tar.gz chromium_src-e044f8df992fcb9f289b98115d0722dcd8cea103.tar.bz2 |
Revert "Add #ifdefs to the views/ code and move windows specific code
into their own files to get some files compiling."
Conflicts with something that went in in the interim...
Review URL: http://codereview.chromium.org/18187
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/background.cc')
-rw-r--r-- | chrome/views/background.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/chrome/views/background.cc b/chrome/views/background.cc index 056e511..1aa631e 100644 --- a/chrome/views/background.cc +++ b/chrome/views/background.cc @@ -59,24 +59,16 @@ class BackgroundPainter : public Background { DISALLOW_EVIL_CONSTRUCTORS(BackgroundPainter); }; -Background::Background() -#if defined(OS_WIN) - : native_control_brush_(NULL) -#endif -{ +Background::Background() : native_control_brush_(NULL) { } 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 |