| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 * @param {string} value | 649 * @param {string} value |
| 650 * @param {function(string=)} callback | 650 * @param {function(string=)} callback |
| 651 */ | 651 */ |
| 652 setPropertyValue: function(name, value, callback) | 652 setPropertyValue: function(name, value, callback) |
| 653 { | 653 { |
| 654 if (!this._objectId) { | 654 if (!this._objectId) { |
| 655 callback("Can't set a property of non-object."); | 655 callback("Can't set a property of non-object."); |
| 656 return; | 656 return; |
| 657 } | 657 } |
| 658 | 658 |
| 659 this._runtimeAgent.invoke_evaluate({expression:value, silent:true}, eval
uatedCallback.bind(this)); | 659 this._runtimeAgent.invoke_evaluate({expression:value, doNotPauseOnExcept
ionsAndMuteConsole:true}, evaluatedCallback.bind(this)); |
| 660 | 660 |
| 661 /** | 661 /** |
| 662 * @param {?Protocol.Error} error | 662 * @param {?Protocol.Error} error |
| 663 * @param {!RuntimeAgent.RemoteObject} result | 663 * @param {!RuntimeAgent.RemoteObject} result |
| 664 * @param {!RuntimeAgent.ExceptionDetails=} exceptionDetails | 664 * @param {!RuntimeAgent.ExceptionDetails=} exceptionDetails |
| 665 * @this {WebInspector.RemoteObject} | 665 * @this {WebInspector.RemoteObject} |
| 666 */ | 666 */ |
| 667 function evaluatedCallback(error, result, exceptionDetails) | 667 function evaluatedCallback(error, result, exceptionDetails) |
| 668 { | 668 { |
| 669 if (error || !!exceptionDetails) { | 669 if (error || !!exceptionDetails) { |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 }, | 1511 }, |
| 1512 | 1512 |
| 1513 /** | 1513 /** |
| 1514 * @return {!WebInspector.RemoteObject} | 1514 * @return {!WebInspector.RemoteObject} |
| 1515 */ | 1515 */ |
| 1516 object: function() | 1516 object: function() |
| 1517 { | 1517 { |
| 1518 return this._object; | 1518 return this._object; |
| 1519 } | 1519 } |
| 1520 } | 1520 } |
| OLD | NEW |