SVGAnimatedString.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -*- Mode: C++; tab-width: 8; 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/. */
  5. #ifndef mozilla_dom_SVGAnimatedString_h
  6. #define mozilla_dom_SVGAnimatedString_h
  7. #include "nsSVGElement.h"
  8. namespace mozilla {
  9. namespace dom {
  10. class SVGAnimatedString : public nsISupports,
  11. public nsWrapperCache
  12. {
  13. public:
  14. explicit SVGAnimatedString(nsSVGElement* aSVGElement)
  15. : mSVGElement(aSVGElement)
  16. {
  17. }
  18. virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
  19. // WebIDL
  20. nsSVGElement* GetParentObject() const
  21. {
  22. return mSVGElement;
  23. }
  24. virtual void GetBaseVal(nsAString& aResult) = 0;
  25. virtual void SetBaseVal(const nsAString& aValue) = 0;
  26. virtual void GetAnimVal(nsAString& aResult) = 0;
  27. RefPtr<nsSVGElement> mSVGElement;
  28. };
  29. } // namespace dom
  30. } // namespace mozilla
  31. #endif // mozilla_dom_SVGAnimatedString_h