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

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

Issue 243032: First implementation of PlainTextController. (Closed)
Patch Set: '' Created 11 years, 1 month 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/WebBindings.cpp ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebRange.cpp
===================================================================
--- webkit/api/src/WebRange.cpp (revision 31188)
+++ webkit/api/src/WebRange.cpp (working copy)
@@ -32,6 +32,7 @@
#include "WebRange.h"
#include "WebNode.h"
+#include "WebString.h"
#include "Range.h"
#include <wtf/PassRefPtr.h>
@@ -76,6 +77,16 @@
return PassRefPtr<Node>(m_private->endContainer(exceptionCode));
}
+WebString WebRange::toHTMLText() const
+{
+ return m_private->toHTML();
+}
+
+WebString WebRange::toPlainText() const
+{
+ return m_private->text();
+}
+
WebRange::WebRange(const WTF::PassRefPtr<WebCore::Range>& range)
: m_private(static_cast<WebRangePrivate*>(range.releaseRef()))
{
« no previous file with comments | « webkit/api/src/WebBindings.cpp ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698