diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 23:16:24 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 23:16:24 +0000 |
commit | eb6439387ab5035450035d606f6ff32319c13789 (patch) | |
tree | 897f9ffa88d64addd5ed0de10039c3dfc383100a /webkit/glue/webwidget_delegate.h | |
parent | 1640ffbff45713748fb31c9bbae46ea47ab6e8e0 (diff) | |
download | chromium_src-eb6439387ab5035450035d606f6ff32319c13789.zip chromium_src-eb6439387ab5035450035d606f6ff32319c13789.tar.gz chromium_src-eb6439387ab5035450035d606f6ff32319c13789.tar.bz2 |
Reverting dfisher changes 133386 and 13381
TBR=darin
Review URL: http://codereview.chromium.org/58018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13387 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 e6d95b0..37f3ff3 100644 --- a/webkit/glue/webwidget_delegate.h +++ b/webkit/glue/webwidget_delegate.h @@ -12,8 +12,12 @@ #include "base/string16.h" #include "webkit/glue/window_open_disposition.h" +namespace gfx { +class Point; +class Rect; +} + namespace WebKit { -struct WebRect; struct WebScreenInfo; } @@ -43,13 +47,12 @@ 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 WebKit::WebRect& rect) = 0; + virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& 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 WebKit::WebRect& clip_rect) = 0; + const gfx::Rect& 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 @@ -68,7 +71,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 WebKit::WebRect& bounds, + const gfx::Rect& bounds, int item_height, int selected_index, const std::vector<MenuItem>& items) = 0; @@ -90,7 +93,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, WebKit::WebRect* rect) = 0; + virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* 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 @@ -98,18 +101,15 @@ 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 WebKit::WebRect& rect) = 0; + virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect) = 0; // Returns the rectangle of the window in which this WebWidget is embeded. - virtual void GetRootWindowRect(WebWidget* webwidget, - WebKit::WebRect* rect) = 0; + virtual void GetRootWindowRect(WebWidget* webwidget, gfx::Rect* 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, - WebKit::WebRect* rect) = 0; + virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* 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 |