summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chromium_bridge_impl.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-08 23:02:33 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-08 23:02:33 +0000
commit7639435df5182f0541502cc1ab918e76c5def3ef (patch)
tree16e3dc3fe6127a55df217a3b8895eba2dd4e5996 /webkit/glue/chromium_bridge_impl.cc
parentf928af12f2bd35d02cef287bee2527b901495a7b (diff)
downloadchromium_src-7639435df5182f0541502cc1ab918e76c5def3ef.zip
chromium_src-7639435df5182f0541502cc1ab918e76c5def3ef.tar.gz
chromium_src-7639435df5182f0541502cc1ab918e76c5def3ef.tar.bz2
Add HTML for the image to the clipboard when the user selects
"Copy Image" from the context menu. IE7 does this, while firefox only copies the image data. This causes a paste into MS Word to do the same thing for Chrome and IE7 (e.g., it gets the alt text added to the image). This is different from Firefox which only copies the image data directly. This is also necessary to pass a layout test, but this particular layout test is skipped on Safari Win upstream because they only copy the image data w/o the HTML. In summary, it seems like both behaviors is ok, but more formats seems better than less formats. BUG=1176 Review URL: http://codereview.chromium.org/13640 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chromium_bridge_impl.cc')
-rw-r--r--webkit/glue/chromium_bridge_impl.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc
index d13d866..38b5f96 100644
--- a/webkit/glue/chromium_bridge_impl.cc
+++ b/webkit/glue/chromium_bridge_impl.cc
@@ -185,14 +185,8 @@ void ChromiumBridge::clipboardWriteImage(const NativeImageSkia* bitmap,
if (!url.isEmpty()) {
GURL gurl = webkit_glue::KURLToGURL(url);
scw.WriteBookmark(webkit_glue::StringToStdWString(title), gurl.spec());
-
-#if defined(OS_MACOSX) || defined(OS_LINUX)
- // We intentionally don't write HTML or text to the clipboard on Windows
- // because some apps prefer HTML or text to the image data but we want the
- // image data to take priority.
scw.WriteHTML(UrlToImageMarkup(url, title), "");
scw.WriteText(ASCIIToWide(gurl.spec()));
-#endif
}
}