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

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

Issue 10960034: [cros] Go back to EASE_OUT for boot transition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/base/animation/tween.cc » ('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_BASE_ANIMATION_TWEEN_H_ 5 #ifndef UI_BASE_ANIMATION_TWEEN_H_
6 #define UI_BASE_ANIMATION_TWEEN_H_ 6 #define UI_BASE_ANIMATION_TWEEN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class UI_EXPORT Tween { 15 class UI_EXPORT Tween {
16 public: 16 public:
17 enum Type { 17 enum Type {
18 LINEAR, // Linear. 18 LINEAR, // Linear.
19 EASE_OUT, // Fast in, slow out (default). 19 EASE_OUT, // Fast in, slow out (default).
20 EASE_OUT_2, // Variant of EASE_OUT, that starts out slower. 20 EASE_OUT_2, // Variant of EASE_OUT, that starts out slower.
21 EASE_OUT_3, // Variant of EASE_OUT_2, that starts out slower.
21 EASE_IN, // Slow in, fast out. 22 EASE_IN, // Slow in, fast out.
22 EASE_IN_2, // Variant of EASE_IN that starts out slower. 23 EASE_IN_2, // Variant of EASE_IN that starts out slower.
23 EASE_IN_OUT, // Slow in and out, fast in the middle. 24 EASE_IN_OUT, // Slow in and out, fast in the middle.
24 FAST_IN_OUT, // Fast in and out, slow in the middle. 25 FAST_IN_OUT, // Fast in and out, slow in the middle.
25 EASE_OUT_SNAP, // Fast in, slow out, snap to final value. 26 EASE_OUT_SNAP, // Fast in, slow out, snap to final value.
26 SMOOTH_IN_OUT, // Smooth, consistent speeds in and out (sine wave). 27 SMOOTH_IN_OUT, // Smooth, consistent speeds in and out (sine wave).
27 ZERO, // Returns a value of 0 always. 28 ZERO, // Returns a value of 0 always.
28 }; 29 };
29 30
30 // Returns the value based on the tween type. |state| is from 0-1. 31 // Returns the value based on the tween type. |state| is from 0-1.
(...skipping 12 matching lines...) Expand all
43 private: 44 private:
44 Tween(); 45 Tween();
45 ~Tween(); 46 ~Tween();
46 47
47 DISALLOW_COPY_AND_ASSIGN(Tween); 48 DISALLOW_COPY_AND_ASSIGN(Tween);
48 }; 49 };
49 50
50 } // namespace ui 51 } // namespace ui
51 52
52 #endif // UI_BASE_ANIMATION_TWEEN_H_ 53 #endif // UI_BASE_ANIMATION_TWEEN_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/base/animation/tween.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698