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

Unified Diff: Source/devtools/front_end/ElementsTreeOutline.js

Issue 206413004: DevTools: minor UI / menu tweaks reducing the clutter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/ElementsTreeOutline.js
diff --git a/Source/devtools/front_end/ElementsTreeOutline.js b/Source/devtools/front_end/ElementsTreeOutline.js
index 9df7d87c2cfbb7a78fb7b1b0aeac7243ca017b88..89a47c883b58e74d4a92abc921306bdaceaf8d35 100644
--- a/Source/devtools/front_end/ElementsTreeOutline.js
+++ b/Source/devtools/front_end/ElementsTreeOutline.js
@@ -1437,7 +1437,6 @@ WebInspector.ElementsTreeElement.prototype = {
contextMenu.appendItem(WebInspector.UIString("Copy XPath"), this._copyXPath.bind(this));
if (isEditable)
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Delete node" : "Delete Node"), this.remove.bind(this));
- contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Inspect DOM properties" : "Inspect DOM Properties"), this._inspectDOMProperties.bind(this));
apavlov 2014/03/21 14:22:55 This one is also not quite clear to me. It was int
},
_startEditing: function()
@@ -2336,34 +2335,6 @@ WebInspector.ElementsTreeElement.prototype = {
InspectorFrontendHost.copyText(WebInspector.DOMPresentationUtils.xPath(this._node, true));
},
- _inspectDOMProperties: function()
- {
- WebInspector.RemoteObject.resolveNode(this._node, "console", callback);
-
- /**
- * @param {?WebInspector.RemoteObject} nodeObject
- */
- function callback(nodeObject)
- {
- if (!nodeObject)
- return;
-
- var message = new WebInspector.ConsoleMessage(
- WebInspector.ConsoleMessage.MessageSource.ConsoleAPI,
- WebInspector.ConsoleMessage.MessageLevel.Log,
- "",
- WebInspector.ConsoleMessage.MessageType.Dir,
- undefined,
- undefined,
- undefined,
- undefined,
- undefined,
- [nodeObject]);
- WebInspector.console.addMessage(message);
- WebInspector.console.show();
- }
- },
-
_highlightSearchResults: function()
{
if (!this._searchQuery || !this._searchHighlightsVisible)

Powered by Google App Engine
This is Rietveld 408576698