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/controls/progress_bar.h" | 5 #include "ui/views/controls/progress_bar.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "third_party/skia/include/core/SkPaint.h" | 13 #include "third_party/skia/include/core/SkPaint.h" |
14 #include "third_party/skia/include/core/SkPath.h" | 14 #include "third_party/skia/include/core/SkPath.h" |
15 #include "third_party/skia/include/core/SkXfermode.h" | |
16 #include "third_party/skia/include/effects/SkGradientShader.h" | 15 #include "third_party/skia/include/effects/SkGradientShader.h" |
17 #include "ui/accessibility/ax_node_data.h" | 16 #include "ui/accessibility/ax_node_data.h" |
18 #include "ui/gfx/animation/linear_animation.h" | 17 #include "ui/gfx/animation/linear_animation.h" |
19 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
20 #include "ui/gfx/color_utils.h" | 19 #include "ui/gfx/color_utils.h" |
21 #include "ui/native_theme/native_theme.h" | 20 #include "ui/native_theme/native_theme.h" |
22 | 21 |
23 namespace views { | 22 namespace views { |
24 | 23 |
25 namespace { | 24 namespace { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 AddPossiblyRoundRectToPath(slice_bounds, &slice_path); | 198 AddPossiblyRoundRectToPath(slice_bounds, &slice_path); |
200 | 199 |
201 SkPaint slice_paint; | 200 SkPaint slice_paint; |
202 slice_paint.setStyle(SkPaint::kFill_Style); | 201 slice_paint.setStyle(SkPaint::kFill_Style); |
203 slice_paint.setFlags(SkPaint::kAntiAlias_Flag); | 202 slice_paint.setFlags(SkPaint::kAntiAlias_Flag); |
204 slice_paint.setColor(GetForegroundColor()); | 203 slice_paint.setColor(GetForegroundColor()); |
205 canvas->DrawPath(slice_path, slice_paint); | 204 canvas->DrawPath(slice_path, slice_paint); |
206 } | 205 } |
207 | 206 |
208 } // namespace views | 207 } // namespace views |
OLD | NEW |