LCOV - code coverage report
Current view: top level - gfx/layers/apz/src - GenericScrollAnimation.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set sw=2 ts=8 et tw=80 : */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_layers_GenericScrollAnimation_h_
       8             : #define mozilla_layers_GenericScrollAnimation_h_
       9             : 
      10             : #include "AsyncPanZoomAnimation.h"
      11             : #include "AsyncScrollBase.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace layers {
      15             : 
      16             : class AsyncPanZoomController;
      17             : 
      18           0 : class GenericScrollAnimation
      19             :   : public AsyncPanZoomAnimation,
      20             :     public AsyncScrollBase
      21             : {
      22             : public:
      23             :   GenericScrollAnimation(AsyncPanZoomController& aApzc,
      24             :                          const nsPoint& aInitialPosition);
      25             : 
      26             :   bool DoSample(FrameMetrics& aFrameMetrics, const TimeDuration& aDelta) override;
      27             : 
      28             :   void UpdateDelta(TimeStamp aTime, nsPoint aDelta, const nsSize& aCurrentVelocity);
      29             :   void UpdateDestination(TimeStamp aTime, nsPoint aDestination, const nsSize& aCurrentVelocity);
      30             : 
      31           0 :   CSSPoint GetDestination() const {
      32           0 :     return CSSPoint::FromAppUnits(mFinalDestination);
      33             :   }
      34             : 
      35             : private:
      36             :   void Update(TimeStamp aTime, const nsSize& aCurrentVelocity);
      37             : 
      38             : protected:
      39             :   AsyncPanZoomController& mApzc;
      40             :   nsPoint mFinalDestination;
      41             :   bool mForceVerticalOverscroll;
      42             : };
      43             : 
      44             : } // namespace layers
      45             : } // namespace mozilla
      46             : 
      47             : #endif // mozilla_layers_GenericScrollAnimation_h_

Generated by: LCOV version 1.13