Index: Source/core/events/MouseEvent.h |
diff --git a/Source/core/events/MouseEvent.h b/Source/core/events/MouseEvent.h |
index 7914547c960ca2aa471d2535115b0efe583cbfb7..0320b8aa821fc6d3f127dbd2b727fb6d2fc5a448 100644 |
--- a/Source/core/events/MouseEvent.h |
+++ b/Source/core/events/MouseEvent.h |
@@ -79,6 +79,9 @@ public: |
bool fromTouch() const { return m_syntheticEventType == PlatformMouseEvent::FromTouch; } |
+ bool fromScript() const { return m_syntheticEventType == PlatformMouseEvent::FromScript; } |
+ void setFromScript() { m_syntheticEventType = PlatformMouseEvent::FromScript; } |
+ |
virtual const AtomicString& interfaceName() const override; |
virtual bool isMouseEvent() const override; |
@@ -120,16 +123,13 @@ private: |
class MouseEventDispatchMediator final : public EventDispatchMediator { |
public: |
- enum MouseEventType { SyntheticMouseEvent, NonSyntheticMouseEvent}; |
- static PassRefPtrWillBeRawPtr<MouseEventDispatchMediator> create(PassRefPtrWillBeRawPtr<MouseEvent>, MouseEventType = NonSyntheticMouseEvent); |
+ static PassRefPtrWillBeRawPtr<MouseEventDispatchMediator> create(PassRefPtrWillBeRawPtr<MouseEvent>); |
private: |
- explicit MouseEventDispatchMediator(PassRefPtrWillBeRawPtr<MouseEvent>, MouseEventType); |
+ explicit MouseEventDispatchMediator(PassRefPtrWillBeRawPtr<MouseEvent>); |
MouseEvent& event() const; |
virtual bool dispatchEvent(EventDispatcher&) const override; |
- bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMouseEvent; } |
- MouseEventType m_mouseEventType; |
}; |
DEFINE_EVENT_TYPE_CASTS(MouseEvent); |