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 if (callback) | 185 if (callback) |
186 callback(scriptId, exceptionDetails); | 186 callback(scriptId, exceptionDetails); |
187 } | 187 } |
188 }, | 188 }, |
189 | 189 |
190 /** | 190 /** |
191 * @param {!RuntimeAgent.ScriptId} scriptId | 191 * @param {!RuntimeAgent.ScriptId} scriptId |
192 * @param {number} executionContextId | 192 * @param {number} executionContextId |
193 * @param {string=} objectGroup | 193 * @param {string=} objectGroup |
194 * @param {boolean=} doNotPauseOnExceptionsAndMuteConsole | 194 * @param {boolean=} doNotPauseOnExceptionsAndMuteConsole |
| 195 * @param {boolean=} includeCommandLineAPI |
195 * @param {function(?RuntimeAgent.RemoteObject, ?RuntimeAgent.ExceptionDetai
ls=)=} callback | 196 * @param {function(?RuntimeAgent.RemoteObject, ?RuntimeAgent.ExceptionDetai
ls=)=} callback |
196 */ | 197 */ |
197 runScript: function(scriptId, executionContextId, objectGroup, doNotPauseOnE
xceptionsAndMuteConsole, callback) | 198 runScript: function(scriptId, executionContextId, objectGroup, doNotPauseOnE
xceptionsAndMuteConsole, includeCommandLineAPI, callback) |
198 { | 199 { |
199 this._agent.runScript(scriptId, executionContextId, objectGroup, doNotPa
useOnExceptionsAndMuteConsole, innerCallback); | 200 this._agent.runScript(scriptId, executionContextId, objectGroup, doNotPa
useOnExceptionsAndMuteConsole, includeCommandLineAPI, innerCallback); |
200 | 201 |
201 /** | 202 /** |
202 * @param {?Protocol.Error} error | 203 * @param {?Protocol.Error} error |
203 * @param {?RuntimeAgent.RemoteObject} result | 204 * @param {?RuntimeAgent.RemoteObject} result |
204 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails | 205 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails |
205 */ | 206 */ |
206 function innerCallback(error, result, exceptionDetails) | 207 function innerCallback(error, result, exceptionDetails) |
207 { | 208 { |
208 if (error) { | 209 if (error) { |
209 console.error(error); | 210 console.error(error); |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 /** | 687 /** |
687 * @param {string} listenerType | 688 * @param {string} listenerType |
688 */ | 689 */ |
689 setListenerType: function(listenerType) | 690 setListenerType: function(listenerType) |
690 { | 691 { |
691 this._listenerType = listenerType; | 692 this._listenerType = listenerType; |
692 }, | 693 }, |
693 | 694 |
694 __proto__: WebInspector.SDKObject.prototype | 695 __proto__: WebInspector.SDKObject.prototype |
695 } | 696 } |
OLD | NEW |