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/native_theme/native_theme_aura.h" | 5 #include "ui/native_theme/native_theme_aura.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/base/layout.h" | 10 #include "ui/base/layout.h" |
11 #include "ui/base/nine_image_painter_factory.h" | 11 #include "ui/base/nine_image_painter_factory.h" |
12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/geometry/size.h" |
14 #include "ui/gfx/image/image_skia.h" | 15 #include "ui/gfx/image/image_skia.h" |
15 #include "ui/gfx/nine_image_painter.h" | 16 #include "ui/gfx/nine_image_painter.h" |
16 #include "ui/gfx/path.h" | 17 #include "ui/gfx/path.h" |
17 #include "ui/gfx/size.h" | |
18 #include "ui/gfx/skbitmap_operations.h" | 18 #include "ui/gfx/skbitmap_operations.h" |
19 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
20 #include "ui/native_theme/common_theme.h" | 20 #include "ui/native_theme/common_theme.h" |
21 #include "ui/native_theme/native_theme_switches.h" | 21 #include "ui/native_theme/native_theme_switches.h" |
22 #include "ui/resources/grit/ui_resources.h" | 22 #include "ui/resources/grit/ui_resources.h" |
23 | 23 |
24 using gfx::NineImagePainter; | 24 using gfx::NineImagePainter; |
25 | 25 |
26 #define EMPTY_IMAGE_GRID { 0, 0, 0, 0, 0, 0, 0, 0, 0 } | 26 #define EMPTY_IMAGE_GRID { 0, 0, 0, 0, 0, 0, 0, 0, 0 } |
27 | 27 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 scoped_ptr<NineImagePainter> stroke_painter, | 320 scoped_ptr<NineImagePainter> stroke_painter, |
321 const uint8 stroke_alphas[kNumStates]) | 321 const uint8 stroke_alphas[kNumStates]) |
322 : fill_painter(fill_painter.Pass()), | 322 : fill_painter(fill_painter.Pass()), |
323 fill_alphas(fill_alphas), | 323 fill_alphas(fill_alphas), |
324 stroke_painter(stroke_painter.Pass()), | 324 stroke_painter(stroke_painter.Pass()), |
325 stroke_alphas(stroke_alphas) {} | 325 stroke_alphas(stroke_alphas) {} |
326 | 326 |
327 NativeThemeAura::DualPainter::~DualPainter() {} | 327 NativeThemeAura::DualPainter::~DualPainter() {} |
328 | 328 |
329 } // namespace ui | 329 } // namespace ui |
OLD | NEW |