OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "views/controls/progress_bar.h" | 5 #include "views/controls/progress_bar.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/gfx/font.h" | |
11 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
12 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
13 #include "base/logging.h" | 11 #include "base/logging.h" |
14 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "gfx/canvas.h" |
15 #include "gfx/color_utils.h" | 14 #include "gfx/color_utils.h" |
| 15 #include "gfx/font.h" |
16 #include "gfx/insets.h" | 16 #include "gfx/insets.h" |
17 #include "third_party/skia/include/effects/SkGradientShader.h" | 17 #include "third_party/skia/include/effects/SkGradientShader.h" |
18 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" | 18 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" |
19 #include "views/background.h" | 19 #include "views/background.h" |
20 #include "views/border.h" | 20 #include "views/border.h" |
21 #include "views/painter.h" | 21 #include "views/painter.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Corner radius for the progress bar's border. | 25 // Corner radius for the progress bar's border. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return false; | 211 return false; |
212 *state = AccessibilityTypes::STATE_READONLY; | 212 *state = AccessibilityTypes::STATE_READONLY; |
213 return true; | 213 return true; |
214 } | 214 } |
215 | 215 |
216 void ProgressBar::SetAccessibleName(const std::wstring& name) { | 216 void ProgressBar::SetAccessibleName(const std::wstring& name) { |
217 accessible_name_.assign(name); | 217 accessible_name_.assign(name); |
218 } | 218 } |
219 | 219 |
220 } // namespace views | 220 } // namespace views |
OLD | NEW |