| Index: cc/input/page_scale_animation.h
|
| diff --git a/cc/input/page_scale_animation.h b/cc/input/page_scale_animation.h
|
| index ce13dcf8ba7ca650f28b7d370f3be5c6d44203b1..0e430c212fe805854be09c049170934999e8ab1c 100644
|
| --- a/cc/input/page_scale_animation.h
|
| +++ b/cc/input/page_scale_animation.h
|
| @@ -10,12 +10,31 @@
|
| #include "base/time/time.h"
|
| #include "cc/base/cc_export.h"
|
| #include "ui/gfx/geometry/size.h"
|
| +#include "ui/gfx/geometry/vector2d.h"
|
| #include "ui/gfx/geometry/vector2d_f.h"
|
|
|
| namespace cc {
|
|
|
| class TimingFunction;
|
|
|
| +// Used in the CC to pass around a scale animation that hasn't yet been
|
| +// initialized.
|
| +struct PendingPageScaleAnimation {
|
| + PendingPageScaleAnimation(
|
| + const gfx::Vector2d _target_offset,
|
| + bool _use_anchor,
|
| + float _scale,
|
| + const base::TimeDelta& _duration)
|
| + : target_offset(_target_offset),
|
| + use_anchor(_use_anchor),
|
| + scale(_scale),
|
| + duration(_duration) {}
|
| + gfx::Vector2d target_offset;
|
| + bool use_anchor;
|
| + float scale;
|
| + base::TimeDelta duration;
|
| +};
|
| +
|
| // A small helper class that does the math for zoom animations, primarily for
|
| // double-tap zoom. Initialize it with starting and ending scroll/page scale
|
| // positions and an animation length time, then call ...AtTime() at every frame
|
|
|