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

Unified Diff: ui/views/style/platform_style.h

Issue 2270933002: Harmony: disable ripples on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use pressed color for buttons on mac Created 4 years, 4 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/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index 16d10b266fb9a23886e85fc5412952f2d1a5e4d9..dadf7a34d712e7ec085846712525fab48ce613cc 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -53,6 +53,9 @@ class VIEWS_EXPORT PlatformStyle {
// label for that row.
static const bool kTreeViewSelectionPaintsEntireRow;
+ // Whether ripples should be used for visual feedback on control activation.
+ static const bool kUseRipples;
sky 2016/08/25 23:44:50 Is there a reason you're going with the more gener
Elly Fong-Jones 2016/08/26 15:46:44 In principle, there could be other kinds of ripple
+
// Creates an ImageSkia containing the image to use for the combobox arrow.
// The |is_enabled| argument is true if the control the arrow is for is
// enabled, and false if the control is disabled. The |style| argument is the
@@ -85,6 +88,11 @@ class VIEWS_EXPORT PlatformStyle {
static void ApplyLabelButtonTextStyle(Label* label,
ButtonColorByState* color_by_state);
+ // Returns the background color that should be used for an MdTextButton or
+ // other MD controls when in the given state.
+ static SkColor BackgroundColorForMdButton(SkColor color,
+ Button::ButtonState state);
+
// Applies the current system theme to the default border created by |button|.
static std::unique_ptr<Border> CreateThemedLabelButtonBorder(
LabelButton* button);

Powered by Google App Engine
This is Rietveld 408576698