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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__ 6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
7 7
8 #include <windows.h> 8 #include "base/basictypes.h"
9 9 #include "base/gfx/native_widget_types.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "webkit/tools/test_shell/webwidget_host.h" 12 #include "webkit/tools/test_shell/webwidget_host.h"
13 13
14 struct WebPreferences; 14 struct WebPreferences;
15 class WebView; 15 class WebView;
16 class WebViewDelegate; 16 class WebViewDelegate;
17 17
18 // This class is a simple HWND-based host for a WebView 18 // This class is a simple ViewHandle-based host for a WebView
19 class WebViewHost : public WebWidgetHost { 19 class WebViewHost : public WebWidgetHost {
20 public: 20 public:
21 // The new instance is deleted once the associated HWND is destroyed. The 21 // The new instance is deleted once the associated ViewHandle is destroyed.
22 // newly created window should be resized after it is created, using the 22 // The newly created window should be resized after it is created, using the
23 // MoveWindow (or equivalent) function. 23 // MoveWindow (or equivalent) function.
24 static WebViewHost* Create(HWND parent_window, 24 static WebViewHost* Create(gfx::WindowHandle parent_window,
25 WebViewDelegate* delegate, 25 WebViewDelegate* delegate,
26 const WebPreferences& prefs); 26 const WebPreferences& prefs);
27 27
28 WebView* webview() const; 28 WebView* webview() const;
29 29
30 protected: 30 protected:
31 #if defined(OS_WIN)
31 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) { 32 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
32 return false; 33 return false;
33 } 34 }
35 #endif
34 }; 36 };
35 37
36 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H__ 38 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
37
OLDNEW
« 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