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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js

Issue 2823903004: [Devtools] Added product classification colorize rows to network panel (Closed)
Patch Set: Merge branch 'NETWORK_COLORS' into COLORIZE_PRODUCT_TYPE Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js b/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
index 92302ff45997de4560ef5f58f4e8834a7e7cf6c1..1262dd93ea9ff4831bab0d5ba0fdc2c1e870ca6f 100644
--- a/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
+++ b/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
@@ -130,11 +130,18 @@ NetworkGroupLookup.NetworkProductTypeGroupLookup = class {
if (typeName === null)
return;
var icon = UI.Icon.create('smallicon-network-product');
- if (typeName === 1)
+ var color;
+ if (typeName === 1) {
+ color = Common.Color.fromRGBA([255, 252, 225, .6]);
icon.style.filter = 'hue-rotate(220deg) brightness(1.5)';
- if (typeName === 2)
+ } else if (typeName === 2) {
+ color = Common.Color.fromRGBA([211, 253, 211, .6]);
icon.style.filter = 'hue-rotate(-90deg) brightness(1.5)';
+ } else {
+ color = Common.Color.fromRGBA([224, 247, 250, .6]);
+ }
node.setIconForColumn('product-extension', icon);
+ node.setBackgroundColor(color);
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698