summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.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/webview_impl.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/webview_impl.h')
-rw-r--r--webkit/glue/webview_impl.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h
index 413445e..c0ce294 100644
--- a/webkit/glue/webview_impl.h
+++ b/webkit/glue/webview_impl.h
@@ -9,9 +9,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/gfx/point.h"
-#include "base/gfx/size.h"
#include "skia/ext/platform_canvas.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebPoint.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
#include "webkit/glue/back_forward_list_client_impl.h"
#include "webkit/glue/webframe_impl.h"
#include "webkit/glue/webpreferences.h"
@@ -63,10 +63,10 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
virtual WebFrame* GetFrameWithName(const std::wstring& name);
virtual WebFrame* GetPreviousFrameBefore(WebFrame* frame, bool wrap);
virtual WebFrame* GetNextFrameAfter(WebFrame* frame, bool wrap);
- virtual void Resize(const gfx::Size& new_size);
- virtual gfx::Size GetSize() { return size(); }
+ virtual void Resize(const WebKit::WebSize& new_size);
+ virtual WebKit::WebSize GetSize() { return size(); }
virtual void Layout();
- virtual void Paint(skia::PlatformCanvas* canvas, const gfx::Rect& rect);
+ virtual void Paint(skia::PlatformCanvas* canvas, const WebKit::WebRect& rect);
virtual bool HandleInputEvent(const WebKit::WebInputEvent* input_event);
virtual void MouseCaptureLost();
virtual void SetFocus(bool enable);
@@ -78,7 +78,7 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
int target_end,
const std::wstring& ime_string);
virtual bool ImeUpdateStatus(bool* enable_ime,
- gfx::Rect* caret_rect);
+ WebKit::WebRect* caret_rect);
virtual void SetTextDirection(WebTextDirection direction);
virtual void StopLoading();
virtual void SetBackForwardListSize(int size);
@@ -126,9 +126,9 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
// WebViewImpl
- const gfx::Size& size() const { return size_; }
+ const WebKit::WebSize& size() const { return size_; }
- const gfx::Point& last_mouse_down_point() const {
+ const WebKit::WebPoint& last_mouse_down_point() const {
return last_mouse_down_point_;
}
@@ -237,9 +237,9 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
SearchableFormData* CreateSearchableFormDataForFocusedNode();
scoped_refptr<WebViewDelegate> delegate_;
- gfx::Size size_;
+ WebKit::WebSize size_;
- gfx::Point last_mouse_position_;
+ WebKit::WebPoint last_mouse_position_;
// Reference to the Frame that last had focus. This is set once when
// we lose focus, and used when focus is gained to reinstall focus to
// the correct element.
@@ -302,7 +302,7 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
// mouse was at when the drag was initiated, only the current point, which
// can be misleading as it is usually not over the element the user actually
// dragged by the time a drag is initiated.
- gfx::Point last_mouse_down_point_;
+ WebKit::WebPoint last_mouse_down_point_;
// Keeps track of the current text zoom level. 0 means no zoom, positive
// values mean larger text, negative numbers mean smaller.