2013-07-01 11:02:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
#ifndef mozilla_dom_DOMSVGAnimatedEnumeration_h
|
|
|
|
#define mozilla_dom_DOMSVGAnimatedEnumeration_h
|
2013-07-01 11:02:46 +04:00
|
|
|
|
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
#include "SVGElement.h"
|
2013-07-01 11:02:46 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
class DOMSVGAnimatedEnumeration : public nsISupports, public nsWrapperCache {
|
2013-07-01 11:02:46 +04:00
|
|
|
public:
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGAnimatedEnumeration)
|
2013-07-01 11:02:46 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
SVGElement* GetParentObject() const { return mSVGElement; }
|
2013-07-01 11:02:46 +04:00
|
|
|
|
2018-02-09 08:22:43 +03:00
|
|
|
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
|
2013-07-01 11:02:46 +04:00
|
|
|
|
|
|
|
virtual uint16_t BaseVal() = 0;
|
|
|
|
virtual void SetBaseVal(uint16_t aBaseVal, ErrorResult& aRv) = 0;
|
|
|
|
virtual uint16_t AnimVal() = 0;
|
|
|
|
|
|
|
|
protected:
|
2019-03-19 03:01:03 +03:00
|
|
|
explicit DOMSVGAnimatedEnumeration(SVGElement* aSVGElement)
|
2013-07-01 11:02:46 +04:00
|
|
|
: mSVGElement(aSVGElement) {}
|
2019-04-18 01:38:02 +03:00
|
|
|
virtual ~DOMSVGAnimatedEnumeration() = default;
|
2013-07-01 11:02:46 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
RefPtr<SVGElement> mSVGElement;
|
2013-07-01 11:02:46 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
#endif // mozilla_dom_DOMSVGAnimatedEnumeration_h
|