Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGAnimatedEnumeration.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_SVGAnimatedEnumeration_h
8
#define mozilla_dom_SVGAnimatedEnumeration_h
9
10
#include "nsWrapperCache.h"
11
12
#include "nsSVGElement.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class SVGAnimatedEnumeration : public nsISupports
18
                             , public nsWrapperCache
19
{
20
public:
21
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
22
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SVGAnimatedEnumeration)
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 uint16_t BaseVal() = 0;
33
  virtual void SetBaseVal(uint16_t aBaseVal, ErrorResult& aRv) = 0;
34
  virtual uint16_t AnimVal() = 0;
35
36
protected:
37
  explicit SVGAnimatedEnumeration(nsSVGElement* aSVGElement)
38
    : mSVGElement(aSVGElement)
39
0
  {
40
0
  }
41
0
  virtual ~SVGAnimatedEnumeration() {};
42
43
  RefPtr<nsSVGElement> mSVGElement;
44
};
45
46
} // namespace dom
47
} // namespace mozilla
48
49
#endif // mozilla_dom_SVGAnimatedEnumeration_h