Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: webkit/tools/test_shell/webwidget_host.h

Issue 67024: Adds some ifdefs so that test_shell can be compiled on linux... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698