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

Side by Side Diff: webkit/tools/test_shell/webview_host.h

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 <map> 8 #include <map>
9 9
10 #include "app/gfx/native_widget_types.h" 10 #include "app/gfx/native_widget_types.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gfx/rect.h" 12 #include "base/gfx/rect.h"
13 #include "webkit/tools/test_shell/webwidget_host.h" 13 #include "webkit/tools/test_shell/webwidget_host.h"
14 #if defined(OS_LINUX) 14 #if defined(OS_LINUX)
15 #include "webkit/glue/plugins/gtk_plugin_container_manager.h" 15 #include "webkit/glue/plugins/gtk_plugin_container_manager.h"
16 #endif 16 #endif
17 17
18 struct WebPreferences; 18 struct WebPreferences;
19 class TestWebViewDelegate;
20
21 namespace WebKit {
19 class WebView; 22 class WebView;
20 class TestWebViewDelegate; 23 }
21 24
22 // This class is a simple NativeView-based host for a WebView 25 // This class is a simple NativeView-based host for a WebView
23 class WebViewHost : public WebWidgetHost { 26 class WebViewHost : public WebWidgetHost {
24 public: 27 public:
25 // The new instance is deleted once the associated NativeView is destroyed. 28 // The new instance is deleted once the associated NativeView is destroyed.
26 // The newly created window should be resized after it is created, using the 29 // The newly created window should be resized after it is created, using the
27 // MoveWindow (or equivalent) function. 30 // MoveWindow (or equivalent) function.
28 static WebViewHost* Create(gfx::NativeView parent_view, 31 static WebViewHost* Create(gfx::NativeView parent_view,
29 TestWebViewDelegate* delegate, 32 TestWebViewDelegate* delegate,
30 const WebPreferences& prefs); 33 const WebPreferences& prefs);
31 34
32 WebView* webview() const; 35 WebKit::WebView* webview() const;
33 36
34 #if defined(OS_LINUX) 37 #if defined(OS_LINUX)
35 // Create a new plugin parent container for a given plugin XID. 38 // Create a new plugin parent container for a given plugin XID.
36 void CreatePluginContainer(gfx::PluginWindowHandle id); 39 void CreatePluginContainer(gfx::PluginWindowHandle id);
37 40
38 // Destroy the plugin parent container when a plugin has been destroyed. 41 // Destroy the plugin parent container when a plugin has been destroyed.
39 void DestroyPluginContainer(gfx::PluginWindowHandle id); 42 void DestroyPluginContainer(gfx::PluginWindowHandle id);
40 43
41 GtkPluginContainerManager* plugin_container_manager() { 44 GtkPluginContainerManager* plugin_container_manager() {
42 return &plugin_container_manager_; 45 return &plugin_container_manager_;
43 } 46 }
44 #endif 47 #endif
45 48
46 protected: 49 protected:
47 #if defined(OS_WIN) 50 #if defined(OS_WIN)
48 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) { 51 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
49 return false; 52 return false;
50 } 53 }
51 #endif 54 #endif
52 55
53 #if defined(OS_LINUX) 56 #if defined(OS_LINUX)
54 // Helper class that creates and moves plugin containers. 57 // Helper class that creates and moves plugin containers.
55 GtkPluginContainerManager plugin_container_manager_; 58 GtkPluginContainerManager plugin_container_manager_;
56 #endif 59 #endif
57 }; 60 };
58 61
59 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ 62 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/text_input_controller.cc ('k') | webkit/tools/test_shell/webview_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698