| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/renderer/devtools_client.h" | 5 #include "chrome/renderer/devtools_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/message_loop.h" |
| 8 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/devtools_messages.h" | 11 #include "chrome/common/devtools_messages.h" |
| 11 #include "content/renderer/render_thread.h" | 12 #include "content/renderer/render_thread.h" |
| 12 #include "content/renderer/render_view.h" | 13 #include "content/renderer/render_view.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h
" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h
" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 15 #include "ui/base/ui_base_switches.h" | 16 #include "ui/base/ui_base_switches.h" |
| 16 | 17 |
| 17 using WebKit::WebDevToolsFrontend; | 18 using WebKit::WebDevToolsFrontend; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 78 |
| 78 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { | 79 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { |
| 79 web_tools_frontend_->dispatchOnInspectorFrontend( | 80 web_tools_frontend_->dispatchOnInspectorFrontend( |
| 80 WebString::fromUTF8(message)); | 81 WebString::fromUTF8(message)); |
| 81 } | 82 } |
| 82 | 83 |
| 83 bool DevToolsClient::shouldHideScriptsPanel() { | 84 bool DevToolsClient::shouldHideScriptsPanel() { |
| 84 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 85 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
| 85 return cmd->HasSwitch(switches::kRemoteShellPort); | 86 return cmd->HasSwitch(switches::kRemoteShellPort); |
| 86 } | 87 } |
| OLD | NEW |