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

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

Issue 1818: Bulk fixes to get Mac Test Shell more compile-happy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/webview_host.cc » ('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
===================================================================
--- webkit/tools/test_shell/webview_host.h (revision 1852)
+++ webkit/tools/test_shell/webview_host.h (working copy)
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__
-#define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__
+#ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
+#define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
-#include <windows.h>
-
+#include "base/basictypes.h"
+#include "base/gfx/native_widget_types.h"
#include "base/gfx/rect.h"
#include "base/scoped_ptr.h"
#include "webkit/tools/test_shell/webwidget_host.h"
@@ -15,23 +15,24 @@
class WebView;
class WebViewDelegate;
-// This class is a simple HWND-based host for a WebView
+// This class is a simple ViewHandle-based host for a WebView
class WebViewHost : public WebWidgetHost {
public:
- // The new instance is deleted once the associated HWND is destroyed. The
- // newly created window should be resized after it is created, using the
+ // The new instance is deleted once the associated ViewHandle is destroyed.
+ // The newly created window should be resized after it is created, using the
// MoveWindow (or equivalent) function.
- static WebViewHost* Create(HWND parent_window,
+ static WebViewHost* Create(gfx::WindowHandle parent_window,
WebViewDelegate* delegate,
const WebPreferences& prefs);
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__
-
+#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/webview_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698