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

Unified Diff: webkit/tools/test_shell/test_shell_win.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_agent.cc ('k') | webkit/tools/test_shell/webview_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_win.cc
diff --git a/webkit/tools/test_shell/test_shell_win.cc b/webkit/tools/test_shell/test_shell_win.cc
old mode 100644
new mode 100755
index 841d724b92e94a588e721cdfd4c0881f6e578023..079a83026c4a0c27e49f621d514dd48a088bf557
--- a/webkit/tools/test_shell/test_shell_win.cc
+++ b/webkit/tools/test_shell/test_shell_win.cc
@@ -34,6 +34,7 @@
#include "webkit/glue/plugins/plugin_list.h"
#include "webkit/tools/test_shell/resource.h"
#include "webkit/tools/test_shell/test_navigation_controller.h"
+#include "webkit/tools/test_shell/test_shell_devtools_agent.h"
#include "webkit/tools/test_shell/test_shell_switches.h"
#include "webkit/tools/test_shell/test_webview_delegate.h"
@@ -392,13 +393,17 @@ bool TestShell::Initialize(const GURL& starting_url) {
win_util::SetWindowProc(m_editWnd, TestShell::EditWndProc);
win_util::SetWindowUserData(m_editWnd, this);
+ dev_tools_agent_.reset(new TestShellDevToolsAgent());
+
// create webview
m_webViewHost.reset(
- WebViewHost::Create(m_mainWnd, delegate_.get(), *TestShell::web_prefs_));
+ WebViewHost::Create(m_mainWnd,
+ delegate_.get(),
+ dev_tools_agent_.get(),
+ *TestShell::web_prefs_));
+ dev_tools_agent_->SetWebView(m_webViewHost->webview());
delegate_->RegisterDragDrop();
- InitializeDevToolsAgent(webView());
-
// Load our initial content.
if (starting_url.is_valid())
LoadURL(starting_url);
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_agent.cc ('k') | webkit/tools/test_shell/webview_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698