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

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

Issue 1724963002: Color the ink drop ripple and hover effects based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky review 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
« no previous file with comments | « ui/views/animation/ink_drop_host_view.cc ('k') | ui/views/animation/ink_drop_hover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 33736695d2864f2f46362657371c1df9f64393d2..00ed198be34f32297592b20b59532f54d49774d2 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,10 @@ 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(const gfx::Size& size,
+ int corner_radius,
+ const gfx::Point& center_point,
+ SkColor color);
~InkDropHover();
// Returns true if the hover animation is either in the process of fading
@@ -40,9 +44,6 @@ class VIEWS_EXPORT InkDropHover {
// The root Layer that can be added in to a Layer tree.
ui::Layer* layer() { return layer_.get(); }
- // Sets the |center_point| of the hover layer relative to its parent Layer.
- void SetCenterPoint(const gfx::Point& center_point);
-
private:
enum HoverAnimationType { FADE_IN, FADE_OUT };
« no previous file with comments | « ui/views/animation/ink_drop_host_view.cc ('k') | ui/views/animation/ink_drop_hover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698