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

Side by Side Diff: Source/WebCore/platform/ScrollAnimatorNone.h

Issue 7590014: Merge 92002 - Scroll animation refinements. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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 | « no previous file | Source/WebCore/platform/ScrollAnimatorNone.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011, Google Inc. All rights reserved. 2 * Copyright (c) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 enum Curve { 53 enum Curve {
54 Linear, 54 Linear,
55 Quadratic, 55 Quadratic,
56 Cubic, 56 Cubic,
57 Bounce 57 Bounce
58 }; 58 };
59 59
60 struct Parameters { 60 struct Parameters {
61 Parameters(); 61 Parameters();
62 Parameters(bool, double, Curve, double, Curve, double); 62 Parameters(bool isEnabled, double animationTime, double repeatMinimumSus tainTime, Curve attackCurve, double attackTime, Curve releaseCurve, double relea seTime);
63 63
64 // Note that the times can be overspecified such that releaseTime or rel easeTime and attackTime are greater 64 // Note that the times can be overspecified such that releaseTime or rel easeTime and attackTime are greater
65 // than animationTime. animationTime takes priority over releaseTime, ca pping it. attackTime is capped at 65 // than animationTime. animationTime takes priority over releaseTime, ca pping it. attackTime is capped at
66 // whatever time remains, or zero if none. 66 // whatever time remains, or zero if none.
67 bool m_isEnabled; 67 bool m_isEnabled;
68 double m_animationTime; 68 double m_animationTime;
69 double m_repeatMinimumSustainTime;
69 70
70 Curve m_attackCurve; 71 Curve m_attackCurve;
71 double m_attackTime; 72 double m_attackTime;
72 73
73 Curve m_releaseCurve; 74 Curve m_releaseCurve;
74 double m_releaseTime; 75 double m_releaseTime;
75 }; 76 };
76 77
77 protected: 78 protected:
78 friend class ::ScrollAnimatorNoneTest; 79 friend class ::ScrollAnimatorNoneTest;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 PerAxisData m_horizontalData; 121 PerAxisData m_horizontalData;
121 PerAxisData m_verticalData; 122 PerAxisData m_verticalData;
122 }; 123 };
123 124
124 } // namespace WebCore 125 } // namespace WebCore
125 126
126 #endif // ENABLE(SMOOTH_SCROLLING) 127 #endif // ENABLE(SMOOTH_SCROLLING)
127 128
128 #endif // ScrollAnimatorNone_h 129 #endif // ScrollAnimatorNone_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/ScrollAnimatorNone.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698