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

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

Issue 1298513003: Implemented prototype for new ink drop specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from patch set 10. Created 5 years, 3 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/ink_drop_state.h ('k') | ui/views/animation/test/ink_drop_animation_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/test/ink_drop_animation_test_api.h
diff --git a/ui/views/animation/test/ink_drop_animation_test_api.h b/ui/views/animation/test/ink_drop_animation_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b7ccaefa70bc44319c9f9f39e9b8cce9b0a9785
--- /dev/null
+++ b/ui/views/animation/test/ink_drop_animation_test_api.h
@@ -0,0 +1,41 @@
+// Copyright 2015 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.
+
+#ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
+#define UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
+
+#include "ui/gfx/geometry/size_f.h"
+
+namespace views {
+class InkDropAnimation;
+
+namespace test {
+
+// Test API to provide internal access to an InkDropAnimation.
+class InkDropAnimationTestApi {
+ public:
+ typedef InkDropAnimation::InkDropTransforms InkDropTransforms;
+ typedef InkDropAnimation::PaintedShape PaintedShape;
+
+ explicit InkDropAnimationTestApi(InkDropAnimation* ink_drop_animation);
+ ~InkDropAnimationTestApi();
+
+ // Wrapper functions the wrapped InkDropedAnimation:
+ void CalculateCircleTransforms(const gfx::SizeF size,
+ InkDropTransforms* transforms_out) const;
+ void CalculateRectTransforms(const gfx::SizeF size,
+ float corner_radius,
+ InkDropTransforms* transforms_out) const;
+
+ private:
+ // The InkDropAnimation to provide internal access to.
+ InkDropAnimation* ink_drop_animation_;
+
+ DISALLOW_COPY_AND_ASSIGN(InkDropAnimationTestApi);
+};
+
+} // namespace test
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
« no previous file with comments | « ui/views/animation/ink_drop_state.h ('k') | ui/views/animation/test/ink_drop_animation_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698