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

Side by Side Diff: inspector/front-end/WatchExpressionsSidebarPane.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/StylesSidebarPane.js ('k') | inspector/front-end/inspector.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) IBM Corp. 2009 All rights reserved. 2 * Copyright (C) IBM Corp. 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (this._newExpressionAdded) { 124 if (this._newExpressionAdded) {
125 delete this._newExpressionAdded; 125 delete this._newExpressionAdded;
126 126
127 treeElement = this.findAddedTreeElement(); 127 treeElement = this.findAddedTreeElement();
128 if (treeElement) 128 if (treeElement)
129 treeElement.startEditing(); 129 treeElement.startEditing();
130 } 130 }
131 } 131 }
132 } 132 }
133 133
134 InspectorBackend.releaseWrapperObjectGroup(this._watchObjectGroupId) 134 // TODO: pass exact injected script id.
135 InspectorBackend.releaseWrapperObjectGroup(0, this._watchObjectGroupId)
135 var properties = []; 136 var properties = [];
136 137
137 // Count the properties, so we known when to call this.updateProperties( ) 138 // Count the properties, so we known when to call this.updateProperties( )
138 // in appendResult() 139 // in appendResult()
139 var propertyCount = 0; 140 var propertyCount = 0;
140 for (var i = 0; i < this.watchExpressions.length; ++i) { 141 for (var i = 0; i < this.watchExpressions.length; ++i) {
141 if (!this.watchExpressions[i]) 142 if (!this.watchExpressions[i])
142 continue; 143 continue;
143 ++propertyCount; 144 ++propertyCount;
144 } 145 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 270
270 if (!expression) 271 if (!expression)
271 expression = null; 272 expression = null;
272 273
273 this.property.name = expression; 274 this.property.name = expression;
274 this.treeOutline.section.updateExpression(this, expression); 275 this.treeOutline.section.updateExpression(this, expression);
275 } 276 }
276 } 277 }
277 278
278 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec tPropertyTreeElement.prototype; 279 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec tPropertyTreeElement.prototype;
OLDNEW
« no previous file with comments | « inspector/front-end/StylesSidebarPane.js ('k') | inspector/front-end/inspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698