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

Side by Side Diff: Source/devtools/front_end/PropertiesSidebarPane.js

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 update: function(node) 41 update: function(node)
42 { 42 {
43 var body = this.bodyElement; 43 var body = this.bodyElement;
44 44
45 if (!node) { 45 if (!node) {
46 body.removeChildren(); 46 body.removeChildren();
47 this.sections = []; 47 this.sections = [];
48 return; 48 return;
49 } 49 }
50 50
51 WebInspector.RemoteObject.resolveNode(node, WebInspector.PropertiesSideb arPane._objectGroupName, nodeResolved.bind(this)); 51 node.resolveToObject(WebInspector.PropertiesSidebarPane._objectGroupName , nodeResolved.bind(this));
52 52
53 /** 53 /**
54 * @this {WebInspector.PropertiesSidebarPane} 54 * @this {WebInspector.PropertiesSidebarPane}
55 */ 55 */
56 function nodeResolved(object) 56 function nodeResolved(object)
57 { 57 {
58 if (!object) 58 if (!object)
59 return; 59 return;
60 60
61 /** 61 /**
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 title = title.replace(/Prototype$/, ""); 110 title = title.replace(/Prototype$/, "");
111 var section = new WebInspector.ObjectPropertiesSection(prototype , title); 111 var section = new WebInspector.ObjectPropertiesSection(prototype , title);
112 this.sections.push(section); 112 this.sections.push(section);
113 body.appendChild(section.element); 113 body.appendChild(section.element);
114 } 114 }
115 } 115 }
116 }, 116 },
117 117
118 __proto__: WebInspector.SidebarPane.prototype 118 __proto__: WebInspector.SidebarPane.prototype
119 } 119 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/MetricsSidebarPane.js ('k') | Source/devtools/front_end/RemoteObject.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698