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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: Created 4 years, 1 month 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 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 switch (this._message.level) { 991 switch (this._message.level) {
992 case WebInspector.ConsoleMessage.MessageLevel.Log: 992 case WebInspector.ConsoleMessage.MessageLevel.Log:
993 this._element.classList.add('console-log-level'); 993 this._element.classList.add('console-log-level');
994 break; 994 break;
995 case WebInspector.ConsoleMessage.MessageLevel.Debug: 995 case WebInspector.ConsoleMessage.MessageLevel.Debug:
996 this._element.classList.add('console-debug-level'); 996 this._element.classList.add('console-debug-level');
997 break; 997 break;
998 case WebInspector.ConsoleMessage.MessageLevel.Warning: 998 case WebInspector.ConsoleMessage.MessageLevel.Warning:
999 this._element.classList.add('console-warning-level'); 999 this._element.classList.add('console-warning-level');
1000 break; 1000 break;
1001 case WebInspector.ConsoleMessage.MessageLevel.Violation:
1002 this._element.classList.add('console-violation-level');
1003 break;
1001 case WebInspector.ConsoleMessage.MessageLevel.Error: 1004 case WebInspector.ConsoleMessage.MessageLevel.Error:
1002 this._element.classList.add('console-error-level'); 1005 this._element.classList.add('console-error-level');
1003 break; 1006 break;
1004 case WebInspector.ConsoleMessage.MessageLevel.RevokedError: 1007 case WebInspector.ConsoleMessage.MessageLevel.RevokedError:
1005 this._element.classList.add('console-revokedError-level'); 1008 this._element.classList.add('console-revokedError-level');
1006 break; 1009 break;
1007 case WebInspector.ConsoleMessage.MessageLevel.Info: 1010 case WebInspector.ConsoleMessage.MessageLevel.Info:
1008 this._element.classList.add('console-info-level'); 1011 this._element.classList.add('console-info-level');
1009 break; 1012 break;
1010 } 1013 }
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 * @return {!Element} 1234 * @return {!Element}
1232 */ 1235 */
1233 toMessageElement() { 1236 toMessageElement() {
1234 if (!this._element) { 1237 if (!this._element) {
1235 super.toMessageElement(); 1238 super.toMessageElement();
1236 this._element.classList.toggle('collapsed', this._collapsed); 1239 this._element.classList.toggle('collapsed', this._collapsed);
1237 } 1240 }
1238 return this._element; 1241 return this._element;
1239 } 1242 }
1240 }; 1243 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698