summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.h
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 15:09:16 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 15:09:16 +0000
commitc598ef063e39a389658efdeca4f0054d8a61582a (patch)
tree7070b289a0de2263663f31117432233288cdb6bf /webkit/tools/test_shell/webwidget_host.h
parentd602155583957d1a807f528a2b415e02bf39c7df (diff)
downloadchromium_src-c598ef063e39a389658efdeca4f0054d8a61582a.zip
chromium_src-c598ef063e39a389658efdeca4f0054d8a61582a.tar.gz
chromium_src-c598ef063e39a389658efdeca4f0054d8a61582a.tar.bz2
Pass the Cocoa dirty rect to the web view for adding to its dirty rect.
Review URL: http://codereview.chromium.org/10701 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r--webkit/tools/test_shell/webwidget_host.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index 3bc2ac8..4f78744 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -48,6 +48,14 @@ class WebWidgetHost {
WebWidgetHost();
~WebWidgetHost();
+#if defined(OS_MACOSX) || defined(OS_LINUX)
+ public:
+ // Allow clients to update the paint rect. For example, if we get a gdk
+ // expose event, we need to update the paint rect.
+ void UpdatePaintRect(const gfx::Rect& rect);
+ protected:
+#endif
+
#if defined(OS_WIN)
// Per-class wndproc. Returns true if the event should be swallowed.
virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam);
@@ -83,10 +91,6 @@ class WebWidgetHost {
static gfx::WindowHandle CreateWindow(gfx::WindowHandle parent, void* host);
void WindowDestroyed();
void Resize(const gfx::Size& size);
-
- // Allow clients to update the paint rect. For example, if we get a gdk
- // expose event, we need to update the paint rect.
- void UpdatePaintRect(const gfx::Rect& rect);
#endif
void TrackMouseLeave(bool enable);