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

Side by Side Diff: Source/devtools/front_end/ExtensionServer.js

Issue 222143003: DevTools: Make ConsoleMessage TargetAware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@console-cpp-exec-context
Patch Set: Rebase Created 6 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 return WebInspector.ConsoleMessage.MessageLevel.Error; 410 return WebInspector.ConsoleMessage.MessageLevel.Error;
411 case WebInspector.extensionAPI.console.Severity.Debug: 411 case WebInspector.extensionAPI.console.Severity.Debug:
412 return WebInspector.ConsoleMessage.MessageLevel.Debug; 412 return WebInspector.ConsoleMessage.MessageLevel.Debug;
413 } 413 }
414 } 414 }
415 var level = convertSeverity(message.severity); 415 var level = convertSeverity(message.severity);
416 if (!level) 416 if (!level)
417 return this._status.E_BADARG("message.severity", message.severity); 417 return this._status.E_BADARG("message.severity", message.severity);
418 418
419 var consoleMessage = new WebInspector.ConsoleMessage( 419 var consoleMessage = new WebInspector.ConsoleMessage(
420 WebInspector.console.target(),
420 WebInspector.ConsoleMessage.MessageSource.JS, 421 WebInspector.ConsoleMessage.MessageSource.JS,
421 level, 422 level,
422 message.text, 423 message.text,
423 WebInspector.ConsoleMessage.MessageType.Log, 424 WebInspector.ConsoleMessage.MessageType.Log,
424 message.url, 425 message.url,
425 message.line); 426 message.line);
426 WebInspector.console.addMessage(consoleMessage); 427 WebInspector.console.addMessage(consoleMessage);
427 }, 428 },
428 429
429 _makeConsoleMessage: function(message) 430 _makeConsoleMessage: function(message)
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 /** 1060 /**
1060 * @typedef {{code: string, description: string, details: !Array.<*>}} 1061 * @typedef {{code: string, description: string, details: !Array.<*>}}
1061 */ 1062 */
1062 WebInspector.ExtensionStatus.Record; 1063 WebInspector.ExtensionStatus.Record;
1063 1064
1064 WebInspector.extensionAPI = {}; 1065 WebInspector.extensionAPI = {};
1065 defineCommonExtensionSymbols(WebInspector.extensionAPI); 1066 defineCommonExtensionSymbols(WebInspector.extensionAPI);
1066 1067
1067 importScript("ExtensionPanel.js"); 1068 importScript("ExtensionPanel.js");
1068 importScript("ExtensionView.js"); 1069 importScript("ExtensionView.js");
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleViewMessage.js ('k') | Source/devtools/front_end/NetworkManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698