| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |