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

Side by Side Diff: inspector/front-end/PropertiesSidebarPane.js

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 years, 11 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
« no previous file with comments | « inspector/front-end/ObjectProxy.js ('k') | inspector/front-end/ResourcesPanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
OLDNEW
« no previous file with comments | « inspector/front-end/ObjectProxy.js ('k') | inspector/front-end/ResourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698