OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ | |
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ | |
7 | |
8 #include <memory> | |
9 #include <vector> | |
10 | |
11 #include "chrome/browser/android/vr_shell/easing.h" | |
12 | |
13 namespace vr_shell { | |
14 | |
15 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.
| |
16 public: | |
17 enum Property { | |
18 COPYRECT = 0, | |
19 SIZE, | |
20 TRANSLATION, | |
21 UNUSED, // No longer used, available for a future type. | |
22 ROTATION, | |
23 }; | |
24 | |
25 Animation(int id, | |
26 Property property, | |
27 std::unique_ptr<Easing> easing, | |
28 std::vector<float> from, | |
29 std::vector<float> to, | |
30 int64_t start, | |
31 int64_t duration); | |
32 ~Animation(); | |
33 | |
34 int id; | |
35 Property property; | |
36 std::unique_ptr<Easing> easing; | |
37 std::vector<float> from; | |
38 std::vector<float> to; | |
39 int64_t start; | |
40 int64_t duration; | |
41 }; | |
42 | |
43 } // namespace vr_shell | |
44 | |
45 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_ANIMATION_H_ | |
OLD | NEW |