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

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

Issue 2390833002: reflow comments in platform/{animation,blob,clipboard,exported} (Closed)
Patch Set: Created 4 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
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 18 matching lines...) Expand all
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "wtf/Allocator.h" 30 #include "wtf/Allocator.h"
31 #include "wtf/Noncopyable.h" 31 #include "wtf/Noncopyable.h"
32 #include <memory> 32 #include <memory>
33 33
34 namespace blink { 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
40 // to define the animation parameters as a function of time, and applies the ani mation 40 // generic interface to define the animation parameters as a function of time,
41 // to a target, again via a generic interface. It is assumed that animate() is c alled 41 // and applies the animation to a target, again via a generic interface. It is
42 // on a more-or-less regular basis by the owner. 42 // assumed that animate() is called on a more-or-less regular basis by the
43 // owner.
43 class PLATFORM_EXPORT WebActiveGestureAnimation { 44 class PLATFORM_EXPORT WebActiveGestureAnimation {
44 USING_FAST_MALLOC(WebActiveGestureAnimation); 45 USING_FAST_MALLOC(WebActiveGestureAnimation);
45 WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation); 46 WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation);
46 47
47 public: 48 public:
48 static std::unique_ptr<WebActiveGestureAnimation> createAtAnimationStart( 49 static std::unique_ptr<WebActiveGestureAnimation> createAtAnimationStart(
49 std::unique_ptr<WebGestureCurve>, 50 std::unique_ptr<WebGestureCurve>,
50 WebGestureCurveTarget*); 51 WebGestureCurveTarget*);
51 static std::unique_ptr<WebActiveGestureAnimation> createWithTimeOffset( 52 static std::unique_ptr<WebActiveGestureAnimation> createWithTimeOffset(
52 std::unique_ptr<WebGestureCurve>, 53 std::unique_ptr<WebGestureCurve>,
(...skipping 12 matching lines...) Expand all
65 66
66 double m_startTime; 67 double m_startTime;
67 bool m_waitingForFirstTick; 68 bool m_waitingForFirstTick;
68 std::unique_ptr<WebGestureCurve> m_curve; 69 std::unique_ptr<WebGestureCurve> m_curve;
69 WebGestureCurveTarget* m_target; 70 WebGestureCurveTarget* m_target;
70 }; 71 };
71 72
72 } // namespace blink 73 } // namespace blink
73 74
74 #endif 75 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698