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

Generated by: LCOV version 1.13