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

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

Issue 1937103003: Rename of InkDropAnimation classes to InkDropRipple. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test_ink_drop_animation_observer.h from views.gyp and doc update. Created 4 years, 8 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_host.cc
diff --git a/ui/views/animation/test/test_ink_drop_host.cc b/ui/views/animation/test/test_ink_drop_host.cc
index f264e25c6656c8081edbc4f1b58245e006b9bfda..a7bf5ada04087b8949c87dd641e7be5ff4431e05 100644
--- a/ui/views/animation/test/test_ink_drop_host.cc
+++ b/ui/views/animation/test/test_ink_drop_host.cc
@@ -7,43 +7,43 @@
#include "base/memory/ptr_util.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/animation/ink_drop_hover.h"
-#include "ui/views/animation/square_ink_drop_animation.h"
+#include "ui/views/animation/square_ink_drop_ripple.h"
#include "ui/views/animation/test/ink_drop_hover_test_api.h"
-#include "ui/views/animation/test/square_ink_drop_animation_test_api.h"
+#include "ui/views/animation/test/square_ink_drop_ripple_test_api.h"
namespace views {
namespace {
-// Test specific subclass of InkDropAnimation that returns a test api from
+// Test specific subclass of InkDropRipple that returns a test api from
// GetTestApi().
-class TestInkDropAnimation : public SquareInkDropAnimation {
+class TestInkDropRipple : public SquareInkDropRipple {
public:
- TestInkDropAnimation(const gfx::Size& large_size,
- int large_corner_radius,
- const gfx::Size& small_size,
- int small_corner_radius,
- const gfx::Point& center_point,
- SkColor color)
- : SquareInkDropAnimation(large_size,
- large_corner_radius,
- small_size,
- small_corner_radius,
- center_point,
- color) {}
-
- ~TestInkDropAnimation() override {}
-
- test::InkDropAnimationTestApi* GetTestApi() override {
+ TestInkDropRipple(const gfx::Size& large_size,
+ int large_corner_radius,
+ const gfx::Size& small_size,
+ int small_corner_radius,
+ const gfx::Point& center_point,
+ SkColor color)
+ : SquareInkDropRipple(large_size,
+ large_corner_radius,
+ small_size,
+ small_corner_radius,
+ center_point,
+ color) {}
+
+ ~TestInkDropRipple() override {}
+
+ test::InkDropRippleTestApi* GetTestApi() override {
if (!test_api_)
- test_api_.reset(new test::SquareInkDropAnimationTestApi(this));
+ test_api_.reset(new test::SquareInkDropRippleTestApi(this));
return test_api_.get();
}
private:
- std::unique_ptr<test::InkDropAnimationTestApi> test_api_;
+ std::unique_ptr<test::InkDropRippleTestApi> test_api_;
- DISALLOW_COPY_AND_ASSIGN(TestInkDropAnimation);
+ DISALLOW_COPY_AND_ASSIGN(TestInkDropRipple);
};
// Test specific subclass of InkDropHover that returns a test api from
@@ -87,14 +87,13 @@ void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
--num_ink_drop_layers_;
}
-std::unique_ptr<InkDropAnimation> TestInkDropHost::CreateInkDropAnimation()
- const {
+std::unique_ptr<InkDropRipple> TestInkDropHost::CreateInkDropRipple() const {
gfx::Size size(10, 10);
- std::unique_ptr<InkDropAnimation> animation(
- new TestInkDropAnimation(size, 5, size, 5, gfx::Point(), SK_ColorBLACK));
+ std::unique_ptr<InkDropRipple> ripple(
+ new TestInkDropRipple(size, 5, size, 5, gfx::Point(), SK_ColorBLACK));
if (disable_timers_for_test_)
- animation->GetTestApi()->SetDisableAnimationTimers(true);
- return animation;
+ ripple->GetTestApi()->SetDisableAnimationTimers(true);
+ return ripple;
}
std::unique_ptr<InkDropHover> TestInkDropHost::CreateInkDropHover() const {
« no previous file with comments | « ui/views/animation/test/test_ink_drop_host.h ('k') | ui/views/animation/test/test_ink_drop_ripple_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698