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

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

Issue 2017833003: Fixes ink drop being "stuck" on when losing focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some left-over crufty code. Created 4 years, 7 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/test_ink_drop_delegate.cc
diff --git a/ui/views/animation/test/test_ink_drop_delegate.cc b/ui/views/animation/test/test_ink_drop_delegate.cc
index 9d20cf0fffc09e5f7b6a6cacb83efcdc4e1b4330..9ab4c7c6c771e57ced68920377cd4e68f3f5e9ac 100644
--- a/ui/views/animation/test/test_ink_drop_delegate.cc
+++ b/ui/views/animation/test/test_ink_drop_delegate.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/views/animation/test/test_ink_drop.h"
#include "ui/views/animation/test/test_ink_drop_delegate.h"
namespace views {
@@ -29,7 +30,9 @@ InkDropState TestInkDropDelegate::GetTargetInkDropState() const {
}
InkDrop* TestInkDropDelegate::GetInkDrop() {
- return nullptr;
+ if (!ink_drop_.get())
+ ink_drop_ = base::WrapUnique(new TestInkDrop());
sky 2016/06/02 02:01:40 nit: ink_drop.reset(new TestInkDrop); is shorter a
+ return ink_drop_.get();
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698