diff options
Diffstat (limited to 'Source/WebCore/dom/MouseEvent.h')
-rw-r--r-- | Source/WebCore/dom/MouseEvent.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/WebCore/dom/MouseEvent.h b/Source/WebCore/dom/MouseEvent.h index 7454b04..06e6218 100644 --- a/Source/WebCore/dom/MouseEvent.h +++ b/Source/WebCore/dom/MouseEvent.h @@ -29,6 +29,8 @@ namespace WebCore { +class PlatformMouseEvent; + // Introduced in DOM Level 2 class MouseEvent : public MouseRelatedEvent { public: @@ -44,6 +46,8 @@ namespace WebCore { return adoptRef(new MouseEvent(type, canBubble, cancelable, view, detail, screenX, screenY, pageX, pageY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, clipboard, isSimulated)); } + static PassRefPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, const PlatformMouseEvent&, const IntPoint&, int detail, PassRefPtr<Node> relatedTarget); + virtual ~MouseEvent(); void initMouseEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, @@ -68,19 +72,30 @@ namespace WebCore { virtual bool isDragEvent() const; virtual int which() const; - private: - MouseEvent(); + protected: MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, int detail, int screenX, int screenY, int pageX, int pageY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, PassRefPtr<EventTarget> relatedTarget, PassRefPtr<Clipboard> clipboard, bool isSimulated); + private: + MouseEvent(); + unsigned short m_button; bool m_buttonDown; RefPtr<EventTarget> m_relatedTarget; RefPtr<Clipboard> m_clipboard; }; +class SimulatedMouseEvent : public MouseEvent { +public: + static PassRefPtr<SimulatedMouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, PassRefPtr<Event> underlyingEvent); + virtual ~SimulatedMouseEvent(); + +private: + SimulatedMouseEvent(const AtomicString& eventType, PassRefPtr<AbstractView>, PassRefPtr<Event> underlyingEvent); +}; + } // namespace WebCore #endif // MouseEvent_h |