From e80c73be12cc2211d5a72a5ff85eb97366b2458f Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Tue, 7 Apr 2009 23:24:58 +0000 Subject: Switch to using WebDragData in WebView and WebViewDelegate. I also cleaned up some of the WebView and WebViewDelegate methods to pass WebPoint instead of pairs of ints or gfx::Point. With this change, I am keeping webkit/glue/webdropdata.{h,cc}, which is what Chrome uses to pass around the equivalent data. Now, it is possible to construct a WebDropData from a WebKit::WebDragData and to also get a WebKit::WebDragData from a WebDropData. Hence, the conversion between WebDropData and ChromiumDataObject (see clipboard_conversion.{h,cc}) is now removed in favor of conversion between WebDropData and WebKit::WebDragData. Conversion between WebKit::WebDragData and WebCore::ChromiumDataObject is very cheap (just reference counting). Finally, this change also brings in WebData, which is now used by the return value of WebKitClient::loadResource. As a companion to that change, I also changed webkit_glue::GetDataResource to return StringPiece instead of std::string. That also saves on an unnecessary buffer copy. R=dglazkov Review URL: http://codereview.chromium.org/63084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13305 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/build/WebKit/WebKit.vcproj | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'webkit/build') diff --git a/webkit/build/WebKit/WebKit.vcproj b/webkit/build/WebKit/WebKit.vcproj index 0d7f6fd..d0abe86 100644 --- a/webkit/build/WebKit/WebKit.vcproj +++ b/webkit/build/WebKit/WebKit.vcproj @@ -156,6 +156,14 @@ > + + + + @@ -199,6 +207,10 @@ RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebURL.h" > + + @@ -244,6 +256,14 @@ > + + + + -- cgit v1.1