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

Unified Diff: Source/devtools/front_end/resources/ServiceWorkerCacheViews.js

Issue 1107233003: Devtools: [CustomFormatter] Add context menu to disassemble custom previews (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce WebInspector.ObjectPropertiesSection.defaultObjectPresentation Created 5 years, 7 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 | « Source/devtools/front_end/resources/IndexedDBViews.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
diff --git a/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js b/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
index 6116465fe7807cb718f94578ac66cb20fd121557..38cafb919e169de4662d9621aa44499318dbb2c4 100644
--- a/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
+++ b/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
@@ -187,7 +187,8 @@ WebInspector.SWCacheDataGridNode.prototype = {
case "request":
case "response":
cell.removeChildren();
- this._formatValue(cell, value);
+ var objectElement = WebInspector.ObjectPropertiesSection.defaultObjectPresentation(value, true);
+ cell.appendChild(objectElement);
break;
default:
}
@@ -195,12 +196,5 @@ WebInspector.SWCacheDataGridNode.prototype = {
return cell;
},
- _formatValue: function(cell, value)
- {
- cell.classList.add("source-code");
- cell.classList.add("primitive-value");
- cell.appendChild(createTextNode(value));
- },
-
__proto__: WebInspector.DataGridNode.prototype
}
« no previous file with comments | « Source/devtools/front_end/resources/IndexedDBViews.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698