summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 22:37:07 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 22:37:07 +0000
commit38b299b2fce769fa1498daf40b51961eac6bea72 (patch)
tree5549b48afcde7a2dd00acfbe1b3671cbc11e99e9 /webkit/tools/test_shell/test_webview_delegate.cc
parentc65f68f5b3db824102181d790ef091c4afee0fab (diff)
downloadchromium_src-38b299b2fce769fa1498daf40b51961eac6bea72.zip
chromium_src-38b299b2fce769fa1498daf40b51961eac6bea72.tar.gz
chromium_src-38b299b2fce769fa1498daf40b51961eac6bea72.tar.bz2
Revert 122370 - Update WebClipboard/WebDropData glue to use new getter/setters for WebDragData.
This change will help us implement the HTML spec for DataTransferItemList correctly. BUG=112255 TEST=manual + WebKit layout tests Review URL: https://chromiumcodereview.appspot.com/9318003 TBR=dcheng@chromium.org Review URL: https://chromiumcodereview.appspot.com/9416039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 5baf744..01c2b68 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -158,13 +158,10 @@ std::string DescriptionSuitableForTestResult(const std::string& url) {
return url.substr(pos + 1);
}
-// Adds a file called "DRTFakeFile" to |data_object|. Use to fake dragging a
-// file.
+// Adds a file called "DRTFakeFile" to |data_object| (CF_HDROP). Use to fake
+// dragging a file.
void AddDRTFakeFileToDataObject(WebDragData* drag_data) {
- WebDragData::Item item;
- item.storageType = WebDragData::Item::StorageTypeFilename;
- item.filenameData = WebString::fromUTF8("DRTFakeFile");
- drag_data->addItem(item);
+ drag_data->appendToFilenames(WebString::fromUTF8("DRTFakeFile"));
}
// Get a debugging string from a WebNavigationType.