/work/obj-fuzz/dist/include/mozilla/dom/SVGAnimatedString.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_SVGAnimatedString_h |
8 | | #define mozilla_dom_SVGAnimatedString_h |
9 | | |
10 | | #include "nsSVGElement.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class SVGAnimatedString : public nsISupports, |
16 | | public nsWrapperCache |
17 | | { |
18 | | public: |
19 | | explicit SVGAnimatedString(nsSVGElement* aSVGElement) |
20 | | : mSVGElement(aSVGElement) |
21 | 0 | { |
22 | 0 | } |
23 | | |
24 | | virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
25 | | |
26 | | // WebIDL |
27 | | nsSVGElement* GetParentObject() const |
28 | 0 | { |
29 | 0 | return mSVGElement; |
30 | 0 | } |
31 | | |
32 | | virtual void GetBaseVal(nsAString& aResult) = 0; |
33 | | virtual void SetBaseVal(const nsAString& aValue) = 0; |
34 | | virtual void GetAnimVal(nsAString& aResult) = 0; |
35 | | |
36 | | RefPtr<nsSVGElement> mSVGElement; |
37 | | }; |
38 | | |
39 | | } // namespace dom |
40 | | } // namespace mozilla |
41 | | |
42 | | #endif // mozilla_dom_SVGAnimatedString_h |