OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 /** | 185 /** |
186 * @this {Audits.AuditExtensionCategoryResults} | 186 * @this {Audits.AuditExtensionCategoryResults} |
187 * @param {string} expression | 187 * @param {string} expression |
188 * @param {string} title | 188 * @param {string} title |
189 * @param {?Object} evaluateOptions | 189 * @param {?Object} evaluateOptions |
190 * @return {!Element} | 190 * @return {!Element} |
191 */ | 191 */ |
192 object: function(expression, title, evaluateOptions) { | 192 object: function(expression, title, evaluateOptions) { |
193 var parentElement = createElement('div'); | 193 var parentElement = createElement('div'); |
194 function onEvaluate(remoteObject) { | 194 function onEvaluate(remoteObject) { |
195 var section = new Components.ObjectPropertiesSection(remoteObject, title); | 195 var section = new ObjectUI.ObjectPropertiesSection(remoteObject, title); |
196 section.expand(); | 196 section.expand(); |
197 section.editable = false; | 197 section.editable = false; |
198 parentElement.appendChild(section.element); | 198 parentElement.appendChild(section.element); |
199 } | 199 } |
200 this.evaluate(expression, evaluateOptions, onEvaluate); | 200 this.evaluate(expression, evaluateOptions, onEvaluate); |
201 return parentElement; | 201 return parentElement; |
202 }, | 202 }, |
203 | 203 |
204 /** | 204 /** |
205 * @this {Audits.AuditExtensionCategoryResults} | 205 * @this {Audits.AuditExtensionCategoryResults} |
(...skipping 16 matching lines...) Expand all Loading... |
222 */ | 222 */ |
223 function appendRenderer(element) { | 223 function appendRenderer(element) { |
224 parentElement.appendChild(element); | 224 parentElement.appendChild(element); |
225 } | 225 } |
226 } | 226 } |
227 return parentElement; | 227 return parentElement; |
228 } | 228 } |
229 }; | 229 }; |
230 | 230 |
231 Audits.AuditExtensionCategoryResults._lastId = 0; | 231 Audits.AuditExtensionCategoryResults._lastId = 0; |
OLD | NEW |