OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/browser/devtools/cast_devtools_delegate.h" | 5 #include "chromecast/browser/devtools/cast_devtools_delegate.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/public/browser/devtools_agent_host.h" | 9 #include "content/public/browser/devtools_agent_host.h" |
10 #include "grit/shell_resources.h" | 10 #include "grit/shell_resources.h" |
11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
12 | 12 |
13 namespace chromecast { | 13 namespace chromecast { |
14 namespace shell { | 14 namespace shell { |
15 | 15 |
16 using content::DevToolsAgentHost; | 16 using content::DevToolsAgentHost; |
17 using content::RenderFrameHost; | 17 using content::RenderFrameHost; |
18 | 18 |
19 // CastDevToolsDelegate ----------------------------------------------------- | 19 // CastDevToolsDelegate ----------------------------------------------------- |
20 | 20 |
21 CastDevToolsDelegate::CastDevToolsDelegate() { | 21 CastDevToolsDelegate::CastDevToolsDelegate() { |
22 } | 22 } |
23 | 23 |
24 CastDevToolsDelegate::~CastDevToolsDelegate() { | 24 CastDevToolsDelegate::~CastDevToolsDelegate() { |
25 } | 25 } |
26 | 26 |
27 void CastDevToolsDelegate::Inspect(DevToolsAgentHost* agent_host) { | |
28 } | |
29 | |
30 void CastDevToolsDelegate::DevToolsAgentStateChanged( | |
31 DevToolsAgentHost* agent_host, bool attached) { | |
32 } | |
33 | |
34 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { | 27 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { |
35 #if defined(OS_ANDROID) | 28 #if defined(OS_ANDROID) |
36 return std::string(); | 29 return std::string(); |
37 #else | 30 #else |
38 return ResourceBundle::GetSharedInstance().GetRawDataResource( | 31 return ResourceBundle::GetSharedInstance().GetRawDataResource( |
39 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); | 32 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); |
40 #endif // defined(OS_ANDROID) | 33 #endif // defined(OS_ANDROID) |
41 } | 34 } |
42 | 35 |
43 } // namespace shell | 36 } // namespace shell |
44 } // namespace chromecast | 37 } // namespace chromecast |
OLD | NEW |