| OLD | NEW |
| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 */ | 251 */ |
| 252 expression: function() | 252 expression: function() |
| 253 { | 253 { |
| 254 return this._expression; | 254 return this._expression; |
| 255 }, | 255 }, |
| 256 | 256 |
| 257 update: function() | 257 update: function() |
| 258 { | 258 { |
| 259 var currentExecutionContext = WebInspector.context.flavor(WebInspector.E
xecutionContext); | 259 var currentExecutionContext = WebInspector.context.flavor(WebInspector.E
xecutionContext); |
| 260 if (currentExecutionContext && this._expression) | 260 if (currentExecutionContext && this._expression) |
| 261 currentExecutionContext.evaluate(this._expression, WebInspector.Watc
hExpression._watchObjectGroupId, false, true, false, false, this._createWatchExp
ression.bind(this)); | 261 currentExecutionContext.evaluate(this._expression, WebInspector.Watc
hExpression._watchObjectGroupId, false, true, false, false, false, this._createW
atchExpression.bind(this)); |
| 262 }, | 262 }, |
| 263 | 263 |
| 264 startEditing: function() | 264 startEditing: function() |
| 265 { | 265 { |
| 266 this._editing = true; | 266 this._editing = true; |
| 267 this._element.removeChild(this._objectPresentationElement); | 267 this._element.removeChild(this._objectPresentationElement); |
| 268 var newDiv = this._element.createChild("div"); | 268 var newDiv = this._element.createChild("div"); |
| 269 newDiv.textContent = this._nameElement.textContent; | 269 newDiv.textContent = this._nameElement.textContent; |
| 270 this._textPrompt = new WebInspector.ObjectPropertyPrompt(); | 270 this._textPrompt = new WebInspector.ObjectPropertyPrompt(); |
| 271 this._textPrompt.renderAsBlock(); | 271 this._textPrompt.renderAsBlock(); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 contextMenu.appendApplicableItems(this._result); | 431 contextMenu.appendApplicableItems(this._result); |
| 432 }, | 432 }, |
| 433 | 433 |
| 434 _copyValueButtonClicked: function() | 434 _copyValueButtonClicked: function() |
| 435 { | 435 { |
| 436 InspectorFrontendHost.copyText(this._valueElement.textContent); | 436 InspectorFrontendHost.copyText(this._valueElement.textContent); |
| 437 }, | 437 }, |
| 438 | 438 |
| 439 __proto__: WebInspector.Object.prototype | 439 __proto__: WebInspector.Object.prototype |
| 440 } | 440 } |
| OLD | NEW |