Index: chrome/browser/android/vr_shell/animation.h |
diff --git a/chrome/browser/android/vr_shell/animation.h b/chrome/browser/android/vr_shell/animation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f28c49d2f3f5bea2799725672ff8fbdff01cfb77 |
--- /dev/null |
+++ b/chrome/browser/android/vr_shell/animation.h |
@@ -0,0 +1,45 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ |
+#define CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ |
+ |
+#include <memory> |
+#include <vector> |
+ |
+#include "chrome/browser/android/vr_shell/easing.h" |
+ |
+namespace vr_shell { |
+ |
+class Animation { |
+ public: |
+ enum Property { |
+ COPYRECT = 0, |
+ SIZE, |
+ TRANSLATION, |
+ UNUSED, // Available for a future type. |
mthiesse
2016/09/12 14:18:27
Add a comment for why this strangeness is here?
cjgrant
2016/09/13 17:32:15
Done. It'll be SCALE in a follow-on change.
|
+ ROTATION, |
+ }; |
+ |
+ Animation(int id, |
+ Property property, |
+ std::unique_ptr<Easing> easing, |
+ std::vector<float> from, |
+ std::vector<float> to, |
+ int64_t start, |
+ int64_t duration); |
+ ~Animation(); |
+ |
+ int id; |
+ Property property; |
+ std::unique_ptr<Easing> easing; |
+ std::vector<float> from; |
+ std::vector<float> to; |
+ int64_t start; |
+ int64_t duration; |
+}; |
+ |
+} // namespace vr_shell |
+ |
+#endif // CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ |