| Index: Source/core/events/ClipboardEvent.h
|
| diff --git a/Source/core/events/ClipboardEvent.h b/Source/core/events/ClipboardEvent.h
|
| index 76f7de2ac931df6e1d9257fb871d5d13c3d9fd3c..ff8b3b28796a8c0c23920dd77321e1c9dddf996a 100644
|
| --- a/Source/core/events/ClipboardEvent.h
|
| +++ b/Source/core/events/ClipboardEvent.h
|
| @@ -25,6 +25,7 @@
|
| #define ClipboardEvent_h
|
|
|
| #include "core/clipboard/DataTransfer.h"
|
| +#include "core/events/ClipboardEventInit.h"
|
| #include "core/events/Event.h"
|
|
|
| namespace blink {
|
| @@ -43,6 +44,11 @@ public:
|
| return adoptRefWillBeNoop(new ClipboardEvent(type, canBubble, cancelable, dataTransfer));
|
| }
|
|
|
| + static PassRefPtrWillBeRawPtr<ClipboardEvent> create(const AtomicString& type, const ClipboardEventInit& initializer)
|
| + {
|
| + return adoptRefWillBeNoop(new ClipboardEvent(type, initializer));
|
| + }
|
| +
|
| DataTransfer* clipboardData() const { return m_clipboardData.get(); }
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
| @@ -50,6 +56,7 @@ public:
|
| private:
|
| ClipboardEvent();
|
| ClipboardEvent(const AtomicString& type, bool canBubble, bool cancelable, DataTransfer* clipboardData);
|
| + ClipboardEvent(const AtomicString& type, const ClipboardEventInit&);
|
|
|
| virtual const AtomicString& interfaceName() const override;
|
| virtual bool isClipboardEvent() const override;
|
|
|