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

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

Issue 2396133005: [ash-md] Animates ToggleButton highlight to move it in sync with the thumb (Closed)
Patch Set: Created 4 years, 2 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_view.h
diff --git a/ui/views/animation/ink_drop_host_view.h b/ui/views/animation/ink_drop_host_view.h
index 2f30b24b3b7e5eb6df158dcd839f7f634ede875e..0420588e6d5d5706ad3db64a9c3c83541034e2bc 100644
--- a/ui/views/animation/ink_drop_host_view.h
+++ b/ui/views/animation/ink_drop_host_view.h
@@ -34,6 +34,7 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override;
std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const override;
+ void OffsetInkDropRipple(const gfx::Vector2d& offset) override;
void set_ink_drop_size(const gfx::Size& size) { ink_drop_size_ = size; }
@@ -110,6 +111,9 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// destroyed |ink_drop_| during destruction.
std::unique_ptr<InkDropGestureHandler> gesture_handler_;
+ // Cached ink drop layer.
+ ui::Layer* ink_drop_layer_;
+
gfx::Size ink_drop_size_;
float ink_drop_visible_opacity_;

Powered by Google App Engine
This is Rietveld 408576698