Bug 1700051: part 46) Const-qualify `mozInlineSpellStatus::mAnchorRange`. r=smaug
[gecko.git] / dom / svg / DOMSVGAnimatedEnumeration.h
bloba174999ca9359134dbc90ce8b70a4275608658ae
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 DOM_SVG_DOMSVGANIMATEDENUMERATION_H_
8 #define DOM_SVG_DOMSVGANIMATEDENUMERATION_H_
10 #include "nsWrapperCache.h"
12 #include "SVGElement.h"
14 namespace mozilla {
15 namespace dom {
17 class DOMSVGAnimatedEnumeration : public nsWrapperCache {
18 public:
19 NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMSVGAnimatedEnumeration)
20 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMSVGAnimatedEnumeration)
22 SVGElement* GetParentObject() const { return mSVGElement; }
24 JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
26 virtual uint16_t BaseVal() = 0;
27 virtual void SetBaseVal(uint16_t aBaseVal, ErrorResult& aRv) = 0;
28 virtual uint16_t AnimVal() = 0;
30 protected:
31 explicit DOMSVGAnimatedEnumeration(SVGElement* aSVGElement)
32 : mSVGElement(aSVGElement) {}
33 virtual ~DOMSVGAnimatedEnumeration() = default;
35 RefPtr<SVGElement> mSVGElement;
38 } // namespace dom
39 } // namespace mozilla
41 #endif // DOM_SVG_DOMSVGANIMATEDENUMERATION_H_