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

Unified Diff: ui/gfx/animation/animation_test_api.cc

Issue 2976873003: Added a nested class to gfx::Animation (Closed)
Patch Set: Created 3 years, 5 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/gfx/animation/animation_test_api.cc
diff --git a/ui/gfx/animation/animation_test_api.cc b/ui/gfx/animation/animation_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..aa7cb8b10b04a799396ba0fcfbd95b36e570ab5e
--- /dev/null
+++ b/ui/gfx/animation/animation_test_api.cc
@@ -0,0 +1,27 @@
+// Copyright 2017 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/gfx/animation/animation_test_api.h"
+
+#include "base/macros.h"
sky 2017/07/12 19:16:19 This include should be in the header.
newcomer 2017/07/13 21:19:28 Done.
+#include "base/time/time.h"
+#include "ui/gfx/animation/animation.h"
+
+namespace gfx {
+using AnimationTestApi = Animation::AnimationTestApi;
+
+AnimationTestApi::AnimationTestApi(Animation* animation)
+ : animation_(animation) {}
+
+AnimationTestApi::~AnimationTestApi() {}
+
+void AnimationTestApi::SetStartTime(base::TimeTicks ticks) {
+ animation_->SetStartTime(ticks);
+}
+
+void AnimationTestApi::Step(base::TimeTicks ticks) {
+ animation_->Step(ticks);
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698