summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdropdata.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 23:25:03 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 23:25:03 +0000
commit0bcde72cee05bb587e7069a490081834e6ceac1c (patch)
tree7b5e59f055a1f038ceb7e891a054c26acc6d1d7e /webkit/glue/webdropdata.h
parent4f8b87a4c6d06ebad053160a61fc90492afc8439 (diff)
downloadchromium_src-0bcde72cee05bb587e7069a490081834e6ceac1c.zip
chromium_src-0bcde72cee05bb587e7069a490081834e6ceac1c.tar.gz
chromium_src-0bcde72cee05bb587e7069a490081834e6ceac1c.tar.bz2
Remove windows-isms from drag & drop. This
makes it more portable, fixes some bugs, and removes glue from port. Review URL: http://codereview.chromium.org/9801 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdropdata.h')
-rw-r--r--webkit/glue/webdropdata.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/webkit/glue/webdropdata.h b/webkit/glue/webdropdata.h
index f941a78..38d67b4 100644
--- a/webkit/glue/webdropdata.h
+++ b/webkit/glue/webdropdata.h
@@ -6,8 +6,8 @@
// union of all the types of data that can be dropped in a platform neutral
// way.
-#ifndef WEBKIT_GLUE_WEBDROPDATA_H__
-#define WEBKIT_GLUE_WEBDROPDATA_H__
+#ifndef WEBKIT_GLUE_WEBDROPDATA_H_
+#define WEBKIT_GLUE_WEBDROPDATA_H_
#include <string>
#include <vector>
@@ -27,6 +27,9 @@ struct WebDropData {
std::wstring plain_text;
// User is dragging MS HTML into the webview (e.g., out of IE).
+ // TODO(tc): We should remove this from webdropdata because not all platforms
+ // have cf_html. On the browser side, we should do the necessary conversions
+ // so we still support cf_html.
std::wstring cf_html;
// User is dragging text/html into the webview (e.g., out of Firefox).
@@ -36,15 +39,11 @@ struct WebDropData {
std::wstring file_description_filename;
std::string file_contents;
- // A reference to the underlying IDataObject. This is a Windows drag and
- // drop specific object. This should only be used by the test shell.
- IDataObject* data_object;
-
// Helper method for converting Window's specific IDataObject to a WebDropData
- // object.
+ // object. TODO(tc): Move this to the browser side since it's Windows
+ // specific and no longer used in webkit.
static void PopulateWebDropData(IDataObject* data_object,
WebDropData* drop_data);
};
-#endif // WEBKIT_GLUE_WEBDROPDATA_H__
-
+#endif // WEBKIT_GLUE_WEBDROPDATA_H_