summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-28 17:39:08 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-28 17:39:08 +0000
commit4a056cba8eb1076db6f4f61e225d3bbbe4f7aea2 (patch)
treef69007046f97ac5032acf8d765dcdb5f4b35188e /webkit/tools/test_shell/webwidget_host.h
parent5e72b77167d5074b9e104de041e0e204232f5c41 (diff)
downloadchromium_src-4a056cba8eb1076db6f4f61e225d3bbbe4f7aea2.zip
chromium_src-4a056cba8eb1076db6f4f61e225d3bbbe4f7aea2.tar.gz
chromium_src-4a056cba8eb1076db6f4f61e225d3bbbe4f7aea2.tar.bz2
Start writing the GTK code for test_shell.
Review URL: http://codereview.chromium.org/8000 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r--webkit/tools/test_shell/webwidget_host.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index c318c18..eb52bc0 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -42,6 +42,7 @@ class WebWidgetHost {
#endif
void DiscardBackingStore();
+ void Paint();
protected:
WebWidgetHost();
@@ -51,7 +52,6 @@ class WebWidgetHost {
// Per-class wndproc. Returns true if the event should be swallowed.
virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam);
- void Paint();
void Resize(LPARAM lparam);
void MouseEvent(UINT message, WPARAM wparam, LPARAM lparam);
void WheelEvent(WPARAM wparam, LPARAM lparam);
@@ -63,13 +63,16 @@ class WebWidgetHost {
#elif defined(OS_MACOSX)
// These need to be called from a non-subclass, so they need to be public.
public:
- void Paint();
void Resize(const gfx::Rect& rect);
void MouseEvent(NSEvent *);
void WheelEvent(NSEvent *);
void KeyEvent(NSEvent *);
void SetFocus(bool enable);
protected:
+#elif defined(OS_LINUX)
+ public:
+ void WindowDestroyed();
+ void Resize(const gfx::Size& size);
#endif
void TrackMouseLeave(bool enable);