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

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

Issue 1606: hodgepodge for test_shell.cc (Closed)
Patch Set: update some comments Created 12 years, 3 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') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webview_host.h
diff --git a/webkit/tools/test_shell/webview_host.h b/webkit/tools/test_shell/webview_host.h
index 146f6ab5f82a31dc9d1bdbdff6fd02c2db767d6a..d596966bbe9ebf3beae39232f0afddb4a14e0885 100644
--- a/webkit/tools/test_shell/webview_host.h
+++ b/webkit/tools/test_shell/webview_host.h
@@ -5,7 +5,9 @@
#ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__
#define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__
+#if defined(OS_WIN)
#include <windows.h>
+#endif
#include "base/gfx/rect.h"
#include "base/scoped_ptr.h"
@@ -21,17 +23,24 @@ class WebViewHost : public WebWidgetHost {
// The new instance is deleted once the associated HWND is destroyed. The
// newly created window should be resized after it is created, using the
// MoveWindow (or equivalent) function.
+#if defined(OS_WIN)
static WebViewHost* Create(HWND parent_window,
WebViewDelegate* delegate,
const WebPreferences& prefs);
+#else // null port.
+ static WebViewHost* Create(void* parent_window,
+ WebViewDelegate* delegate,
+ const WebPreferences& prefs);
+#endif
WebView* webview() const;
protected:
+#if defined(OS_WIN)
virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
return false;
}
+#endif
};
#endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__
-
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698