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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 /** | 295 /** |
296 * @param {!WebInspector.Target} target | 296 * @param {!WebInspector.Target} target |
297 * @param {?RuntimeAgent.RemoteObject} result | 297 * @param {?RuntimeAgent.RemoteObject} result |
298 * @param {?string=} sourceURL | 298 * @param {?string=} sourceURL |
299 */ | 299 */ |
300 _printRunScriptResult: function(target, result, sourceURL) | 300 _printRunScriptResult: function(target, result, sourceURL) |
301 { | 301 { |
302 var consoleMessage = new WebInspector.ConsoleMessage( | 302 var consoleMessage = new WebInspector.ConsoleMessage( |
303 target, | 303 target, |
| 304 0, |
304 WebInspector.ConsoleMessage.MessageSource.JS, | 305 WebInspector.ConsoleMessage.MessageSource.JS, |
305 WebInspector.ConsoleMessage.MessageLevel.Log, | 306 WebInspector.ConsoleMessage.MessageLevel.Log, |
306 "", | 307 "", |
307 undefined, | 308 undefined, |
308 sourceURL, | 309 sourceURL, |
309 undefined, | 310 undefined, |
310 undefined, | 311 undefined, |
311 undefined, | 312 undefined, |
312 [result], | 313 [result], |
313 undefined); | 314 undefined); |
314 target.consoleModel.addMessage(consoleMessage); | 315 target.consoleModel.addMessage(consoleMessage); |
315 }, | 316 }, |
316 | 317 |
317 /** | 318 /** |
318 * @param {!WebInspector.Target} target | 319 * @param {!WebInspector.Target} target |
319 * @param {?DebuggerAgent.ExceptionDetails=} exceptionDetails | 320 * @param {?DebuggerAgent.ExceptionDetails=} exceptionDetails |
320 * @param {?string=} sourceURL | 321 * @param {?string=} sourceURL |
321 */ | 322 */ |
322 _printRunOrCompileScriptResultFailure: function(target, exceptionDetails, so
urceURL) | 323 _printRunOrCompileScriptResultFailure: function(target, exceptionDetails, so
urceURL) |
323 { | 324 { |
324 var consoleMessage = new WebInspector.ConsoleMessage( | 325 var consoleMessage = new WebInspector.ConsoleMessage( |
325 target, | 326 target, |
| 327 0, |
326 exceptionDetails.source, | 328 exceptionDetails.source, |
327 WebInspector.ConsoleMessage.MessageLevel.Error, | 329 WebInspector.ConsoleMessage.MessageLevel.Error, |
328 exceptionDetails.text, | 330 exceptionDetails.text, |
329 undefined, | 331 undefined, |
330 sourceURL, | 332 sourceURL, |
331 exceptionDetails.line, | 333 exceptionDetails.line, |
332 exceptionDetails.column, | 334 exceptionDetails.column, |
333 undefined, | 335 undefined, |
334 undefined, | 336 undefined, |
335 exceptionDetails.stackTrace); | 337 exceptionDetails.stackTrace); |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 this._model.deleteScriptSnippet(path); | 686 this._model.deleteScriptSnippet(path); |
685 }, | 687 }, |
686 | 688 |
687 __proto__: WebInspector.ContentProviderBasedProjectDelegate.prototype | 689 __proto__: WebInspector.ContentProviderBasedProjectDelegate.prototype |
688 } | 690 } |
689 | 691 |
690 /** | 692 /** |
691 * @type {!WebInspector.ScriptSnippetModel} | 693 * @type {!WebInspector.ScriptSnippetModel} |
692 */ | 694 */ |
693 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); | 695 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); |
OLD | NEW |