| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 var self = this; | 45 var self = this; |
| 46 var callback = function(prototypes) { | 46 var callback = function(prototypes) { |
| 47 var body = self.bodyElement; | 47 var body = self.bodyElement; |
| 48 body.removeChildren(); | 48 body.removeChildren(); |
| 49 self.sections = []; | 49 self.sections = []; |
| 50 | 50 |
| 51 // Get array of prototype user-friendly names. | 51 // Get array of prototype user-friendly names. |
| 52 for (var i = 0; i < prototypes.length; ++i) { | 52 for (var i = 0; i < prototypes.length; ++i) { |
| 53 var prototype = new WebInspector.ObjectProxy(node.id, [], i); | 53 var prototype = new WebInspector.ObjectProxy(node.injectedScript
Id, node.id, [], i); |
| 54 var section = new WebInspector.ObjectPropertiesSection(prototype
, prototypes[i], WebInspector.UIString("Prototype")); | 54 var section = new WebInspector.ObjectPropertiesSection(prototype
, prototypes[i], WebInspector.UIString("Prototype")); |
| 55 self.sections.push(section); | 55 self.sections.push(section); |
| 56 body.appendChild(section.element); | 56 body.appendChild(section.element); |
| 57 } | 57 } |
| 58 }; | 58 }; |
| 59 InjectedScriptAccess.getPrototypes(node.id, callback); | 59 InjectedScriptAccess.get(node.injectedScriptId).getPrototypes(node.id, c
allback); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 WebInspector.PropertiesSidebarPane.prototype.__proto__ = WebInspector.SidebarPan
e.prototype; | 63 WebInspector.PropertiesSidebarPane.prototype.__proto__ = WebInspector.SidebarPan
e.prototype; |
| OLD | NEW |