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

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
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..e4ed47a1d0536cbaa45f5117518ef23192d7bce3
--- /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,
+ 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

Powered by Google App Engine
This is Rietveld 408576698