diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGZoomEvent.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGZoomEvent.h')
-rw-r--r-- | Source/WebCore/svg/SVGZoomEvent.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/Source/WebCore/svg/SVGZoomEvent.h b/Source/WebCore/svg/SVGZoomEvent.h index 6e29dfd52..d7e3fd1ed 100644 --- a/Source/WebCore/svg/SVGZoomEvent.h +++ b/Source/WebCore/svg/SVGZoomEvent.h @@ -19,34 +19,34 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGZoomEvent_h -#define SVGZoomEvent_h -#if ENABLE(SVG) +#pragma once #include "FloatRect.h" -#include "SVGPoint.h" #include "UIEvent.h" namespace WebCore { -class SVGZoomEvent : public UIEvent { +class SVGPoint; +class SVGRect; + +class SVGZoomEvent final : public UIEvent { public: - static PassRefPtr<SVGZoomEvent> create() { return adoptRef(new SVGZoomEvent); } + static Ref<SVGZoomEvent> createForBindings() { return adoptRef(*new SVGZoomEvent); } // 'SVGZoomEvent' functions - FloatRect zoomRectScreen() const; + Ref<SVGRect> zoomRectScreen() const; float previousScale() const; void setPreviousScale(float); - SVGPoint previousTranslate() const; + Ref<SVGPoint> previousTranslate() const; float newScale() const; void setNewScale(float); - SVGPoint newTranslate() const; + Ref<SVGPoint> newTranslate() const; - virtual EventInterface eventInterface() const override; + EventInterface eventInterface() const final; private: SVGZoomEvent(); @@ -56,13 +56,8 @@ private: FloatRect m_zoomRectScreen; - SVGPoint m_newTranslate; - SVGPoint m_previousTranslate; + FloatPoint m_newTranslate; + FloatPoint m_previousTranslate; }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif // SVGZoomEvent_h - -// vim:ts=4:noet |