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

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

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.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..2d04d3ad9af3e55ed83d813983c6bf292724242f
--- /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 {
David Trainor- moved to gerrit 2016/09/14 21:43:29 Can we add a class comment describing what this is
cjgrant 2016/09/16 17:47:07 Done.
+ public:
+ enum Property {
+ COPYRECT = 0,
+ SIZE,
+ TRANSLATION,
+ UNUSED, // No longer used, available for a future type.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698