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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index dcb895f94a4ae66d938eccf0a7e25fc7d568fff0..846904d835dac67666ee5756d55f9f5acdea67a2 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -115,6 +115,13 @@ DataTransfer* DataTransfer::create(DataTransferType type,
return new DataTransfer(type, policy, dataObject);
}
+DataTransfer* DataTransfer::createForInputEvent(const String& plainText,
+ const String& htmlText) {
+ return new DataTransfer(
+ InputEvent, DataTransferReadable,
+ DataObject::createFromPlainTextAndHTML(plainText, htmlText));
+}
+
DataTransfer::~DataTransfer() {}
void DataTransfer::setDropEffect(const String& effect) {

Powered by Google App Engine
This is Rietveld 408576698