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

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

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
Index: ui/views/animation/test/ink_drop_host_view_test_api.h
diff --git a/ui/views/animation/test/ink_drop_host_view_test_api.h b/ui/views/animation/test/ink_drop_host_view_test_api.h
index 2bbb820e84a689dd8f66c2f656354b7d90c9610d..9ec2f53bf5b9a92aa611f7c2799bfec332394275 100644
--- a/ui/views/animation/test/ink_drop_host_view_test_api.h
+++ b/ui/views/animation/test/ink_drop_host_view_test_api.h
@@ -21,9 +21,13 @@ class InkDropHostViewTestApi {
explicit InkDropHostViewTestApi(InkDropHostView* host_view);
~InkDropHostViewTestApi();
+ void SetHasInkDrop(bool has_an_ink_drop);
+
void SetInkDrop(std::unique_ptr<InkDrop> ink_drop);
InkDrop* ink_drop() { return host_view_->ink_drop(); }
+ bool HasGestureHandler() const;
+
// Wrapper for InkDropHostView::GetInkDropCenterBasedOnLastEvent().
gfx::Point GetInkDropCenterBasedOnLastEvent() const;
« no previous file with comments | « ui/views/animation/ink_drop_host_view_unittest.cc ('k') | ui/views/animation/test/ink_drop_host_view_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698