Bug 828901 - Get the seek time as mBasePosition instead of the stream position in...
[gecko.git] / content / smil / SMILIntegerType.h
blobe196b052f25ef3e4ab707387db2c8db796ab9bb0
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"
11 namespace mozilla {
13 class SMILIntegerType : public nsISMILType
15 public:
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,
28 double aUnitDistance,
29 nsSMILValue& aResult) const;
31 static SMILIntegerType sSingleton;
33 private:
34 SMILIntegerType() {}
37 } // namespace mozilla
39 #endif // MOZILLA_SMILINTEGERTYPE_H_