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

Side by Side Diff: chrome/browser/android/vr_shell/animation.h

Issue 2335643002: Add VR Shell animation classes and unit test. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698