Support smart copy and paste during drag and drop
[WebKit-https.git] / WebCore / platform / win / ClipboardUtilitiesWin.cpp
index fd4180e6e0a4e202890114b02848801550564f74..066e235c8796ccd64c4caa79fcba852c3b11562f 100644 (file)
@@ -265,6 +265,13 @@ FORMATETC* htmlFormat()
     return &htmlFormat;
 }
 
+FORMATETC* smartPasteFormat()
+{
+    static UINT cf = RegisterClipboardFormat(L"WebKit Smart Paste Format");
+    static FORMATETC htmlFormat = {cf, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
+    return &htmlFormat;
+}
+
 static bool urlFromPath(CFStringRef path, String& url)
 {
     if (!path)