Bumping gaia.json for 3 gaia revision(s) a=gaia-bump
[gecko.git] / dom / svg / SVGIRect.h
blob69a5835e77738f4ac6a35e85f3d277ded3a1241b
1 /* -*- Mode: C++; tab-width: 2; 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/. */
6 #ifndef mozilla_dom_SVGIRect_h
7 #define mozilla_dom_SVGIRect_h
9 #include "nsCycleCollectionParticipant.h"
10 #include "mozilla/dom/SVGRectBinding.h"
11 #include "mozilla/Attributes.h"
12 #include "mozilla/ErrorResult.h"
13 #include "nsWrapperCache.h"
15 class nsIContent;
16 class nsSVGElement;
18 namespace mozilla {
19 namespace dom {
21 class SVGIRect : public nsISupports,
22 public nsWrapperCache
24 public:
25 virtual ~SVGIRect()
29 JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE
31 return SVGRectBinding::Wrap(aCx, this);
34 virtual nsIContent* GetParentObject() const = 0;
36 virtual float X() const = 0;
38 virtual void SetX(float aX, ErrorResult& aRv) = 0;
40 virtual float Y() const = 0;
42 virtual void SetY(float aY, ErrorResult& aRv) = 0;
44 virtual float Width() const = 0;
46 virtual void SetWidth(float aWidth, ErrorResult& aRv) = 0;
48 virtual float Height() const = 0;
50 virtual void SetHeight(float aHeight, ErrorResult& aRv) = 0;
53 } // namespace dom
54 } // namespace mozilla
56 #endif //mozilla_dom_SVGIRect_h