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

Side by Side Diff: Source/platform/exported/WebActiveGestureAnimation.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef WebActiveGestureAnimation_h 26 #ifndef WebActiveGestureAnimation_h
27 #define WebActiveGestureAnimation_h 27 #define WebActiveGestureAnimation_h
28 28
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "wtf/Noncopyable.h" 30 #include "wtf/Noncopyable.h"
31 #include "wtf/OwnPtr.h" 31 #include "wtf/OwnPtr.h"
32 #include "wtf/PassOwnPtr.h" 32 #include "wtf/PassOwnPtr.h"
33 33
34 namespace WebKit { 34 namespace blink {
35 35
36 class WebGestureCurve; 36 class WebGestureCurve;
37 class WebGestureCurveTarget; 37 class WebGestureCurveTarget;
38 38
39 // Implements a gesture animation (fling scroll, etc.) using a curve with a gene ric interface 39 // Implements a gesture animation (fling scroll, etc.) using a curve with a gene ric interface
40 // to define the animation parameters as a function of time, and applies the ani mation 40 // to define the animation parameters as a function of time, and applies the ani mation
41 // to a target, again via a generic interface. It is assumed that animate() is c alled 41 // to a target, again via a generic interface. It is assumed that animate() is c alled
42 // on a more-or-less regular basis by the owner. 42 // on a more-or-less regular basis by the owner.
43 class PLATFORM_EXPORT WebActiveGestureAnimation { 43 class PLATFORM_EXPORT WebActiveGestureAnimation {
44 WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation); 44 WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation);
45 public: 45 public:
46 static PassOwnPtr<WebActiveGestureAnimation> createAtAnimationStart(PassOwnP tr<WebGestureCurve>, WebGestureCurveTarget*); 46 static PassOwnPtr<WebActiveGestureAnimation> createAtAnimationStart(PassOwnP tr<WebGestureCurve>, WebGestureCurveTarget*);
47 static PassOwnPtr<WebActiveGestureAnimation> createWithTimeOffset(PassOwnPtr <WebGestureCurve>, WebGestureCurveTarget*, double startTime); 47 static PassOwnPtr<WebActiveGestureAnimation> createWithTimeOffset(PassOwnPtr <WebGestureCurve>, WebGestureCurveTarget*, double startTime);
48 ~WebActiveGestureAnimation(); 48 ~WebActiveGestureAnimation();
49 49
50 bool animate(double time); 50 bool animate(double time);
51 51
52 private: 52 private:
53 // Assumes a valid WebGestureCurveTarget that outlives the animation. 53 // Assumes a valid WebGestureCurveTarget that outlives the animation.
54 WebActiveGestureAnimation(PassOwnPtr<WebGestureCurve>, WebGestureCurveTarget *, double startTime, bool waitingForFirstTick); 54 WebActiveGestureAnimation(PassOwnPtr<WebGestureCurve>, WebGestureCurveTarget *, double startTime, bool waitingForFirstTick);
55 55
56 double m_startTime; 56 double m_startTime;
57 bool m_waitingForFirstTick; 57 bool m_waitingForFirstTick;
58 OwnPtr<WebGestureCurve> m_curve; 58 OwnPtr<WebGestureCurve> m_curve;
59 WebGestureCurveTarget* m_target; 59 WebGestureCurveTarget* m_target;
60 }; 60 };
61 61
62 } // namespace WebKit 62 } // namespace blink
63 63
64 #endif 64 #endif
OLDNEW
« no previous file with comments | « Source/platform/exported/Platform.cpp ('k') | Source/platform/exported/WebActiveGestureAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698