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

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

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: xiaocheng's review: Isolate |UndoStep| code; Move attribuates to private 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 a4305db054aef75522ab92ba24195094d6241825..e52fd5483fea830cb49b1aa5637cd0cd9aa382b3 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