LCOV - code coverage report
Current view: top level - dom/svg - SVGIntegerPairSMILType.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_SVGINTEGERPAIRSMILTYPE_H_
       8             : #define MOZILLA_SVGINTEGERPAIRSMILTYPE_H_
       9             : 
      10             : #include "mozilla/Attributes.h"
      11             : #include "nsISMILType.h"
      12             : 
      13             : class nsSMILValue;
      14             : 
      15             : namespace mozilla {
      16             : 
      17             : class SVGIntegerPairSMILType : public nsISMILType
      18             : {
      19             : public:
      20             :   // Singleton for nsSMILValue objects to hold onto.
      21             :   static SVGIntegerPairSMILType*
      22           0 :   Singleton()
      23             :   {
      24           0 :     static SVGIntegerPairSMILType sSingleton;
      25           0 :     return &sSingleton;
      26             :   }
      27             : 
      28             : protected:
      29             :   // nsISMILType Methods
      30             :   // -------------------
      31             :   virtual void     Init(nsSMILValue& aValue) const override;
      32             :   virtual void     Destroy(nsSMILValue&) const override;
      33             :   virtual nsresult Assign(nsSMILValue& aDest, const nsSMILValue& aSrc) const override;
      34             :   virtual bool     IsEqual(const nsSMILValue& aLeft,
      35             :                            const nsSMILValue& aRight) const override;
      36             :   virtual nsresult Add(nsSMILValue& aDest, const nsSMILValue& aValueToAdd,
      37             :                        uint32_t aCount) const override;
      38             :   virtual nsresult ComputeDistance(const nsSMILValue& aFrom,
      39             :                                    const nsSMILValue& aTo,
      40             :                                    double& aDistance) const override;
      41             :   virtual nsresult Interpolate(const nsSMILValue& aStartVal,
      42             :                                const nsSMILValue& aEndVal,
      43             :                                double aUnitDistance,
      44             :                                nsSMILValue& aResult) const override;
      45             : 
      46             : private:
      47             :   // Private constructor: prevent instances beyond my singleton.
      48           0 :   constexpr SVGIntegerPairSMILType() {}
      49             : };
      50             : 
      51             : } // namespace mozilla
      52             : 
      53             : #endif // MOZILLA_SVGINTEGERPAIRSMILTYPE_H_

Generated by: LCOV version 1.13