| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 * @return {?string} | 247 * @return {?string} |
| 248 */ | 248 */ |
| 249 expression: function() | 249 expression: function() |
| 250 { | 250 { |
| 251 return this._expression; | 251 return this._expression; |
| 252 }, | 252 }, |
| 253 | 253 |
| 254 update: function() | 254 update: function() |
| 255 { | 255 { |
| 256 var currentExecutionContext = WebInspector.context.flavor(WebInspector.E
xecutionContext); | 256 var currentExecutionContext = WebInspector.context.flavor(WebInspector.E
xecutionContext); |
| 257 if (currentExecutionContext && this._expression) | 257 if (currentExecutionContext && this._expression) { |
| 258 currentExecutionContext.evaluate(this._expression, WebInspector.Watc
hExpression._watchObjectGroupId, false, true, false, false, this._createWatchExp
ression.bind(this)); | 258 new WebInspector.MultiLingualExecutionContext(currentExecutionContex
t).evaluate(this._expression, WebInspector.WatchExpression._watchObjectGroupId,
false, true, false, false, this._createWatchExpression.bind(this)); |
| 259 } |
| 259 }, | 260 }, |
| 260 | 261 |
| 261 startEditing: function() | 262 startEditing: function() |
| 262 { | 263 { |
| 263 this._editing = true; | 264 this._editing = true; |
| 264 this._element.removeChild(this._objectPresentationElement); | 265 this._element.removeChild(this._objectPresentationElement); |
| 265 var newDiv = this._element.createChild("div"); | 266 var newDiv = this._element.createChild("div"); |
| 266 newDiv.textContent = this._nameElement.textContent; | 267 newDiv.textContent = this._nameElement.textContent; |
| 267 this._textPrompt = new WebInspector.ObjectPropertyPrompt(); | 268 this._textPrompt = new WebInspector.ObjectPropertyPrompt(); |
| 268 this._textPrompt.renderAsBlock(); | 269 this._textPrompt.renderAsBlock(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 contextMenu.appendApplicableItems(this._result); | 425 contextMenu.appendApplicableItems(this._result); |
| 425 }, | 426 }, |
| 426 | 427 |
| 427 _copyValueButtonClicked: function() | 428 _copyValueButtonClicked: function() |
| 428 { | 429 { |
| 429 InspectorFrontendHost.copyText(this._valueElement.textContent); | 430 InspectorFrontendHost.copyText(this._valueElement.textContent); |
| 430 }, | 431 }, |
| 431 | 432 |
| 432 __proto__: WebInspector.Object.prototype | 433 __proto__: WebInspector.Object.prototype |
| 433 } | 434 } |
| OLD | NEW |