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

Unified Diff: chrome/browser/android/vr_shell/animation.cc

Issue 2335643002: Add VR Shell animation classes and unit test. (Closed)
Patch Set: Add VR Shell animation classes and unit test. Created 4 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 | « chrome/browser/android/vr_shell/animation.h ('k') | chrome/browser/android/vr_shell/easing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/animation.cc
diff --git a/chrome/browser/android/vr_shell/animation.cc b/chrome/browser/android/vr_shell/animation.cc
new file mode 100644
index 0000000000000000000000000000000000000000..819bb6976e85cf60f48393389b78f8dba8b2d3e7
--- /dev/null
+++ b/chrome/browser/android/vr_shell/animation.cc
@@ -0,0 +1,26 @@
+// 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 "chrome/browser/android/vr_shell/animation.h"
+
+namespace vr_shell {
+
+Animation::Animation(int id,
+ Property property,
+ std::unique_ptr<easing::Easing> easing,
+ std::vector<float> from,
+ std::vector<float> to,
+ int64_t start,
+ int64_t duration)
+ : id(id),
+ property(property),
+ easing(std::move(easing)),
+ from(from),
+ to(to),
+ start(start),
+ duration(duration) {}
+
+Animation::~Animation() {}
+
+} // namespace vr_shell
« no previous file with comments | « chrome/browser/android/vr_shell/animation.h ('k') | chrome/browser/android/vr_shell/easing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698