1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef MOZILLA_SMILINTEGERTYPE_H_
7 #define MOZILLA_SMILINTEGERTYPE_H_
9 #include "nsISMILType.h"
13 class SMILIntegerType
: public nsISMILType
16 virtual void Init(nsSMILValue
& aValue
) const;
17 virtual void Destroy(nsSMILValue
&) const;
18 virtual nsresult
Assign(nsSMILValue
& aDest
, const nsSMILValue
& aSrc
) const;
19 virtual bool IsEqual(const nsSMILValue
& aLeft
,
20 const nsSMILValue
& aRight
) const;
21 virtual nsresult
Add(nsSMILValue
& aDest
, const nsSMILValue
& aValueToAdd
,
22 uint32_t aCount
) const;
23 virtual nsresult
ComputeDistance(const nsSMILValue
& aFrom
,
24 const nsSMILValue
& aTo
,
25 double& aDistance
) const;
26 virtual nsresult
Interpolate(const nsSMILValue
& aStartVal
,
27 const nsSMILValue
& aEndVal
,
29 nsSMILValue
& aResult
) const;
31 static SMILIntegerType sSingleton
;
37 } // namespace mozilla
39 #endif // MOZILLA_SMILINTEGERTYPE_H_