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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 std::string ShellDevToolsDelegate::GetDiscoveryPageHTML() { | 50 std::string ShellDevToolsDelegate::GetDiscoveryPageHTML() { |
51 return ResourceBundle::GetSharedInstance().GetRawDataResource( | 51 return ResourceBundle::GetSharedInstance().GetRawDataResource( |
52 IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); | 52 IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); |
53 } | 53 } |
54 | 54 |
55 bool ShellDevToolsDelegate::BundlesFrontendResources() { | 55 bool ShellDevToolsDelegate::BundlesFrontendResources() { |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |
59 FilePath ShellDevToolsDelegate::GetDebugFrontendDir() { | 59 base::FilePath ShellDevToolsDelegate::GetDebugFrontendDir() { |
60 return FilePath(); | 60 return base::FilePath(); |
61 } | 61 } |
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 gfx::Size()); | 72 gfx::Size()); |
73 return shell->web_contents()->GetRenderViewHost(); | 73 return shell->web_contents()->GetRenderViewHost(); |
74 } | 74 } |
75 | 75 |
76 DevToolsHttpHandlerDelegate::TargetType | 76 DevToolsHttpHandlerDelegate::TargetType |
77 ShellDevToolsDelegate::GetTargetType(RenderViewHost*) { | 77 ShellDevToolsDelegate::GetTargetType(RenderViewHost*) { |
78 return kTargetTypeTab; | 78 return kTargetTypeTab; |
79 } | 79 } |
80 | 80 |
81 } // namespace content | 81 } // namespace content |
OLD | NEW |