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

Unified Diff: ui/views/controls/button/md_text_button.cc

Issue 2833133003: views: disable ink drops altogether on Mac (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/button/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index 9e9e780ac00a6f6ac199c18ea9678fa9da2351c9..f208999f89d101dc32c25c892c5dacaaee855e11 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -188,8 +188,7 @@ void MdTextButton::SetFontList(const gfx::FontList& font_list) {
MdTextButton::MdTextButton(ButtonListener* listener)
: LabelButton(listener, base::string16()),
is_prominent_(false) {
- SetInkDropMode(PlatformStyle::kUseRipples ? InkDropMode::ON
- : InkDropMode::OFF);
+ SetInkDropMode(InkDropMode::ON);
set_has_ink_drop_action_on_click(true);
SetHorizontalAlignment(gfx::ALIGN_CENTER);
SetFocusForPlatform();
« ui/views/animation/ink_drop_host_view.cc ('K') | « ui/views/controls/button/checkbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698