diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-14 23:37:00 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-14 23:37:00 +0000 |
commit | 5d1124b12d49215fce0de40396a892b891f74fae (patch) | |
tree | e0fb5df846d80c30180870f7dd74fb3aea2949f4 /webkit/glue/webclipboard_impl.cc | |
parent | ac381f190519f153566503e5cba87e310c1a3f96 (diff) | |
download | chromium_src-5d1124b12d49215fce0de40396a892b891f74fae.zip chromium_src-5d1124b12d49215fce0de40396a892b891f74fae.tar.gz chromium_src-5d1124b12d49215fce0de40396a892b891f74fae.tar.bz2 |
Remove deprecated WebClipboard::readHTML method.
Now that WebKit r97497 is rolled into Chromium, we no longer need the legacy
interface. As a bonus, the last of the Clipboard::readHTML crashes should be
fixed.
BUG=19360
TEST=ui_unittests and WebKit layout tests
Review URL: http://codereview.chromium.org/8305012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webclipboard_impl.cc')
-rw-r--r-- | webkit/glue/webclipboard_impl.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc index 2f915d8..91876c6 100644 --- a/webkit/glue/webclipboard_impl.cc +++ b/webkit/glue/webclipboard_impl.cc @@ -119,23 +119,6 @@ WebString WebClipboardImpl::readPlainText(Buffer buffer) { return WebString(); } -// TODO(dcheng): For backwards compatibility during the transition. -WebString WebClipboardImpl::readHTML(Buffer buffer, WebURL* source_url) { - ui::Clipboard::Buffer buffer_type; - if (!ConvertBufferType(buffer, &buffer_type)) - return WebString(); - - string16 html_stdstr; - GURL gurl; - uint32 fragment_start = 0; - uint32 fragment_end = 0; - ClipboardReadHTML(buffer_type, &html_stdstr, &gurl, &fragment_start, - &fragment_end); - if (fragment_start != std::string::npos && fragment_end != std::string::npos) - return html_stdstr.substr(fragment_start, fragment_end - fragment_start); - return WebString(); -} - WebString WebClipboardImpl::readHTML(Buffer buffer, WebURL* source_url, unsigned* fragment_start, unsigned* fragment_end) { |