Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: ui/views/controls/button/md_text_button.cc

Issue 2032683003: Add ripples to md checkboxes/radio buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« ui/views/controls/button/checkbox.cc ('K') | « ui/views/controls/button/md_text_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698