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

Unified Diff: public/platform/WebScrollOffsetAnimationCurve.h

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebScrollOffsetAnimationCurve.h
diff --git a/public/web/WebLeakDetector.h b/public/platform/WebScrollOffsetAnimationCurve.h
similarity index 78%
copy from public/web/WebLeakDetector.h
copy to public/platform/WebScrollOffsetAnimationCurve.h
index 652fd3b709b03a39f68f44385f212c792e77ae7c..ee9e1f974df56d31874479762bc062b6a318106f 100644
--- a/public/web/WebLeakDetector.h
+++ b/public/platform/WebScrollOffsetAnimationCurve.h
@@ -28,21 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebLeakDetector_h
-#define WebLeakDetector_h
+#ifndef WebScrollOffsetAnimationCurve_h
+#define WebScrollOffsetAnimationCurve_h
-#include "public/platform/WebCommon.h"
+#include "WebAnimationCurve.h"
-namespace blink {
+#include "WebFloatPoint.h"
-class WebFrame;
+namespace blink {
-class WebLeakDetector {
+class WebScrollOffsetAnimationCurve : public WebAnimationCurve {
public:
- // Cleans up the DOM objects and counts them. This is supposed to be used for detecting DOM-object leaks.
- BLINK_EXPORT static void collectGarbargeAndGetDOMCounts(WebFrame*, unsigned* numberOfLiveDocuments, unsigned* numberOfLiveNodes);
+ virtual ~WebScrollOffsetAnimationCurve() { }
+
+ virtual void setInitialValue(WebFloatPoint) = 0;
+ virtual WebFloatPoint getValue(double time) const = 0;
+ virtual double duration() const = 0;
};
} // namespace blink
-#endif // WebLeakDetector_h
+#endif // WebScrollOffsetAnimationCurve_h

Powered by Google App Engine
This is Rietveld 408576698