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

Unified Diff: ui/views/animation/ink_drop_hover.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_hover.h
diff --git a/ui/views/animation/ink_drop_hover.h b/ui/views/animation/ink_drop_hover.h
index 462bbbec8461ebcfafc26a25c8afa70fd0b00189..629d57b3a744319376b04f5e75ead4defd2c570c 100644
--- a/ui/views/animation/ink_drop_hover.h
+++ b/ui/views/animation/ink_drop_hover.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
+#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/views_export.h"
@@ -24,7 +25,7 @@ class RoundedRectangleLayerDelegate;
// visual feedback on ui::Views for mouse hover states.
class VIEWS_EXPORT InkDropHover {
public:
- InkDropHover(const gfx::Size& size, int corner_radius);
+ InkDropHover(SkColor color, const gfx::Size& size, int corner_radius);
~InkDropHover();
// Returns true if the hover layer is visible.
@@ -39,6 +40,9 @@ class VIEWS_EXPORT InkDropHover {
// The root Layer that can be added in to a Layer tree.
ui::Layer* layer() { return layer_.get(); }
+ // Returns the color used to draw this hover effect.
+ SkColor GetColor() const;
+
// Sets the |center_point| of the hover layer relative to its parent Layer.
void SetCenterPoint(const gfx::Point& center_point);

Powered by Google App Engine
This is Rietveld 408576698