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

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

Issue 2096003002: Fix crash when InkDropHostView::SetHasInkDrop() is called multiple times (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test 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
« no previous file with comments | « ui/views/animation/test/ink_drop_host_view_test_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..42b5116fb88af37315d9b9cd07999efdd7c25b66 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::SetHasInkDrop(bool has_an_ink_drop) {
+ host_view_->SetHasInkDrop(has_an_ink_drop);
+}
+
void InkDropHostViewTestApi::SetInkDrop(std::unique_ptr<InkDrop> ink_drop) {
host_view_->SetHasInkDrop(true);
host_view_->ink_drop_ = std::move(ink_drop);
}
+bool InkDropHostViewTestApi::HasGestureHandler() const {
+ return host_view_->gesture_handler_ != nullptr;
+}
+
gfx::Point InkDropHostViewTestApi::GetInkDropCenterBasedOnLastEvent() const {
return host_view_->GetInkDropCenterBasedOnLastEvent();
}
« no previous file with comments | « ui/views/animation/test/ink_drop_host_view_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698