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

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

Issue 2864020: DevTools: Migrate to new WebView initialization (pass devtools client directly). (Closed)
Patch Set: deps roll Created 10 years, 6 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_win.cc ('k') | webkit/tools/test_shell/webview_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "gfx/native_widget_types.h" 11 #include "gfx/native_widget_types.h"
12 #include "gfx/rect.h" 12 #include "gfx/rect.h"
13 #include "webkit/tools/test_shell/webwidget_host.h" 13 #include "webkit/tools/test_shell/webwidget_host.h"
14 14
15 #if defined(TOOLKIT_USES_GTK) 15 #if defined(TOOLKIT_USES_GTK)
16 #include "webkit/glue/plugins/gtk_plugin_container_manager.h" 16 #include "webkit/glue/plugins/gtk_plugin_container_manager.h"
17 #endif 17 #endif
18 18
19 struct WebPreferences; 19 struct WebPreferences;
20 class TestWebViewDelegate; 20 class TestWebViewDelegate;
21 21
22 namespace WebKit { 22 namespace WebKit {
23 class WebDevToolsAgentClient;
23 class WebView; 24 class WebView;
24 } 25 }
25 26
26 // This class is a simple NativeView-based host for a WebView 27 // This class is a simple NativeView-based host for a WebView
27 class WebViewHost : public WebWidgetHost { 28 class WebViewHost : public WebWidgetHost {
28 public: 29 public:
29 // The new instance is deleted once the associated NativeView is destroyed. 30 // The new instance is deleted once the associated NativeView is destroyed.
30 // The newly created window should be resized after it is created, using the 31 // The newly created window should be resized after it is created, using the
31 // MoveWindow (or equivalent) function. 32 // MoveWindow (or equivalent) function.
32 static WebViewHost* Create(gfx::NativeView parent_view, 33 static WebViewHost* Create(gfx::NativeView parent_view,
33 TestWebViewDelegate* delegate, 34 TestWebViewDelegate* delegate,
35 WebKit::WebDevToolsAgentClient* devtoolsClient,
34 const WebPreferences& prefs); 36 const WebPreferences& prefs);
35 37
36 WebKit::WebView* webview() const; 38 WebKit::WebView* webview() const;
37 39
38 #if defined(TOOLKIT_USES_GTK) 40 #if defined(TOOLKIT_USES_GTK)
39 // Create a new plugin parent container for a given plugin XID. 41 // Create a new plugin parent container for a given plugin XID.
40 void CreatePluginContainer(gfx::PluginWindowHandle id); 42 void CreatePluginContainer(gfx::PluginWindowHandle id);
41 43
42 // Destroy the plugin parent container when a plugin has been destroyed. 44 // Destroy the plugin parent container when a plugin has been destroyed.
43 void DestroyPluginContainer(gfx::PluginWindowHandle id); 45 void DestroyPluginContainer(gfx::PluginWindowHandle id);
(...skipping 12 matching lines...) Expand all
56 } 58 }
57 #endif 59 #endif
58 60
59 #if defined(TOOLKIT_USES_GTK) 61 #if defined(TOOLKIT_USES_GTK)
60 // Helper class that creates and moves plugin containers. 62 // Helper class that creates and moves plugin containers.
61 GtkPluginContainerManager plugin_container_manager_; 63 GtkPluginContainerManager plugin_container_manager_;
62 #endif 64 #endif
63 }; 65 };
64 66
65 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ 67 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_win.cc ('k') | webkit/tools/test_shell/webview_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698