Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js

Issue 2646033003: DevTools: streamline console logging levels, migrate 'log' to 'info' level, 'debug' to 'verbose' le… (Closed)
Patch Set: missing rebaseline Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 /** 276 /**
277 * @param {!SDK.Target} target 277 * @param {!SDK.Target} target
278 * @param {?Protocol.Runtime.RemoteObject} result 278 * @param {?Protocol.Runtime.RemoteObject} result
279 * @param {!Protocol.Runtime.ScriptId} scriptId 279 * @param {!Protocol.Runtime.ScriptId} scriptId
280 * @param {?string=} sourceURL 280 * @param {?string=} sourceURL
281 */ 281 */
282 _printRunScriptResult(target, result, scriptId, sourceURL) { 282 _printRunScriptResult(target, result, scriptId, sourceURL) {
283 var consoleMessage = new SDK.ConsoleMessage( 283 var consoleMessage = new SDK.ConsoleMessage(
284 target, SDK.ConsoleMessage.MessageSource.JS, SDK.ConsoleMessage.MessageL evel.Log, '', undefined, sourceURL, 284 target, SDK.ConsoleMessage.MessageSource.JS, SDK.ConsoleMessage.MessageL evel.Info, '', undefined, sourceURL,
285 undefined, undefined, undefined, [result], undefined, undefined, undefin ed, scriptId); 285 undefined, undefined, undefined, [result], undefined, undefined, undefin ed, scriptId);
286 target.consoleModel.addMessage(consoleMessage); 286 target.consoleModel.addMessage(consoleMessage);
287 } 287 }
288 288
289 /** 289 /**
290 * @param {!SDK.Target} target 290 * @param {!SDK.Target} target
291 * @param {!Protocol.Runtime.ExceptionDetails} exceptionDetails 291 * @param {!Protocol.Runtime.ExceptionDetails} exceptionDetails
292 * @param {?string=} sourceURL 292 * @param {?string=} sourceURL
293 */ 293 */
294 _printRunOrCompileScriptResultFailure(target, exceptionDetails, sourceURL) { 294 _printRunOrCompileScriptResultFailure(target, exceptionDetails, sourceURL) {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 */ 619 */
620 deleteFile(url) { 620 deleteFile(url) {
621 this._model.deleteScriptSnippet(url); 621 this._model.deleteScriptSnippet(url);
622 } 622 }
623 }; 623 };
624 624
625 /** 625 /**
626 * @type {!Snippets.ScriptSnippetModel} 626 * @type {!Snippets.ScriptSnippetModel}
627 */ 627 */
628 Snippets.scriptSnippetModel = new Snippets.ScriptSnippetModel(Workspace.workspac e); 628 Snippets.scriptSnippetModel = new Snippets.ScriptSnippetModel(Workspace.workspac e);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698