| Index: Source/core/events/UIEvent.h
|
| diff --git a/Source/core/events/UIEvent.h b/Source/core/events/UIEvent.h
|
| index 860e961f91099353348f439497d87935577cd1c7..61288bc84067ada59ffa6bd0e466fcc25a89dfd1 100644
|
| --- a/Source/core/events/UIEvent.h
|
| +++ b/Source/core/events/UIEvent.h
|
| @@ -29,6 +29,9 @@
|
| #include "core/events/EventDispatchMediator.h"
|
| #include "core/events/UIEventInit.h"
|
| #include "core/frame/DOMWindow.h"
|
| +#include "core/input/InputDevice.h"
|
| +
|
| +#include <stdlib.h>
|
|
|
| namespace blink {
|
|
|
| @@ -56,6 +59,10 @@ public:
|
|
|
| AbstractView* view() const { return m_view.get(); }
|
| int detail() const { return m_detail; }
|
| + InputDevice* sourceDevice() const
|
| + {
|
| + return m_sourceDevice.get();
|
| + }
|
|
|
| virtual const AtomicString& interfaceName() const override;
|
| virtual bool isUIEvent() const override final;
|
| @@ -75,12 +82,14 @@ public:
|
|
|
| protected:
|
| UIEvent();
|
| + UIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, int detail, PassRefPtrWillBeRawPtr<InputDevice> sourceDevice);
|
| UIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, int detail);
|
| UIEvent(const AtomicString&, const UIEventInit&);
|
|
|
| private:
|
| RefPtrWillBeMember<AbstractView> m_view;
|
| int m_detail;
|
| + RefPtrWillBeMember<InputDevice> m_sourceDevice;
|
| };
|
|
|
| } // namespace blink
|
|
|