/work/obj-fuzz/dist/include/mozilla/dom/SVGIRect.h
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | |
7 | | #ifndef mozilla_dom_SVGIRect_h |
8 | | #define mozilla_dom_SVGIRect_h |
9 | | |
10 | | #include "nsCycleCollectionParticipant.h" |
11 | | #include "mozilla/dom/SVGRectBinding.h" |
12 | | #include "mozilla/Attributes.h" |
13 | | #include "mozilla/ErrorResult.h" |
14 | | #include "nsWrapperCache.h" |
15 | | |
16 | | class nsIContent; |
17 | | |
18 | | namespace mozilla { |
19 | | namespace dom { |
20 | | |
21 | | class SVGIRect : public nsISupports, |
22 | | public nsWrapperCache |
23 | | { |
24 | | public: |
25 | | virtual ~SVGIRect() |
26 | 0 | { |
27 | 0 | } |
28 | | |
29 | | JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
30 | 0 | { |
31 | 0 | return SVGRect_Binding::Wrap(aCx, this, aGivenProto); |
32 | 0 | } |
33 | | |
34 | | virtual nsIContent* GetParentObject() const = 0; |
35 | | |
36 | | virtual float X() const = 0; |
37 | | |
38 | | virtual void SetX(float aX, ErrorResult& aRv) = 0; |
39 | | |
40 | | virtual float Y() const = 0; |
41 | | |
42 | | virtual void SetY(float aY, ErrorResult& aRv) = 0; |
43 | | |
44 | | virtual float Width() const = 0; |
45 | | |
46 | | virtual void SetWidth(float aWidth, ErrorResult& aRv) = 0; |
47 | | |
48 | | virtual float Height() const = 0; |
49 | | |
50 | | virtual void SetHeight(float aHeight, ErrorResult& aRv) = 0; |
51 | | }; |
52 | | |
53 | | } // namespace dom |
54 | | } // namespace mozilla |
55 | | |
56 | | #endif //mozilla_dom_SVGIRect_h |
57 | | |