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

Side by Side Diff: cc/input/page_scale_animation.h

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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 | « cc/input/layer_scroll_offset_delegate.h ('k') | cc/input/page_scale_animation.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 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 CC_INPUT_PAGE_SCALE_ANIMATION_H_ 5 #ifndef CC_INPUT_PAGE_SCALE_ANIMATION_H_
6 #define CC_INPUT_PAGE_SCALE_ANIMATION_H_ 6 #define CC_INPUT_PAGE_SCALE_ANIMATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/vector2d_f.h" 13 #include "ui/gfx/geometry/vector2d_f.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class TimingFunction; 17 class TimingFunction;
18 18
19 // A small helper class that does the math for zoom animations, primarily for 19 // A small helper class that does the math for zoom animations, primarily for
20 // double-tap zoom. Initialize it with starting and ending scroll/page scale 20 // double-tap zoom. Initialize it with starting and ending scroll/page scale
21 // positions and an animation length time, then call ...AtTime() at every frame 21 // positions and an animation length time, then call ...AtTime() at every frame
22 // to obtain the current interpolated position. The supplied timing function 22 // to obtain the current interpolated position. The supplied timing function
23 // is used to ease the animation. 23 // is used to ease the animation.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 base::TimeDelta duration_; 107 base::TimeDelta duration_;
108 108
109 scoped_ptr<TimingFunction> timing_function_; 109 scoped_ptr<TimingFunction> timing_function_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(PageScaleAnimation); 111 DISALLOW_COPY_AND_ASSIGN(PageScaleAnimation);
112 }; 112 };
113 113
114 } // namespace cc 114 } // namespace cc
115 115
116 #endif // CC_INPUT_PAGE_SCALE_ANIMATION_H_ 116 #endif // CC_INPUT_PAGE_SCALE_ANIMATION_H_
OLDNEW
« no previous file with comments | « cc/input/layer_scroll_offset_delegate.h ('k') | cc/input/page_scale_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698