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

Unified Diff: webkit/glue/glue_util.cc

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/glue/glue_util.h ('k') | webkit/glue/iframe_redirect_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/glue_util.cc
===================================================================
--- webkit/glue/glue_util.cc (revision 22886)
+++ webkit/glue/glue_util.cc (working copy)
@@ -24,6 +24,7 @@
#include "KURL.h"
#include "Node.h"
#include "PlatformString.h"
+#include "Range.h"
#include "ResourceError.h"
#undef LOG
@@ -39,6 +40,7 @@
#include "webkit/api/public/WebHistoryItem.h"
#include "webkit/api/public/WebNode.h"
#include "webkit/api/public/WebPoint.h"
+#include "webkit/api/public/WebRange.h"
#include "webkit/api/public/WebRect.h"
#include "webkit/api/public/WebSize.h"
#include "webkit/api/public/WebString.h"
@@ -264,9 +266,11 @@
}
// WebNode conversions ---------------------------------------------------------
+
WebKit::WebNode NodeToWebNode(const WTF::PassRefPtr<WebCore::Node>& node) {
return node;
}
+
WTF::PassRefPtr<WebCore::Node> WebNodeToNode(const WebKit::WebNode& node) {
return node;
}
@@ -283,6 +287,16 @@
return item;
}
+// WebRange conversions --------------------------------------------------------
+
+WebKit::WebRange RangeToWebRange(const WTF::PassRefPtr<WebCore::Range>& range) {
+ return range;
+}
+
+WTF::PassRefPtr<WebCore::Range> WebRangeToRange(const WebKit::WebRange& range) {
+ return range;
+}
+
// WebURLError conversions -----------------------------------------------------
WebKit::WebURLError ResourceErrorToWebURLError(
« no previous file with comments | « webkit/glue/glue_util.h ('k') | webkit/glue/iframe_redirect_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698