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

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

Issue 1897073002: Add MD Ink Drop Layers to InkDropHost only when a ripple/hover is active. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some more tests. 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_hover_observer.cc
diff --git a/ui/views/animation/test/test_ink_drop_hover_observer.cc b/ui/views/animation/test/test_ink_drop_hover_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5ca462c0b8f1aa682b752893ec2014640bcc4ba7
--- /dev/null
+++ b/ui/views/animation/test/test_ink_drop_hover_observer.cc
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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_hover_observer.h"
+
+#include "ui/views/animation/ink_drop_hover.h"
+
+namespace views {
+namespace test {
+
+TestInkDropHoverObserver::TestInkDropHoverObserver() {}
+
+TestInkDropHoverObserver::~TestInkDropHoverObserver() {}
+
+void TestInkDropHoverObserver::AnimationStarted(
+ InkDropHover::AnimationType animation_type) {
+ ObserverHelper::OnAnimationStarted(animation_type);
+}
+
+void TestInkDropHoverObserver::AnimationEnded(
+ InkDropHover::AnimationType animation_type,
+ InkDropAnimationEndedReason reason) {
+ ObserverHelper::OnAnimationEnded(animation_type, reason);
+}
+
+} // namespace test
+} // namespace views

Powered by Google App Engine
This is Rietveld 408576698