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

Unified Diff: content/browser/devtools/devtools_agent_host_impl.cc

Issue 2161493002: [DevTools] Pass client initiating DevToolsAgentHost::inspectElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/devtools_agent_host_impl.cc
diff --git a/content/browser/devtools/devtools_agent_host_impl.cc b/content/browser/devtools/devtools_agent_host_impl.cc
index df95b806e2411bd48d95b616eaaa544ea6df17fa..1c7f9a641a74442f6a45f90ea00acce50375067a 100644
--- a/content/browser/devtools/devtools_agent_host_impl.cc
+++ b/content/browser/devtools/devtools_agent_host_impl.cc
@@ -153,7 +153,13 @@ bool DevToolsAgentHostImpl::IsAttached() {
return !!client_;
}
-void DevToolsAgentHostImpl::InspectElement(int x, int y) {
+void DevToolsAgentHostImpl::InspectElement(
+ DevToolsAgentHostClient* client,
+ int x,
+ int y) {
+ if (!client_ || client_ != client)
+ return;
+ InspectElement(x, y);
}
std::string DevToolsAgentHostImpl::GetId() {
@@ -195,6 +201,9 @@ void DevToolsAgentHostImpl::HostClosed() {
client->AgentHostClosed(this, false);
}
+void DevToolsAgentHostImpl::InspectElement(int x, int y) {
+}
+
void DevToolsAgentHostImpl::SendMessageToClient(int session_id,
const std::string& message) {
if (!client_)
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.h ('k') | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698