| Index: webkit/tools/test_shell/webwidget_host.h
|
| ===================================================================
|
| --- webkit/tools/test_shell/webwidget_host.h (revision 13475)
|
| +++ webkit/tools/test_shell/webwidget_host.h (working copy)
|
| @@ -8,16 +8,13 @@
|
| #include "base/basictypes.h"
|
| #include "base/gfx/native_widget_types.h"
|
| #include "base/gfx/rect.h"
|
| +#include "base/gfx/size.h"
|
| #include "base/scoped_ptr.h"
|
| #include "skia/ext/platform_canvas.h"
|
|
|
| class WebWidget;
|
| class WebWidgetDelegate;
|
|
|
| -namespace gfx {
|
| -class Size;
|
| -}
|
| -
|
| namespace WebKit {
|
| struct WebScreenInfo;
|
| }
|
| @@ -51,6 +48,9 @@
|
| #if defined(OS_WIN)
|
| void SetCursor(HCURSOR cursor);
|
| #endif
|
| +#if defined(LINUX2)
|
| + const gfx::Size& size() const { return size_; }
|
| +#endif
|
|
|
| void DiscardBackingStore();
|
| // Allow clients to update the paint rect. For example, if we get a gdk
|
| @@ -58,6 +58,8 @@
|
| void UpdatePaintRect(const gfx::Rect& rect);
|
| void Paint();
|
|
|
| + skia::PlatformCanvas* canvas() const { return canvas_.get(); }
|
| +
|
| WebKit::WebScreenInfo GetScreenInfo();
|
|
|
| protected:
|
| @@ -112,6 +114,12 @@
|
| #endif
|
| }
|
|
|
| +#if defined(LINUX2)
|
| + void ScheduleRepaint(const gfx::Rect& bounds);
|
| +
|
| + gfx::Size size_;
|
| +#endif
|
| +
|
| gfx::NativeView view_;
|
| WebWidget* webwidget_;
|
| scoped_ptr<skia::PlatformCanvas> canvas_;
|
|
|