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

Unified Diff: ui/views/animation/ink_drop_host.h

Issue 1682893002: Color the ink drop ripple and hover effects based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit tests Created 4 years, 10 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/animation/ink_drop_host.h
diff --git a/ui/views/animation/ink_drop_host.h b/ui/views/animation/ink_drop_host.h
index ab9f165080d75ee0fd8cd1ab8e714484a655efb6..956a624c2bb194f7a408c301ac45c6e874112ada 100644
--- a/ui/views/animation/ink_drop_host.h
+++ b/ui/views/animation/ink_drop_host.h
@@ -6,6 +6,7 @@
#define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
#include "base/macros.h"
+#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/views_export.h"
@@ -39,6 +40,10 @@ class VIEWS_EXPORT InkDropHost {
// Returns true if the InkDropHover should be shown.
virtual bool ShouldShowInkDropHover() const = 0;
+ // Returns the color to be used to draw the press and hover effects (before an
+ // alpha is applied).
+ virtual SkColor GetInkDropBaseColor() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(InkDropHost);
};

Powered by Google App Engine
This is Rietveld 408576698