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

Side by Side Diff: Source/devtools/front_end/CPUProfileView.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 /** 716 /**
717 * @param {string} type 717 * @param {string} type
718 * @param {!WebInspector.DebuggerModel.Location} scriptLocation 718 * @param {!WebInspector.DebuggerModel.Location} scriptLocation
719 * @param {string} messageText 719 * @param {string} messageText
720 */ 720 */
721 _addMessageToConsole: function(type, scriptLocation, messageText) 721 _addMessageToConsole: function(type, scriptLocation, messageText)
722 { 722 {
723 var script = scriptLocation.script(); 723 var script = scriptLocation.script();
724 var message = new WebInspector.ConsoleMessage( 724 var message = new WebInspector.ConsoleMessage(
725 WebInspector.console.target(),
725 WebInspector.ConsoleMessage.MessageSource.ConsoleAPI, 726 WebInspector.ConsoleMessage.MessageSource.ConsoleAPI,
726 WebInspector.ConsoleMessage.MessageLevel.Debug, 727 WebInspector.ConsoleMessage.MessageLevel.Debug,
727 messageText, 728 messageText,
728 type, 729 type,
729 undefined, 730 undefined,
730 undefined, 731 undefined,
731 undefined, 732 undefined,
732 undefined, 733 undefined,
733 undefined, 734 undefined,
734 [{ 735 [{
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 1386
1386 /** 1387 /**
1387 * @param {number} entryIndex 1388 * @param {number} entryIndex
1388 * @return {!string} 1389 * @return {!string}
1389 */ 1390 */
1390 textColor: function(entryIndex) 1391 textColor: function(entryIndex)
1391 { 1392 {
1392 return "#333"; 1393 return "#333";
1393 } 1394 }
1394 } 1395 }
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-timestamp.html ('k') | Source/devtools/front_end/ConsoleModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698