diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 21:58:04 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 21:58:04 +0000 |
commit | 02e80deede0729617aeb87128b1db3cd14b36d6b (patch) | |
tree | dfdec4f6e761c652ba8439dc36204cfa31246962 /webkit/glue/glue_util.h | |
parent | 98aebc7fc44cc34ecfa5a33ade9a8aa511bb96a3 (diff) | |
download | chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.zip chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.tar.gz chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.tar.bz2 |
Switch to using WebPoint, WebRect, and WebSize in more of the glue
layer interface. This will help when we move those interfaces into
the WebKit API.
R=dglazkov
Review URL: http://codereview.chromium.org/63126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/glue_util.h')
-rw-r--r-- | webkit/glue/glue_util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/glue/glue_util.h b/webkit/glue/glue_util.h index 8f02767..46cc74a 100644 --- a/webkit/glue/glue_util.h +++ b/webkit/glue/glue_util.h @@ -15,6 +15,7 @@ class ChromiumDataObject; class CString; class IntPoint; class IntRect; +class IntSize; class KURL; class String; } @@ -25,6 +26,8 @@ class WebDragData; class WebString; class WebURL; struct WebPoint; +struct WebRect; +struct WebSize; } namespace WTF { @@ -85,6 +88,14 @@ WebCore::IntRect ToIntRect(const gfx::Rect& r); WebCore::IntPoint WebPointToIntPoint(const WebKit::WebPoint&); WebKit::WebPoint IntPointToWebPoint(const WebCore::IntPoint&); +// WebRect <-> IntRect +WebCore::IntRect WebRectToIntRect(const WebKit::WebRect&); +WebKit::WebRect IntRectToWebRect(const WebCore::IntRect&); + +// WebSize <-> IntSize +WebCore::IntSize WebSizeToIntSize(const WebKit::WebSize&); +WebKit::WebSize IntSizeToWebSize(const WebCore::IntSize&); + // WebDragData <-> ChromiumDataObject WebKit::WebDragData ChromiumDataObjectToWebDragData( const WTF::PassRefPtr<WebCore::ChromiumDataObject>&); |