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

Side by Side Diff: content/renderer/devtools_client.cc

Issue 8277018: Move content_switches to content\public\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/renderer/devtools_client.h" 5 #include "content/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/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/content_switches.h"
11 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
11 #include "content/public/common/content_switches.h"
12 #include "content/renderer/render_thread_impl.h" 12 #include "content/renderer/render_thread_impl.h"
13 #include "content/renderer/render_view_impl.h" 13 #include "content/renderer/render_view_impl.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h " 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h "
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
16 #include "ui/base/ui_base_switches.h" 16 #include "ui/base/ui_base_switches.h"
17 17
18 using WebKit::WebDevToolsFrontend; 18 using WebKit::WebDevToolsFrontend;
19 using WebKit::WebString; 19 using WebKit::WebString;
20 20
21 DevToolsClient::DevToolsClient(RenderViewImpl* render_view) 21 DevToolsClient::DevToolsClient(RenderViewImpl* render_view)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { 88 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) {
89 web_tools_frontend_->dispatchOnInspectorFrontend( 89 web_tools_frontend_->dispatchOnInspectorFrontend(
90 WebString::fromUTF8(message)); 90 WebString::fromUTF8(message));
91 } 91 }
92 92
93 bool DevToolsClient::shouldHideScriptsPanel() { 93 bool DevToolsClient::shouldHideScriptsPanel() {
94 CommandLine* cmd = CommandLine::ForCurrentProcess(); 94 CommandLine* cmd = CommandLine::ForCurrentProcess();
95 return cmd->HasSwitch(switches::kRemoteShellPort); 95 return cmd->HasSwitch(switches::kRemoteShellPort);
96 } 96 }
OLDNEW
« no previous file with comments | « content/renderer/devtools_agent.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698