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/. */
7 #ifndef mozilla_dom_DOMSVGAnimatedString_h
8 #define mozilla_dom_DOMSVGAnimatedString_h
10 #include "SVGElement.h"
15 class DOMSVGAnimatedString
: public nsISupports
, public nsWrapperCache
{
17 explicit DOMSVGAnimatedString(SVGElement
* aSVGElement
)
18 : mSVGElement(aSVGElement
) {}
20 virtual JSObject
* WrapObject(JSContext
* aCx
,
21 JS::Handle
<JSObject
*> aGivenProto
) override
;
24 SVGElement
* GetParentObject() const { return mSVGElement
; }
26 virtual void GetBaseVal(nsAString
& aResult
) = 0;
27 virtual void SetBaseVal(const nsAString
& aValue
) = 0;
28 virtual void GetAnimVal(nsAString
& aResult
) = 0;
30 RefPtr
<SVGElement
> mSVGElement
;
34 } // namespace mozilla
36 #endif // mozilla_dom_DOMSVGAnimatedString_h