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

Unified Diff: chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js

Issue 177049: On Linux, move the passing of filedescriptors to a dedicated socketpair(). (Closed)
Patch Set: Removed *.d files from reference build Created 11 years, 4 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: chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
diff --git a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
index 70db8052e66274aeb2de514fc91b9d76a8b5569b..4e55761ec7bc5af8615bd63ebf769b95461dc9b9 100644
--- a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
+++ b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
@@ -32,7 +32,7 @@ WebInspector.PropertiesSidebarPane = function()
}
WebInspector.PropertiesSidebarPane.prototype = {
- update: function(object)
+ update: function(node)
{
var body = this.bodyElement;
@@ -40,14 +40,24 @@ WebInspector.PropertiesSidebarPane.prototype = {
this.sections = [];
- if (!object)
+ if (!node)
return;
- for (var prototype = object; prototype; prototype = prototype.__proto__) {
- var section = new WebInspector.ObjectPropertiesSection(prototype);
- this.sections.push(section);
- body.appendChild(section.element);
- }
+ var self = this;
+ var callback = function(prototypes) {
+ var body = self.bodyElement;
+ body.removeChildren();
+ self.sections = [];
+
+ // Get array of prototype user-friendly names.
+ for (var i = 0; i < prototypes.length; ++i) {
+ var prototype = new WebInspector.ObjectProxy(node.id, [], i);
+ var section = new WebInspector.ObjectPropertiesSection(prototype, prototypes[i], WebInspector.UIString("Prototype"));
+ self.sections.push(section);
+ body.appendChild(section.element);
+ }
+ };
+ InspectorController.getPrototypes(node.id, callback);
}
}

Powered by Google App Engine
This is Rietveld 408576698