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

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: . Created 8 years, 11 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
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 91737f677e53bef5178a469bb1a035ed1b7c3357..6fac07c9127a12de9b3d51ab4d0dc9cd6ef9f03d 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::FILENAME;
+ item.filenameData = WebString::fromUTF8("DRTFakeFile");
+ drag_data->addItem(item);
}
// Get a debugging string from a WebNavigationType.
« webkit/glue/webdropdata.cc ('K') | « 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