2013-03-26 08:53:13 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_SVGIRect_h
|
|
|
|
#define mozilla_dom_SVGIRect_h
|
|
|
|
|
|
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
#include "mozilla/dom/SVGRectBinding.h"
|
|
|
|
#include "mozilla/Attributes.h"
|
|
|
|
#include "mozilla/ErrorResult.h"
|
2013-05-09 10:42:12 -07:00
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
|
2014-08-18 07:44:50 -07:00
|
|
|
class nsIContent;
|
2013-05-09 10:42:12 -07:00
|
|
|
class nsSVGElement;
|
2013-03-26 08:53:13 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2013-05-09 10:42:12 -07:00
|
|
|
class SVGIRect : public nsISupports,
|
2013-05-09 10:42:12 -07:00
|
|
|
public nsWrapperCache
|
2013-03-26 08:53:13 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-05-09 10:42:12 -07:00
|
|
|
virtual ~SVGIRect()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-04-08 15:27:18 -07:00
|
|
|
JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE
|
2013-03-26 08:53:13 -07:00
|
|
|
{
|
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 15:27:17 -07:00
|
|
|
return SVGRectBinding::Wrap(aCx, this);
|
2013-03-26 08:53:13 -07:00
|
|
|
}
|
|
|
|
|
2013-05-16 11:06:21 -07:00
|
|
|
virtual nsIContent* GetParentObject() const = 0;
|
2013-05-09 10:42:12 -07:00
|
|
|
|
2013-03-26 08:53:13 -07:00
|
|
|
virtual float X() const = 0;
|
|
|
|
|
|
|
|
virtual void SetX(float aX, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Y() const = 0;
|
|
|
|
|
|
|
|
virtual void SetY(float aY, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Width() const = 0;
|
|
|
|
|
|
|
|
virtual void SetWidth(float aWidth, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Height() const = 0;
|
|
|
|
|
|
|
|
virtual void SetHeight(float aHeight, ErrorResult& aRv) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif //mozilla_dom_SVGIRect_h
|
|
|
|
|