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

Unified Diff: ui/views/animation/test/ink_drop_host_view_test_api.cc

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Addressed review comments Created 4 years, 6 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/test/ink_drop_host_view_test_api.cc
diff --git a/ui/views/animation/test/ink_drop_host_view_test_api.cc b/ui/views/animation/test/ink_drop_host_view_test_api.cc
index 957ec2091fd908aee7a4bbece3022c5a73a0430e..b9eb230110fdbddcbbd0693ebb51c56689376727 100644
--- a/ui/views/animation/test/ink_drop_host_view_test_api.cc
+++ b/ui/views/animation/test/ink_drop_host_view_test_api.cc
@@ -12,11 +12,19 @@ InkDropHostViewTestApi::InkDropHostViewTestApi(InkDropHostView* host_view)
InkDropHostViewTestApi::~InkDropHostViewTestApi() {}
-void InkDropHostViewTestApi::SetInkDrop(std::unique_ptr<InkDrop> ink_drop) {
- host_view_->SetHasInkDrop(true);
+void InkDropHostViewTestApi::SetInkDrop(std::unique_ptr<InkDrop> ink_drop,
+ bool handles_gesture_events) {
+ host_view_->SetHasInkDrop(
+ handles_gesture_events
+ ? InkDropHostView::INK_DROP_WITH_GESTURE_HANDLING
+ : InkDropHostView::INK_DROP_WITHOUT_GESTURE_HANDLING);
host_view_->ink_drop_ = std::move(ink_drop);
}
+void InkDropHostViewTestApi::SetInkDrop(std::unique_ptr<InkDrop> ink_drop) {
+ SetInkDrop(std::move(ink_drop), true);
+}
+
gfx::Point InkDropHostViewTestApi::GetInkDropCenterBasedOnLastEvent() const {
return host_view_->GetInkDropCenterBasedOnLastEvent();
}

Powered by Google App Engine
This is Rietveld 408576698