| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 */ | 164 */ |
| 165 setObject: function(object, title, callback) | 165 setObject: function(object, title, callback) |
| 166 { | 166 { |
| 167 this._createObjectPropertiesView(); | 167 this._createObjectPropertiesView(); |
| 168 this._setObject(WebInspector.RemoteObject.fromLocalObject(object), title
, callback); | 168 this._setObject(WebInspector.RemoteObject.fromLocalObject(object), title
, callback); |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 /** | 171 /** |
| 172 * @param {string} expression | 172 * @param {string} expression |
| 173 * @param {string} title | 173 * @param {string} title |
| 174 * @param {!Object} evaluateOptions |
| 175 * @param {string} securityOrigin |
| 174 * @param {function(?string=)} callback | 176 * @param {function(?string=)} callback |
| 175 */ | 177 */ |
| 176 setExpression: function(expression, title, evaluateOptions, securityOrigin,
callback) | 178 setExpression: function(expression, title, evaluateOptions, securityOrigin,
callback) |
| 177 { | 179 { |
| 178 this._createObjectPropertiesView(); | 180 this._createObjectPropertiesView(); |
| 179 WebInspector.extensionServer.evaluate(expression, true, false, evaluateO
ptions, securityOrigin, this._onEvaluate.bind(this, title, callback)); | 181 WebInspector.extensionServer.evaluate(expression, true, false, evaluateO
ptions, securityOrigin, this._onEvaluate.bind(this, title, callback)); |
| 180 }, | 182 }, |
| 181 | 183 |
| 182 /** | 184 /** |
| 183 * @param {string} url | 185 * @param {string} url |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 if (!title) | 252 if (!title) |
| 251 section.headerElement.classList.add("hidden"); | 253 section.headerElement.classList.add("hidden"); |
| 252 section.expanded = true; | 254 section.expanded = true; |
| 253 section.editable = false; | 255 section.editable = false; |
| 254 this._objectPropertiesView.element.appendChild(section.element); | 256 this._objectPropertiesView.element.appendChild(section.element); |
| 255 callback(); | 257 callback(); |
| 256 }, | 258 }, |
| 257 | 259 |
| 258 __proto__: WebInspector.SidebarPane.prototype | 260 __proto__: WebInspector.SidebarPane.prototype |
| 259 } | 261 } |
| OLD | NEW |