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

Unified Diff: sky/engine/platform/scroll/ProgrammaticScrollAnimator.h

Issue 720713003: Remove WebScroll* (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/platform/scroll/ProgrammaticScrollAnimator.h
diff --git a/sky/engine/platform/scroll/ProgrammaticScrollAnimator.h b/sky/engine/platform/scroll/ProgrammaticScrollAnimator.h
deleted file mode 100644
index a135e4965b67d1474e5478a6c3b2906c326b994c..0000000000000000000000000000000000000000
--- a/sky/engine/platform/scroll/ProgrammaticScrollAnimator.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ProgrammaticScrollAnimator_h
-#define ProgrammaticScrollAnimator_h
-
-#include "platform/geometry/FloatPoint.h"
-#include "wtf/FastAllocBase.h"
-#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
-
-namespace blink {
-
-class ScrollableArea;
-class WebScrollOffsetAnimationCurve;
-
-// Animator for fixed-destination scrolls, such as those triggered by
-// CSSOM View scroll APIs.
-class ProgrammaticScrollAnimator {
- WTF_MAKE_NONCOPYABLE(ProgrammaticScrollAnimator);
- WTF_MAKE_FAST_ALLOCATED;
-public:
- static PassOwnPtr<ProgrammaticScrollAnimator> create(ScrollableArea*);
-
- ~ProgrammaticScrollAnimator();
-
- void animateToOffset(FloatPoint);
- void cancelAnimation();
- void tickAnimation(double monotonicTime);
-
-private:
- explicit ProgrammaticScrollAnimator(ScrollableArea*);
-
- void resetAnimationState();
-
- ScrollableArea* m_scrollableArea;
- OwnPtr<WebScrollOffsetAnimationCurve> m_animationCurve;
- FloatPoint m_targetOffset;
- double m_startTime;
-};
-
-} // namespace blink
-
-#endif // ProgrammaticScrollAnimator_h

Powered by Google App Engine
This is Rietveld 408576698