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

Unified Diff: Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 1154703005: [DevTools] Added window listeners to EventListenersSidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@extract-event-listeners-tree-outline
Patch Set: Test fixed Created 5 years, 7 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: Source/devtools/front_end/components/ObjectPropertiesSection.js
diff --git a/Source/devtools/front_end/components/ObjectPropertiesSection.js b/Source/devtools/front_end/components/ObjectPropertiesSection.js
index 9ffc15ca93c4c4c6ade75ed2c9df80ad8e260339..532f8272d09230f8f3b02edc8524c01bf05e75d8 100644
--- a/Source/devtools/front_end/components/ObjectPropertiesSection.js
+++ b/Source/devtools/front_end/components/ObjectPropertiesSection.js
@@ -1147,6 +1147,7 @@ WebInspector.ObjectPropertiesSection.createValueElement = function(value, wasThr
if (type === "object" && subtype === "node" && description) {
WebInspector.DOMPresentationUtils.createSpansForNodeTitle(valueElement, description);
+ valueElement.addEventListener("click", mouseClick, false);
valueElement.addEventListener("mousemove", mouseMove, false);
valueElement.addEventListener("mouseleave", mouseLeave, false);
} else {
@@ -1163,6 +1164,15 @@ WebInspector.ObjectPropertiesSection.createValueElement = function(value, wasThr
WebInspector.DOMModel.hideDOMNodeHighlight();
}
+ /**
+ * @param {!Event} event
+ */
+ function mouseClick(event)
+ {
+ WebInspector.Revealer.reveal(value);
+ event.consume(true);
+ }
+
return valueElement;
}

Powered by Google App Engine
This is Rietveld 408576698