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

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

Issue 1944043002: Enabled tests to control material design ink drop animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Replaced unique_ptr with scoped_ptr. 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
« no previous file with comments | « ui/views/animation/test/ink_drop_hover_test_api.h ('k') | ui/views/animation/test/test_ink_drop_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/test/ink_drop_hover_test_api.cc
diff --git a/ui/views/animation/test/ink_drop_hover_test_api.cc b/ui/views/animation/test/ink_drop_hover_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b7c1b455733e561a6874f1e58b0394f6559a5b20
--- /dev/null
+++ b/ui/views/animation/test/ink_drop_hover_test_api.cc
@@ -0,0 +1,29 @@
+// 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/ink_drop_hover_test_api.h"
+
+#include "base/time/time.h"
+#include "ui/compositor/layer.h"
+#include "ui/compositor/layer_animator.h"
+#include "ui/compositor/test/layer_animator_test_controller.h"
+#include "ui/views/animation/ink_drop_hover.h"
+
+namespace views {
+namespace test {
+
+InkDropHoverTestApi::InkDropHoverTestApi(InkDropHover* ink_drop_hover)
+ : ui::test::MultiLayerAnimatorTestController(this),
+ ink_drop_hover_(ink_drop_hover) {}
+
+InkDropHoverTestApi::~InkDropHoverTestApi() {}
+
+std::vector<ui::LayerAnimator*> InkDropHoverTestApi::GetLayerAnimators() {
+ std::vector<ui::LayerAnimator*> animators;
+ animators.push_back(ink_drop_hover()->layer_->GetAnimator());
+ return animators;
+}
+
+} // namespace test
+} // namespace views
« no previous file with comments | « ui/views/animation/test/ink_drop_hover_test_api.h ('k') | ui/views/animation/test/test_ink_drop_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698