diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
commit | f499e170777ed789fbe58f6697e3b5a46fa8deda (patch) | |
tree | 439601b6410c9cb2367644714ced54f1a742f911 /webkit/glue/webclipboard_impl.cc | |
parent | 9a0737126e932380b53a2c1dda5364f67871f1f7 (diff) | |
download | chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.zip chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.gz chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.bz2 |
Minor cleanup in webkit/glue:
- created dom_operations_private.h for things that mention WebCore types
that are only needed within webkit/glue.
- moved contents of webkit_glue.h to the right locations.
- moved FilePath::StringType <-> WebString conversion out of glue_util
into webkit_glue since it is part of the public API.
- minimized includes in webkit_glue.h
R=dglazkov
Review URL: http://codereview.chromium.org/27351
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webclipboard_impl.cc')
-rw-r--r-- | webkit/glue/webclipboard_impl.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc index 4e9db87..029643f 100644 --- a/webkit/glue/webclipboard_impl.cc +++ b/webkit/glue/webclipboard_impl.cc @@ -75,7 +75,7 @@ WebString WebClipboardImpl::readPlainText() { std::wstring text; ClipboardReadText(&text); if (!text.empty()) - return WideToUTF16(text); + return WideToUTF16Hack(text); } if (ClipboardIsFormatAvailable(Clipboard::GetPlainTextFormatType())) { @@ -93,15 +93,15 @@ WebString WebClipboardImpl::readHTML(WebURL* source_url) { GURL gurl; ClipboardReadHTML(&html_stdstr, &gurl); *source_url = gurl; - return WideToUTF16(html_stdstr); + return WideToUTF16Hack(html_stdstr); } void WebClipboardImpl::writeHTML( const WebString& html_text, const WebURL& source_url, const WebString& plain_text, bool write_smart_paste) { ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); - scw.WriteHTML(UTF16ToWide(html_text), source_url.spec()); - scw.WriteText(UTF16ToWide(plain_text)); + scw.WriteHTML(UTF16ToWideHack(html_text), source_url.spec()); + scw.WriteText(UTF16ToWideHack(plain_text)); if (write_smart_paste) scw.WriteWebSmartPaste(); @@ -110,7 +110,7 @@ void WebClipboardImpl::writeHTML( void WebClipboardImpl::writeURL(const WebURL& url, const WebString& title) { ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); - scw.WriteBookmark(UTF16ToWide(title), url.spec()); + scw.WriteBookmark(UTF16ToWideHack(title), url.spec()); scw.WriteHTML(UTF8ToWide(URLToMarkup(url, title)), ""); scw.WriteText(UTF8ToWide(url.spec())); } @@ -125,7 +125,7 @@ void WebClipboardImpl::writeImage( #endif if (!url.isEmpty()) { - scw.WriteBookmark(UTF16ToWide(title), url.spec()); + scw.WriteBookmark(UTF16ToWideHack(title), url.spec()); scw.WriteHTML(UTF8ToWide(URLToImageMarkup(url, title)), ""); scw.WriteText(UTF8ToWide(url.spec())); } |