OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/background.h" | 5 #include "ui/views/background.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" |
8 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
9 #include "ui/gfx/color_utils.h" | 11 #include "ui/gfx/color_utils.h" |
10 #include "ui/views/painter.h" | 12 #include "ui/views/painter.h" |
11 #include "ui/views/view.h" | 13 #include "ui/views/view.h" |
12 | 14 |
13 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
14 #include "skia/ext/skia_utils_win.h" | 16 #include "skia/ext/skia_utils_win.h" |
15 #endif | 17 #endif |
16 | 18 |
17 namespace views { | 19 namespace views { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return background; | 124 return background; |
123 } | 125 } |
124 | 126 |
125 // static | 127 // static |
126 Background* Background::CreateBackgroundPainter(bool owns_painter, | 128 Background* Background::CreateBackgroundPainter(bool owns_painter, |
127 Painter* painter) { | 129 Painter* painter) { |
128 return new BackgroundPainter(owns_painter, painter); | 130 return new BackgroundPainter(owns_painter, painter); |
129 } | 131 } |
130 | 132 |
131 } // namespace views | 133 } // namespace views |
OLD | NEW |