| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 /** | 271 /** |
| 272 * @param {!SDK.Target} target | 272 * @param {!SDK.Target} target |
| 273 * @param {?Protocol.Runtime.RemoteObject} result | 273 * @param {?Protocol.Runtime.RemoteObject} result |
| 274 * @param {!Protocol.Runtime.ScriptId} scriptId | 274 * @param {!Protocol.Runtime.ScriptId} scriptId |
| 275 * @param {?string=} sourceURL | 275 * @param {?string=} sourceURL |
| 276 */ | 276 */ |
| 277 _printRunScriptResult(target, result, scriptId, sourceURL) { | 277 _printRunScriptResult(target, result, scriptId, sourceURL) { |
| 278 var consoleMessage = new SDK.ConsoleMessage( | 278 var consoleMessage = new SDK.ConsoleMessage( |
| 279 target, SDK.ConsoleMessage.MessageSource.JS, SDK.ConsoleMessage.MessageL
evel.Info, '', undefined, sourceURL, | 279 target, SDK.ConsoleMessage.MessageSource.JS, SDK.ConsoleMessage.MessageL
evel.Info, '', undefined, sourceURL, |
| 280 undefined, undefined, undefined, [result], undefined, undefined, undefin
ed, scriptId); | 280 undefined, undefined, undefined, [result], undefined, undefined, undefin
ed, scriptId); |
| 281 target.consoleModel.addMessage(consoleMessage); | 281 SDK.multitargetConsoleModel.addMessage(consoleMessage); |
| 282 } | 282 } |
| 283 | 283 |
| 284 /** | 284 /** |
| 285 * @param {!SDK.Target} target | 285 * @param {!SDK.Target} target |
| 286 * @param {!Protocol.Runtime.ExceptionDetails} exceptionDetails | 286 * @param {!Protocol.Runtime.ExceptionDetails} exceptionDetails |
| 287 * @param {?string=} sourceURL | 287 * @param {?string=} sourceURL |
| 288 */ | 288 */ |
| 289 _printRunOrCompileScriptResultFailure(target, exceptionDetails, sourceURL) { | 289 _printRunOrCompileScriptResultFailure(target, exceptionDetails, sourceURL) { |
| 290 target.consoleModel.addMessage( | 290 SDK.multitargetConsoleModel.addMessage( |
| 291 SDK.ConsoleMessage.fromException(target, exceptionDetails, undefined, un
defined, sourceURL || undefined)); | 291 SDK.ConsoleMessage.fromException(target, exceptionDetails, undefined, un
defined, sourceURL || undefined)); |
| 292 } | 292 } |
| 293 | 293 |
| 294 /** | 294 /** |
| 295 * @param {!Workspace.UISourceCode} uiSourceCode | 295 * @param {!Workspace.UISourceCode} uiSourceCode |
| 296 * @return {!Array.<!{breakpoint: !Bindings.BreakpointManager.Breakpoint, uiLo
cation: !Workspace.UILocation}>} | 296 * @return {!Array.<!{breakpoint: !Bindings.BreakpointManager.Breakpoint, uiLo
cation: !Workspace.UILocation}>} |
| 297 */ | 297 */ |
| 298 _removeBreakpoints(uiSourceCode) { | 298 _removeBreakpoints(uiSourceCode) { |
| 299 var breakpointLocations = Bindings.breakpointManager.breakpointLocationsForU
ISourceCode(uiSourceCode); | 299 var breakpointLocations = Bindings.breakpointManager.breakpointLocationsForU
ISourceCode(uiSourceCode); |
| 300 for (var i = 0; i < breakpointLocations.length; ++i) | 300 for (var i = 0; i < breakpointLocations.length; ++i) |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 */ | 613 */ |
| 614 deleteFile(uiSourceCode) { | 614 deleteFile(uiSourceCode) { |
| 615 this._model.deleteScriptSnippet(uiSourceCode); | 615 this._model.deleteScriptSnippet(uiSourceCode); |
| 616 } | 616 } |
| 617 }; | 617 }; |
| 618 | 618 |
| 619 /** | 619 /** |
| 620 * @type {!Snippets.ScriptSnippetModel} | 620 * @type {!Snippets.ScriptSnippetModel} |
| 621 */ | 621 */ |
| 622 Snippets.scriptSnippetModel = new Snippets.ScriptSnippetModel(Workspace.workspac
e); | 622 Snippets.scriptSnippetModel = new Snippets.ScriptSnippetModel(Workspace.workspac
e); |
| OLD | NEW |