2013-07-01 11:02:56 +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/. */
|
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#ifndef DOM_SVG_DOMSVGANIMATEDINTEGER_H_
|
|
|
|
#define DOM_SVG_DOMSVGANIMATEDINTEGER_H_
|
2013-07-01 11:02:56 +04:00
|
|
|
|
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
#include "SVGElement.h"
|
2013-07-01 11:02:56 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2019-03-19 03:01:03 +03:00
|
|
|
class DOMSVGAnimatedInteger : public nsISupports, public nsWrapperCache {
|
2013-07-01 11:02:56 +04:00
|
|
|
public:
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
2019-03-19 03:01:03 +03:00
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGAnimatedInteger)
|
2013-07-01 11:02:56 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
SVGElement* GetParentObject() const { return mSVGElement; }
|
2013-07-01 11:02:56 +04:00
|
|
|
|
2018-02-09 08:22:43 +03:00
|
|
|
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
|
2013-07-01 11:02:56 +04:00
|
|
|
|
|
|
|
virtual int32_t BaseVal() = 0;
|
|
|
|
virtual void SetBaseVal(int32_t aBaseVal) = 0;
|
|
|
|
virtual int32_t AnimVal() = 0;
|
|
|
|
|
|
|
|
protected:
|
2019-03-19 03:01:03 +03:00
|
|
|
explicit DOMSVGAnimatedInteger(SVGElement* aSVGElement)
|
2013-07-01 11:02:56 +04:00
|
|
|
: mSVGElement(aSVGElement) {}
|
2019-04-18 01:38:02 +03:00
|
|
|
virtual ~DOMSVGAnimatedInteger() = default;
|
2013-07-01 11:02:56 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
RefPtr<SVGElement> mSVGElement;
|
2013-07-01 11:02:56 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#endif // DOM_SVG_DOMSVGANIMATEDINTEGER_H_
|