| 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 "base/memory/ptr_util.h" |
| 8 #include "ui/base/material_design/material_design_controller.h" | 9 #include "ui/base/material_design/material_design_controller.h" |
| 9 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| 10 #include "ui/gfx/color_palette.h" | 11 #include "ui/gfx/color_palette.h" |
| 11 #include "ui/gfx/color_utils.h" | 12 #include "ui/gfx/color_utils.h" |
| 12 #include "ui/native_theme/native_theme.h" | 13 #include "ui/native_theme/native_theme.h" |
| 13 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" | 14 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" |
| 14 #include "ui/views/animation/ink_drop_highlight.h" | 15 #include "ui/views/animation/ink_drop_highlight.h" |
| 15 #include "ui/views/animation/ink_drop_impl.h" | 16 #include "ui/views/animation/ink_drop_impl.h" |
| 16 #include "ui/views/animation/ink_drop_painted_layer_delegates.h" | 17 #include "ui/views/animation/ink_drop_painted_layer_delegates.h" |
| 17 #include "ui/views/background.h" | 18 #include "ui/views/background.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 stroke_color, gfx::kDisabledControlAlpha); | 294 stroke_color, gfx::kDisabledControlAlpha); |
| 294 } | 295 } |
| 295 | 296 |
| 296 DCHECK_EQ(SK_AlphaOPAQUE, static_cast<int>(SkColorGetA(bg_color))); | 297 DCHECK_EQ(SK_AlphaOPAQUE, static_cast<int>(SkColorGetA(bg_color))); |
| 297 set_background(Background::CreateBackgroundPainter( | 298 set_background(Background::CreateBackgroundPainter( |
| 298 true, Painter::CreateRoundRectWith1PxBorderPainter( | 299 true, Painter::CreateRoundRectWith1PxBorderPainter( |
| 299 bg_color, stroke_color, kInkDropSmallCornerRadius))); | 300 bg_color, stroke_color, kInkDropSmallCornerRadius))); |
| 300 } | 301 } |
| 301 | 302 |
| 302 } // namespace views | 303 } // namespace views |
| OLD | NEW |