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

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

Issue 2572283002: DevTools: set a default color for icon masks (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/consoleView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 * @param {!SDK.ConsoleMessage} consoleMessage 305 * @param {!SDK.ConsoleMessage} consoleMessage
306 * @param {!SDK.Target} target 306 * @param {!SDK.Target} target
307 * @param {!Components.Linkifier} linkifier 307 * @param {!Components.Linkifier} linkifier
308 * @return {!Element} 308 * @return {!Element}
309 */ 309 */
310 _buildMessageWithStackTrace(consoleMessage, target, linkifier) { 310 _buildMessageWithStackTrace(consoleMessage, target, linkifier) {
311 var toggleElement = createElementWithClass('div', 'console-message-stack-tra ce-toggle'); 311 var toggleElement = createElementWithClass('div', 'console-message-stack-tra ce-toggle');
312 var contentElement = toggleElement.createChild('div', 'console-message-stack -trace-wrapper'); 312 var contentElement = toggleElement.createChild('div', 'console-message-stack -trace-wrapper');
313 313
314 var messageElement = this._buildMessage(consoleMessage); 314 var messageElement = this._buildMessage(consoleMessage);
315 var icon = UI.Icon.create('smallicon-triangle-right', 'stack-trace-expand-ic on'); 315 var icon = UI.Icon.create('smallicon-triangle-right');
316 var clickableElement = contentElement.createChild('div'); 316 var clickableElement = contentElement.createChild('div');
317 clickableElement.appendChild(icon); 317 clickableElement.appendChild(icon);
318 318
319 clickableElement.appendChild(messageElement); 319 clickableElement.appendChild(messageElement);
320 var stackTraceElement = contentElement.createChild('div'); 320 var stackTraceElement = contentElement.createChild('div');
321 var stackTracePreview = 321 var stackTracePreview =
322 Components.DOMPresentationUtils.buildStackTracePreviewContents(target, l inkifier, consoleMessage.stackTrace); 322 Components.DOMPresentationUtils.buildStackTracePreviewContents(target, l inkifier, consoleMessage.stackTrace);
323 stackTraceElement.appendChild(stackTracePreview); 323 stackTraceElement.appendChild(stackTracePreview);
324 stackTraceElement.classList.add('hidden'); 324 stackTraceElement.classList.add('hidden');
325 325
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 toMessageElement() { 1207 toMessageElement() {
1208 if (!this._element) { 1208 if (!this._element) {
1209 super.toMessageElement(); 1209 super.toMessageElement();
1210 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon'); 1210 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon');
1211 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild); 1211 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild);
1212 this.setCollapsed(this._collapsed); 1212 this.setCollapsed(this._collapsed);
1213 } 1213 }
1214 return this._element; 1214 return this._element;
1215 } 1215 }
1216 }; 1216 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/consoleView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698