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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.cc

Issue 2544893002: [DevTools] Migrate InputHandler from RenderWidgetHostImpl to RenderFrameHostImpl. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/browser/devtools/protocol/input_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/browser/devtools/render_frame_devtools_agent_host.h" 5 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 in_navigation_protocol_message_buffer_.clear(); 909 in_navigation_protocol_message_buffer_.clear();
910 } 910 }
911 } 911 }
912 912
913 void RenderFrameDevToolsAgentHost::UpdateProtocolHandlers( 913 void RenderFrameDevToolsAgentHost::UpdateProtocolHandlers(
914 RenderFrameHostImpl* host) { 914 RenderFrameHostImpl* host) {
915 handlers_frame_host_ = host; 915 handlers_frame_host_ = host;
916 dom_handler_->SetRenderFrameHost(host); 916 dom_handler_->SetRenderFrameHost(host);
917 if (emulation_handler_) 917 if (emulation_handler_)
918 emulation_handler_->SetRenderFrameHost(host); 918 emulation_handler_->SetRenderFrameHost(host);
919 input_handler_->SetRenderWidgetHost( 919 input_handler_->SetRenderFrameHost(host);
920 host ? host->GetRenderWidgetHost() : nullptr);
921 inspector_handler_->SetRenderFrameHost(host); 920 inspector_handler_->SetRenderFrameHost(host);
922 network_handler_->SetRenderFrameHost(host); 921 network_handler_->SetRenderFrameHost(host);
923 if (page_handler_) 922 if (page_handler_)
924 page_handler_->SetRenderFrameHost(host); 923 page_handler_->SetRenderFrameHost(host);
925 service_worker_handler_->SetRenderFrameHost(host); 924 service_worker_handler_->SetRenderFrameHost(host);
926 if (security_handler_) 925 if (security_handler_)
927 security_handler_->SetRenderFrameHost(host); 926 security_handler_->SetRenderFrameHost(host);
928 if (storage_handler_) 927 if (storage_handler_)
929 storage_handler_->SetRenderFrameHost(host); 928 storage_handler_->SetRenderFrameHost(host);
930 target_handler_->SetRenderFrameHost(host); 929 target_handler_->SetRenderFrameHost(host);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 RenderFrameHost* host) { 1139 RenderFrameHost* host) {
1141 return (current_ && current_->host() == host) || 1140 return (current_ && current_->host() == host) ||
1142 (pending_ && pending_->host() == host); 1141 (pending_ && pending_->host() == host);
1143 } 1142 }
1144 1143
1145 bool RenderFrameDevToolsAgentHost::IsChildFrame() { 1144 bool RenderFrameDevToolsAgentHost::IsChildFrame() {
1146 return current_ && current_->host()->GetParent(); 1145 return current_ && current_->host()->GetParent();
1147 } 1146 }
1148 1147
1149 } // namespace content 1148 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/input_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698