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

Side by Side Diff: content/browser/debugger/devtools_frontend_host.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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/browser/debugger/devtools_frontend_host.h" 5 #include "content/browser/debugger/devtools_frontend_host.h"
6 6
7 #include "content/browser/debugger/devtools_manager_impl.h" 7 #include "content/browser/debugger/devtools_manager_impl.h"
8 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
11 #include "content/public/browser/devtools_client_host.h" 11 #include "content/public/browser/devtools_client_host.h"
12 #include "content/public/browser/devtools_frontend_host_delegate.h" 12 #include "content/public/browser/devtools_frontend_host_delegate.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // static 16 // static
17 DevToolsClientHost* DevToolsClientHost::CreateDevToolsFrontendHost( 17 DevToolsClientHost* DevToolsClientHost::CreateDevToolsFrontendHost(
18 TabContents* client_tab_contents, 18 WebContents* client_web_contents,
19 DevToolsFrontendHostDelegate* delegate) { 19 DevToolsFrontendHostDelegate* delegate) {
20 return new DevToolsFrontendHost(client_tab_contents, delegate); 20 return new DevToolsFrontendHost(
21 static_cast<TabContents*>(client_web_contents), delegate);
21 } 22 }
22 23
23 // static 24 // static
24 void DevToolsClientHost::SetupDevToolsFrontendClient( 25 void DevToolsClientHost::SetupDevToolsFrontendClient(
25 RenderViewHost* frontend_rvh) { 26 RenderViewHost* frontend_rvh) {
26 frontend_rvh->Send(new DevToolsMsg_SetupDevToolsClient( 27 frontend_rvh->Send(new DevToolsMsg_SetupDevToolsClient(
27 frontend_rvh->routing_id())); 28 frontend_rvh->routing_id()));
28 } 29 }
29 30
30 DevToolsFrontendHost::DevToolsFrontendHost( 31 DevToolsFrontendHost::DevToolsFrontendHost(
(...skipping 16 matching lines...) Expand all
47 } 48 }
48 49
49 void DevToolsFrontendHost::InspectedTabClosing() { 50 void DevToolsFrontendHost::InspectedTabClosing() {
50 delegate_->InspectedTabClosing(); 51 delegate_->InspectedTabClosing();
51 } 52 }
52 53
53 void DevToolsFrontendHost::FrameNavigating(const std::string& url) { 54 void DevToolsFrontendHost::FrameNavigating(const std::string& url) {
54 delegate_->FrameNavigating(url); 55 delegate_->FrameNavigating(url);
55 } 56 }
56 57
57 void DevToolsFrontendHost::TabReplaced(TabContents* new_tab) { 58 void DevToolsFrontendHost::TabReplaced(WebContents* new_tab) {
58 delegate_->TabReplaced(new_tab); 59 delegate_->TabReplaced(new_tab);
59 } 60 }
60 61
61 bool DevToolsFrontendHost::OnMessageReceived( 62 bool DevToolsFrontendHost::OnMessageReceived(
62 const IPC::Message& message) { 63 const IPC::Message& message) {
63 bool handled = true; 64 bool handled = true;
64 IPC_BEGIN_MESSAGE_MAP(DevToolsFrontendHost, message) 65 IPC_BEGIN_MESSAGE_MAP(DevToolsFrontendHost, message)
65 IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DispatchOnInspectorBackend, 66 IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DispatchOnInspectorBackend,
66 OnDispatchOnInspectorBackend) 67 OnDispatchOnInspectorBackend)
67 IPC_MESSAGE_HANDLER(DevToolsHostMsg_ActivateWindow, OnActivateWindow) 68 IPC_MESSAGE_HANDLER(DevToolsHostMsg_ActivateWindow, OnActivateWindow)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 void DevToolsFrontendHost::OnRequestUndockWindow() { 111 void DevToolsFrontendHost::OnRequestUndockWindow() {
111 delegate_->UndockWindow(); 112 delegate_->UndockWindow();
112 } 113 }
113 114
114 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { 115 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) {
115 delegate_->SetDockSide(side); 116 delegate_->SetDockSide(side);
116 } 117 }
117 118
118 } // namespace content 119 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/debugger/devtools_frontend_host.h ('k') | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698