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

Side by Side Diff: ui/gfx/animation/tween.h

Issue 2750743003: Move ui/gfx/animation/ into its own component. (Closed)
Patch Set: c Created 3 years, 9 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
« no previous file with comments | « ui/gfx/animation/throb_animation.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_ANIMATION_TWEEN_H_ 5 #ifndef UI_GFX_ANIMATION_TWEEN_H_
6 #define UI_GFX_ANIMATION_TWEEN_H_ 6 #define UI_GFX_ANIMATION_TWEEN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/animation/animation_export.h"
10 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/transform.h" 12 #include "ui/gfx/transform.h"
13 13
14 namespace base { 14 namespace base {
15 class TimeTicks; 15 class TimeTicks;
16 } 16 }
17 17
18 namespace gfx { 18 namespace gfx {
19 19
20 class GFX_EXPORT Tween { 20 class ANIMATION_EXPORT Tween {
21 public: 21 public:
22 enum Type { 22 enum Type {
23 LINEAR, // Linear. 23 LINEAR, // Linear.
24 EASE_OUT, // Fast in, slow out (default). 24 EASE_OUT, // Fast in, slow out (default).
25 EASE_IN, // Slow in, fast out. 25 EASE_IN, // Slow in, fast out.
26 EASE_IN_2, // Variant of EASE_IN that starts out slower than 26 EASE_IN_2, // Variant of EASE_IN that starts out slower than
27 // EASE_IN. 27 // EASE_IN.
28 EASE_IN_OUT, // Slow in and out, fast in the middle. 28 EASE_IN_OUT, // Slow in and out, fast in the middle.
29 FAST_IN_OUT, // Fast in and out, slow in the middle. 29 FAST_IN_OUT, // Fast in and out, slow in the middle.
30 EASE_OUT_SNAP, // Fast in, slow out, snap to final value. 30 EASE_OUT_SNAP, // Fast in, slow out, snap to final value.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 private: 72 private:
73 Tween(); 73 Tween();
74 ~Tween(); 74 ~Tween();
75 75
76 DISALLOW_COPY_AND_ASSIGN(Tween); 76 DISALLOW_COPY_AND_ASSIGN(Tween);
77 }; 77 };
78 78
79 } // namespace gfx 79 } // namespace gfx
80 80
81 #endif // UI_GFX_ANIMATION_TWEEN_H_ 81 #endif // UI_GFX_ANIMATION_TWEEN_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/throb_animation.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698