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

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

Issue 9931004: Merge 112364 - [chromium] Transfer wheel fling via WebCompositorInputHandlerClient (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/ActivePlatformGestureAnimation.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 25 matching lines...) Expand all
36 class PlatformGestureCurveTarget; 36 class PlatformGestureCurveTarget;
37 37
38 // Implements a gesture animation (fling scroll, etc.) using a curve with a gene ric interface 38 // Implements a gesture animation (fling scroll, etc.) using a curve with a gene ric interface
39 // to define the animation parameters as a function of time, and applies the ani mation 39 // to define the animation parameters as a function of time, and applies the ani mation
40 // to a target, again via a generic interface. It is assumed that animate() is c alled 40 // to a target, again via a generic interface. It is assumed that animate() is c alled
41 // on a more-or-less regular basis by the owner. 41 // on a more-or-less regular basis by the owner.
42 class ActivePlatformGestureAnimation { 42 class ActivePlatformGestureAnimation {
43 WTF_MAKE_NONCOPYABLE(ActivePlatformGestureAnimation); 43 WTF_MAKE_NONCOPYABLE(ActivePlatformGestureAnimation);
44 public: 44 public:
45 static PassOwnPtr<ActivePlatformGestureAnimation> create(PassOwnPtr<Platform GestureCurve>, PlatformGestureCurveTarget*); 45 static PassOwnPtr<ActivePlatformGestureAnimation> create(PassOwnPtr<Platform GestureCurve>, PlatformGestureCurveTarget*);
46 static PassOwnPtr<ActivePlatformGestureAnimation> create(PassOwnPtr<Platform GestureCurve>, PlatformGestureCurveTarget*, double startTime);
46 ~ActivePlatformGestureAnimation(); 47 ~ActivePlatformGestureAnimation();
47 48
48 bool animate(double time); 49 bool animate(double time);
49 50
50 private: 51 private:
51 // Assumes a valid PlatformGestureCurveTarget that outlives the animation. 52 // Assumes a valid PlatformGestureCurveTarget that outlives the animation.
52 ActivePlatformGestureAnimation(PassOwnPtr<PlatformGestureCurve>, PlatformGes tureCurveTarget*); 53 ActivePlatformGestureAnimation(PassOwnPtr<PlatformGestureCurve>, PlatformGes tureCurveTarget*);
54 ActivePlatformGestureAnimation(PassOwnPtr<PlatformGestureCurve>, PlatformGes tureCurveTarget*, double startTime);
53 55
54 double m_startTime; 56 double m_startTime;
55 bool m_waitingForFirstTick; 57 bool m_waitingForFirstTick;
56 OwnPtr<PlatformGestureCurve> m_curve; 58 OwnPtr<PlatformGestureCurve> m_curve;
57 PlatformGestureCurveTarget* m_target; 59 PlatformGestureCurveTarget* m_target;
58 }; 60 };
59 61
60 } // namespace WebCore 62 } // namespace WebCore
61 63
62 #endif 64 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/ActivePlatformGestureAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698