Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Unified Diff: Source/core/events/ClipboardEvent.h

Issue 1178683007: Introducing ClipboardEvent Constructor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698