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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js

Issue 1563113002: DevTools: add a navigator menu with grouping options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/ui/SoftContextMenu.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
index 46f0e9f6255557e36e8d8bb9e5aa8551ab34b34e..33f8545aac8ab70c8d2a099526877f0125454058 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
@@ -134,6 +134,8 @@ WebInspector.SoftContextMenu.prototype = {
return menuItemElement;
}
+ if (!item.enabled)
+ menuItemElement.classList.add("soft-context-menu-disabled");
menuItemElement.createTextChild(item.label);
menuItemElement.createChild("span", "soft-context-menu-shortcut").textContent = item.shortcut;

Powered by Google App Engine
This is Rietveld 408576698