| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 }, | 263 }, |
| 264 | 264 |
| 265 /** | 265 /** |
| 266 * @param {!RuntimeAgent.ScriptId} scriptId | 266 * @param {!RuntimeAgent.ScriptId} scriptId |
| 267 * @param {!WebInspector.ExecutionContext} executionContext | 267 * @param {!WebInspector.ExecutionContext} executionContext |
| 268 * @param {?string=} sourceURL | 268 * @param {?string=} sourceURL |
| 269 */ | 269 */ |
| 270 _runScript: function(scriptId, executionContext, sourceURL) | 270 _runScript: function(scriptId, executionContext, sourceURL) |
| 271 { | 271 { |
| 272 var target = executionContext.target(); | 272 var target = executionContext.target(); |
| 273 target.runtimeModel.runScript(scriptId, executionContext.id, "console",
/* doNotPauseOnExceptionsAndMuteConsole */ false, /* includeCommandLineAPI */ tr
ue, /* returnByValue */ false, /* generatePreview */ true, /* awaitPromise */ un
defined, runCallback.bind(this, target)); | 273 target.runtimeModel.runScript(scriptId, executionContext.id, "console",
/* silent */ false, /* includeCommandLineAPI */ true, /* returnByValue */ false,
/* generatePreview */ true, /* awaitPromise */ undefined, runCallback.bind(this
, target)); |
| 274 | 274 |
| 275 /** | 275 /** |
| 276 * @param {!WebInspector.Target} target | 276 * @param {!WebInspector.Target} target |
| 277 * @param {?RuntimeAgent.RemoteObject} result | 277 * @param {?RuntimeAgent.RemoteObject} result |
| 278 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails | 278 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails |
| 279 * @this {WebInspector.ScriptSnippetModel} | 279 * @this {WebInspector.ScriptSnippetModel} |
| 280 */ | 280 */ |
| 281 function runCallback(target, result, exceptionDetails) | 281 function runCallback(target, result, exceptionDetails) |
| 282 { | 282 { |
| 283 if (!exceptionDetails) | 283 if (!exceptionDetails) |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 this._model.deleteScriptSnippet(url); | 684 this._model.deleteScriptSnippet(url); |
| 685 }, | 685 }, |
| 686 | 686 |
| 687 __proto__: WebInspector.ContentProviderBasedProject.prototype | 687 __proto__: WebInspector.ContentProviderBasedProject.prototype |
| 688 } | 688 } |
| 689 | 689 |
| 690 /** | 690 /** |
| 691 * @type {!WebInspector.ScriptSnippetModel} | 691 * @type {!WebInspector.ScriptSnippetModel} |
| 692 */ | 692 */ |
| 693 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); | 693 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); |
| OLD | NEW |