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

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

Issue 2678233002: DevTools: track more elements panel user actions (Closed)
Patch Set: different metrics 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/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index 98765e8b0dac739fd0edca8fea663625801dd2b6..e8a9be7050284bf6d8c96bd41e0340a24bb32ad2 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -2088,6 +2088,7 @@ Elements.StylePropertyTreeElement = class extends UI.TreeElement {
this.listItemElement.addEventListener('mousedown', this._mouseDown.bind(this));
this.listItemElement.addEventListener('mouseup', this._resetMouseDownElement.bind(this));
this.listItemElement.addEventListener('click', this._mouseClick.bind(this));
+ this.listItemElement.addEventListener('copy', this._clipboardCopy.bind(this));
pfeldman 2017/02/08 19:04:48 You just created a lot of listeners for no good re
chenwilliam 2017/02/10 22:53:38 Done.
}
/**
@@ -2111,6 +2112,10 @@ Elements.StylePropertyTreeElement = class extends UI.TreeElement {
}
}
+ _clipboardCopy() {
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.StyleRuleCopied);
+ }
+
/**
* @override
*/

Powered by Google App Engine
This is Rietveld 408576698