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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js

Issue 2678233002: DevTools: track more elements panel user actions (Closed)
Patch Set: cl feedback Created 3 years, 10 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: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
index b370c306e56d354bb79ee383c18a20447d08ffa6..5e8fb07b064f7ebad89b3bd2ba1b36243c79b448 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
@@ -323,8 +323,10 @@ Elements.ElementsTreeElement = class extends UI.TreeElement {
onselect(selectedByUser) {
this.treeOutline.suppressRevealAndSelect = true;
this.treeOutline.selectDOMNode(this._node, selectedByUser);
- if (selectedByUser)
+ if (selectedByUser) {
this._node.highlight();
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.ChangeInspectedNodeInElementsPanel);
chenwilliam 2017/02/28 22:31:17 This only gets triggered when you select from the
+ }
this._createSelection();
this.treeOutline.suppressRevealAndSelect = false;
return true;

Powered by Google App Engine
This is Rietveld 408576698