Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/svg/SVGAnimatedInteger.h
Line
Count
Source (jump to first uncovered line)
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_dom_SVGAnimatedInteger_h
8
#define mozilla_dom_SVGAnimatedInteger_h
9
10
#include "nsWrapperCache.h"
11
12
#include "nsSVGElement.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class SVGAnimatedInteger : public nsISupports
18
                         , public nsWrapperCache
19
{
20
public:
21
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
22
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SVGAnimatedInteger)
23
24
  nsSVGElement* GetParentObject() const
25
0
  {
26
0
    return mSVGElement;
27
0
  }
28
29
  JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
30
    final;
31
32
  virtual int32_t BaseVal() = 0;
33
  virtual void SetBaseVal(int32_t aBaseVal) = 0;
34
  virtual int32_t AnimVal() = 0;
35
36
protected:
37
  explicit SVGAnimatedInteger(nsSVGElement* aSVGElement)
38
    : mSVGElement(aSVGElement)
39
  {
40
  }
41
  virtual ~SVGAnimatedInteger() {};
42
43
  RefPtr<nsSVGElement> mSVGElement;
44
};
45
46
} // namespace dom
47
} // namespace mozilla
48
49
#endif // mozilla_dom_SVGAnimatedInteger_h