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(); |
} |