Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: webkit/api/src/WebString.cpp

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/WebRange.cpp ('k') | webkit/glue/alt_error_page_resource_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebString.cpp
===================================================================
--- webkit/api/src/WebString.cpp (revision 22886)
+++ webkit/api/src/WebString.cpp (working copy)
@@ -31,6 +31,9 @@
#include "config.h"
#include "WebString.h"
+#include "WebCString.h"
+
+#include "CString.h"
#include "PlatformString.h"
#include "AtomicString.h"
@@ -68,6 +71,11 @@
return m_private ? const_cast<WebStringPrivate*>(m_private)->characters() : 0;
}
+WebCString WebString::utf8() const
+{
+ return WebCore::String(m_private).utf8();
+}
+
WebString WebString::fromUTF8(const char* data, size_t length)
{
return WebCore::String::fromUTF8(data, length);
« no previous file with comments | « webkit/api/src/WebRange.cpp ('k') | webkit/glue/alt_error_page_resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698