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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 9318003: Update WebClipboard/WebDropData glue to use new getter/setter for WebDragData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 10 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
« no previous file with comments | « webkit/tools/test_shell/mock_webclipboard_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate.cc
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 01c2b6844c95cd92427eb851b88ecaec748264b7..5baf7445b01a939f7b089b200cc4d68514d41291 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -158,10 +158,13 @@ std::string DescriptionSuitableForTestResult(const std::string& url) {
return url.substr(pos + 1);
}
-// Adds a file called "DRTFakeFile" to |data_object| (CF_HDROP). Use to fake
-// dragging a file.
+// Adds a file called "DRTFakeFile" to |data_object|. Use to fake dragging a
+// file.
void AddDRTFakeFileToDataObject(WebDragData* drag_data) {
- drag_data->appendToFilenames(WebString::fromUTF8("DRTFakeFile"));
+ WebDragData::Item item;
+ item.storageType = WebDragData::Item::StorageTypeFilename;
+ item.filenameData = WebString::fromUTF8("DRTFakeFile");
+ drag_data->addItem(item);
}
// Get a debugging string from a WebNavigationType.
« no previous file with comments | « webkit/tools/test_shell/mock_webclipboard_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698