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/webwidget_delegate.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/webwidget_delegate.h')
-rw-r--r-- | webkit/glue/webwidget_delegate.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/webkit/glue/webwidget_delegate.h b/webkit/glue/webwidget_delegate.h index 37f3ff3..e6d95b0 100644 --- a/webkit/glue/webwidget_delegate.h +++ b/webkit/glue/webwidget_delegate.h @@ -12,12 +12,8 @@ #include "base/string16.h" #include "webkit/glue/window_open_disposition.h" -namespace gfx { -class Point; -class Rect; -} - namespace WebKit { +struct WebRect; struct WebScreenInfo; } @@ -47,12 +43,13 @@ class WebWidgetDelegate { virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget) = 0; // Called when a region of the WebWidget needs to be re-painted. - virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& rect) = 0; + virtual void DidInvalidateRect(WebWidget* webwidget, + const WebKit::WebRect& rect) = 0; // Called when a region of the WebWidget, given by clip_rect, should be // scrolled by the specified dx and dy amounts. virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, - const gfx::Rect& clip_rect) = 0; + const WebKit::WebRect& clip_rect) = 0; // This method is called to instruct the window containing the WebWidget to // show itself as the topmost window. This method is only used after a @@ -71,7 +68,7 @@ class WebWidgetDelegate { // such as the type (separator, option, group), the text representation and // the item's enabled status. virtual void ShowWithItems(WebWidget* webwidget, - const gfx::Rect& bounds, + const WebKit::WebRect& bounds, int item_height, int selected_index, const std::vector<MenuItem>& items) = 0; @@ -93,7 +90,7 @@ class WebWidgetDelegate { virtual void SetCursor(WebWidget* webwidget, const WebCursor& cursor) = 0; // Returns the rectangle of the WebWidget in screen coordinates. - virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect) = 0; + virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) = 0; // This method is called to re-position the WebWidget on the screen. The given // rect is in screen coordinates. The implementation may choose to ignore @@ -101,15 +98,18 @@ class WebWidgetDelegate { // has been called. // TODO(darin): this is more of a request; does this need to take effect // synchronously? - virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect) = 0; + virtual void SetWindowRect(WebWidget* webwidget, + const WebKit::WebRect& rect) = 0; // Returns the rectangle of the window in which this WebWidget is embeded. - virtual void GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) = 0; + virtual void GetRootWindowRect(WebWidget* webwidget, + WebKit::WebRect* rect) = 0; // Returns the resizer rectangle of the window this WebWidget is in. This // is used on Mac to determine if a scrollbar is over the in-window resize // area at the bottom right corner. - virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect) = 0; + virtual void GetRootWindowResizerRect(WebWidget* webwidget, + WebKit::WebRect* rect) = 0; // Keeps track of the necessary window move for a plugin window that resulted // from a scroll operation. That way, all plugin windows can be moved at the |