Chromium Code Reviews| 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, |
|
Xiaocheng
2016/12/22 06:26:20
Hmm... This is a behavior change.
We were creatin
chongz
2016/12/22 19:32:26
Sorry for the confusion, there is actually no beha
|
| + DataObject::createFromPlainTextAndHTML(plainText, htmlText)); |
| +} |
| + |
| DataTransfer::~DataTransfer() {} |
| void DataTransfer::setDropEffect(const String& effect) { |