summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webclipboard_impl.cc
diff options
context:
space:
mode:
authorapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 10:54:22 +0000
committerapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 10:54:22 +0000
commit8c95a751e863e2db3ddebff6971674cf627b4285 (patch)
tree6034dc8506312c3f36e97caee6266138ae0d209d /webkit/glue/webclipboard_impl.cc
parent59b923cc29b6b680a4d60114a3ce50665c0c0cb9 (diff)
downloadchromium_src-8c95a751e863e2db3ddebff6971674cf627b4285.zip
chromium_src-8c95a751e863e2db3ddebff6971674cf627b4285.tar.gz
chromium_src-8c95a751e863e2db3ddebff6971674cf627b4285.tar.bz2
This is an implementation of the bridge method for copying arbitrary plaintext onto a clipboard in Chromium. The method is declared upstream, in a patch associated with
https://bugs.webkit.org/show_bug.cgi?id=29634 Review URL: http://codereview.chromium.org/211052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webclipboard_impl.cc')
-rw-r--r--webkit/glue/webclipboard_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc
index 4798eff..d9aed7a 100644
--- a/webkit/glue/webclipboard_impl.cc
+++ b/webkit/glue/webclipboard_impl.cc
@@ -129,6 +129,11 @@ void WebClipboardImpl::writeHTML(
scw.WriteWebSmartPaste();
}
+void WebClipboardImpl::writePlainText(const WebString& plain_text) {
+ ScopedClipboardWriterGlue scw(ClipboardGetClipboard());
+ scw.WriteText(plain_text);
+}
+
void WebClipboardImpl::writeURL(const WebURL& url, const WebString& title) {
ScopedClipboardWriterGlue scw(ClipboardGetClipboard());