Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGZoomEvent.h
index 59d31ae..0b559c4 100644 (file)
 #include "core/svg/SVGPoint.h"
 #include "core/svg/SVGRect.h"
 
-namespace WebCore {
+namespace blink {
 
-class SVGZoomEvent : public UIEvent {
+class SVGZoomEvent FINAL : public UIEvent {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SVGZoomEvent> create() { return adoptRef(new SVGZoomEvent); }
+    static PassRefPtrWillBeRawPtr<SVGZoomEvent> create()
+    {
+        return adoptRefWillBeNoop(new SVGZoomEvent);
+    }
 
     // 'SVGZoomEvent' functions
-    SVGRect zoomRectScreen() const;
+    PassRefPtr<SVGRectTearOff> zoomRectScreen() const;
 
     float previousScale() const;
-    void setPreviousScale(float);
 
-    SVGPoint previousTranslate() const;
+    PassRefPtr<SVGPointTearOff> previousTranslate() const;
 
     float newScale() const;
-    void setNewScale(float);
 
-    SVGPoint newTranslate() const;
+    PassRefPtr<SVGPointTearOff> newTranslate() const;
 
-    virtual const AtomicString& interfaceName() const;
+    virtual const AtomicString& interfaceName() const OVERRIDE;
+
+    virtual void trace(Visitor*) OVERRIDE;
 
 private:
     SVGZoomEvent();
@@ -53,12 +57,10 @@ private:
     float m_newScale;
     float m_previousScale;
 
-    SVGRect m_zoomRectScreen;
-
-    SVGPoint m_newTranslate;
-    SVGPoint m_previousTranslate;
+    FloatPoint m_newTranslate;
+    FloatPoint m_previousTranslate;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SVGZoomEvent_h