summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmediaplayer_delegate.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 16:18:52 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 16:18:52 +0000
commitb3f2b912e8efca9c49026119494ab292d27ccf19 (patch)
tree3261d1de7f7497d2c2fe4d004c2c9bc7c138e3cb /webkit/glue/webmediaplayer_delegate.h
parent90ca36995f2484d10a68115b798c10f51d70fca4 (diff)
downloadchromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.zip
chromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.tar.gz
chromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.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. This is a second attempt at r13381, which was already reviewed here: http://codereview.chromium.org/63126 The only change between that CL and this one is in render_view.h, where I needed to change a parameter type from gfx::Rect to WebRect. TBR=dglazkov Review URL: http://codereview.chromium.org/64005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_delegate.h')
-rw-r--r--webkit/glue/webmediaplayer_delegate.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/webkit/glue/webmediaplayer_delegate.h b/webkit/glue/webmediaplayer_delegate.h
index 7f60851..c86b001 100644
--- a/webkit/glue/webmediaplayer_delegate.h
+++ b/webkit/glue/webmediaplayer_delegate.h
@@ -13,8 +13,9 @@
class GURL;
-namespace gfx {
-class Rect;
+namespace WebKit {
+struct WebRect;
+struct WebSize;
}
namespace webkit_glue {
@@ -43,11 +44,12 @@ class WebMediaPlayerDelegate {
virtual float GetMaxTimeSeekable() const = 0;
// Methods for painting.
- virtual void SetSize(const gfx::Size& size) = 0;
+ virtual void SetSize(const WebKit::WebSize& size) = 0;
// TODO(hclam): Using paint at the moment, maybe we just need to return a
// SkiaBitmap?
- virtual void Paint(skia::PlatformCanvas *canvas, const gfx::Rect& rect) = 0;
+ virtual void Paint(skia::PlatformCanvas *canvas,
+ const WebKit::WebRect& rect) = 0;
// True if a video is loaded.
virtual bool IsVideo() const = 0;