OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/shell/shell_devtools_delegate.h" | 5 #include "content/shell/shell_devtools_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/public/browser/devtools_http_handler.h" | 8 #include "content/public/browser/devtools_http_handler.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 std::string ShellDevToolsDelegate::GetPageThumbnailData(const GURL& url) { | 63 std::string ShellDevToolsDelegate::GetPageThumbnailData(const GURL& url) { |
64 return ""; | 64 return ""; |
65 } | 65 } |
66 | 66 |
67 RenderViewHost* ShellDevToolsDelegate::CreateNewTarget() { | 67 RenderViewHost* ShellDevToolsDelegate::CreateNewTarget() { |
68 Shell* shell = Shell::CreateNewWindow(browser_context_, | 68 Shell* shell = Shell::CreateNewWindow(browser_context_, |
69 GURL(chrome::kAboutBlankURL), | 69 GURL(chrome::kAboutBlankURL), |
70 NULL, | 70 NULL, |
71 MSG_ROUTING_NONE, | 71 MSG_ROUTING_NONE, |
72 NULL); | 72 gfx::Size()); |
73 return shell->web_contents()->GetRenderViewHost(); | 73 return shell->web_contents()->GetRenderViewHost(); |
74 } | 74 } |
75 | 75 |
76 } // namespace content | 76 } // namespace content |
OLD | NEW |