OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CCPageScaleAnimation_h | 5 #ifndef CC_PAGE_SCALE_ANIMATION_H_ |
6 #define CCPageScaleAnimation_h | 6 #define CC_PAGE_SCALE_ANIMATION_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "IntSize.h" | 9 #include "IntSize.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 // A small helper class that does the math for zoom animations, primarily for | 13 // A small helper class that does the math for zoom animations, primarily for |
14 // double-tap zoom. Initialize it with starting and ending scroll/page scale | 14 // double-tap zoom. Initialize it with starting and ending scroll/page scale |
15 // positions and an animation length time, then call ...AtTime() at every frame | 15 // positions and an animation length time, then call ...AtTime() at every frame |
16 // to obtain the current interpolated position. | 16 // to obtain the current interpolated position. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 IntSize m_anchor; | 65 IntSize m_anchor; |
66 IntSize m_scrollEnd; | 66 IntSize m_scrollEnd; |
67 float m_pageScaleEnd; | 67 float m_pageScaleEnd; |
68 | 68 |
69 double m_startTime; | 69 double m_startTime; |
70 double m_duration; | 70 double m_duration; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace cc | 73 } // namespace cc |
74 | 74 |
75 #endif | 75 #endif // CC_PAGE_SCALE_ANIMATION_H_ |
OLD | NEW |