LCOV - code coverage report
Current view: top level - dom/svg - SVGPathSegListSMILType.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 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 ts=8 sts=2 et sw=2 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_SVGPATHSEGLISTSMILTYPE_H_
       8             : #define MOZILLA_SVGPATHSEGLISTSMILTYPE_H_
       9             : 
      10             : #include "mozilla/Attributes.h"
      11             : #include "nsISMILType.h"
      12             : 
      13             : class nsSMILValue;
      14             : 
      15             : namespace mozilla {
      16             : 
      17             : ////////////////////////////////////////////////////////////////////////
      18             : // SVGPathSegListSMILType
      19             : //
      20             : // Operations for animating an SVGPathData.
      21             : //
      22             : class SVGPathSegListSMILType : public nsISMILType
      23             : {
      24             : public:
      25             :   // Singleton for nsSMILValue objects to hold onto.
      26           0 :   static SVGPathSegListSMILType* Singleton()
      27             :   {
      28           0 :     static SVGPathSegListSMILType sSingleton;
      29           0 :     return &sSingleton;
      30             :   }
      31             : 
      32             : protected:
      33             :   // nsISMILType Methods
      34             :   // -------------------
      35             : 
      36             :   virtual void     Init(nsSMILValue& aValue) const override;
      37             : 
      38             :   virtual void     Destroy(nsSMILValue& aValue) const override;
      39             :   virtual nsresult Assign(nsSMILValue& aDest, const nsSMILValue& aSrc) const override;
      40             :   virtual bool     IsEqual(const nsSMILValue& aLeft,
      41             :                            const nsSMILValue& aRight) const override;
      42             :   virtual nsresult Add(nsSMILValue& aDest, const nsSMILValue& aValueToAdd,
      43             :                        uint32_t aCount) const override;
      44             :   virtual nsresult ComputeDistance(const nsSMILValue& aFrom,
      45             :                                    const nsSMILValue& aTo,
      46             :                                    double& aDistance) const override;
      47             :   virtual nsresult Interpolate(const nsSMILValue& aStartVal,
      48             :                                const nsSMILValue& aEndVal,
      49             :                                double aUnitDistance,
      50             :                                nsSMILValue& aResult) const override;
      51             : 
      52             : private:
      53             :   // Private constructor: prevent instances beyond my singleton.
      54           0 :   constexpr SVGPathSegListSMILType() {}
      55             : };
      56             : 
      57             : } // namespace mozilla
      58             : 
      59             : #endif // MOZILLA_SVGPATHSEGLISTSMILTYPE_H_

Generated by: LCOV version 1.13