Chromium Code Reviews| 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 { | |
| 16 public: | |
| 17 enum Property { | |
| 18 COPYRECT = 0, | |
| 19 SIZE, | |
| 20 TRANSLATION, | |
| 21 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.
| |
| 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 |