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/gfx/native_theme_chromeos.h" | 5 #include "ui/gfx/native_theme_chromeos.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "grit/gfx_resources.h" | 9 #include "grit/gfx_resources.h" |
10 #include "third_party/skia/include/core/SkPaint.h" | 10 #include "third_party/skia/include/core/SkPaint.h" |
11 #include "third_party/skia/include/core/SkPath.h" | 11 #include "third_party/skia/include/core/SkPath.h" |
12 #include "third_party/skia/include/core/SkShader.h" | 12 #include "third_party/skia/include/core/SkShader.h" |
13 #include "third_party/skia/include/effects/SkGradientShader.h" | 13 #include "third_party/skia/include/effects/SkGradientShader.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/gfx/insets.h" | 15 #include "ui/gfx/insets.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/size.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 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 // Color constants. See theme_draw for details. | 23 // Color constants. See theme_draw for details. |
23 | 24 |
24 // Border color used for many widgets. | 25 // Border color used for many widgets. |
25 const SkColor kBaseStroke = SkColorSetRGB(0x8F, 0x8F, 0x8F); | 26 const SkColor kBaseStroke = SkColorSetRGB(0x8F, 0x8F, 0x8F); |
26 | 27 |
27 // Disabled border color used for many widgets. | 28 // Disabled border color used for many widgets. |
28 const SkColor kDisabledBaseStroke = SkColorSetRGB(0xB7, 0xB7, 0xB7); | 29 const SkColor kDisabledBaseStroke = SkColorSetRGB(0xB7, 0xB7, 0xB7); |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 | 831 |
831 if (stroke_border) { | 832 if (stroke_border) { |
832 SkPaint stroke_paint; | 833 SkPaint stroke_paint; |
833 GetStrokePaint(state, &stroke_paint); | 834 GetStrokePaint(state, &stroke_paint); |
834 canvas->drawPath(border, stroke_paint); | 835 canvas->drawPath(border, stroke_paint); |
835 } | 836 } |
836 } | 837 } |
837 | 838 |
838 } // namespace gfx | 839 } // namespace gfx |
839 | 840 |
OLD | NEW |