OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/button/md_text_button.h" | 5 #include "ui/views/controls/button/md_text_button.h" |
6 | 6 |
7 #include "base/i18n/case_conversion.h" | 7 #include "base/i18n/case_conversion.h" |
8 #include "ui/base/material_design/material_design_controller.h" | 8 #include "ui/base/material_design/material_design_controller.h" |
9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
10 #include "ui/gfx/color_utils.h" | 10 #include "ui/gfx/color_utils.h" |
11 #include "ui/native_theme/native_theme.h" | 11 #include "ui/native_theme/native_theme.h" |
| 12 #include "ui/views/animation/button_ink_drop_delegate.h" |
12 #include "ui/views/background.h" | 13 #include "ui/views/background.h" |
13 #include "ui/views/border.h" | 14 #include "ui/views/border.h" |
14 #include "ui/views/controls/button/blue_button.h" | 15 #include "ui/views/controls/button/blue_button.h" |
15 #include "ui/views/painter.h" | 16 #include "ui/views/painter.h" |
16 | 17 |
17 namespace views { | 18 namespace views { |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 // The amount to enlarge the focus border in all directions relative to the | 22 // The amount to enlarge the focus border in all directions relative to the |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 cta_ == STRONG_CALL_TO_ACTION | 215 cta_ == STRONG_CALL_TO_ACTION |
215 ? Background::CreateBackgroundPainter( | 216 ? Background::CreateBackgroundPainter( |
216 true, Painter::CreateSolidRoundRectPainter( | 217 true, Painter::CreateSolidRoundRectPainter( |
217 theme->GetSystemColor( | 218 theme->GetSystemColor( |
218 ui::NativeTheme::kColorId_CallToActionColor), | 219 ui::NativeTheme::kColorId_CallToActionColor), |
219 kInkDropSmallCornerRadius)) | 220 kInkDropSmallCornerRadius)) |
220 : nullptr); | 221 : nullptr); |
221 } | 222 } |
222 | 223 |
223 } // namespace views | 224 } // namespace views |
OLD | NEW |