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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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 | Annotate | Revision Log
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * @return {!WebInspector.ConsoleMessage} 136 * @return {!WebInspector.ConsoleMessage}
137 */ 137 */
138 consoleMessage: function() 138 consoleMessage: function()
139 { 139 {
140 return this._message; 140 return this._message;
141 }, 141 },
142 142
143 _formatMessage: function() 143 _formatMessage: function()
144 { 144 {
145 this._formattedMessage = createElement("span"); 145 this._formattedMessage = createElement("span");
146 this._formattedMessage.appendChild(WebInspector.View.createStyleElement( "components/objectValue.css")); 146 this._formattedMessage.appendChild(WebInspector.Widget.createStyleElemen t("components/objectValue.css"));
147 this._formattedMessage.className = "console-message-text source-code"; 147 this._formattedMessage.className = "console-message-text source-code";
148 148
149 /** 149 /**
150 * @param {string} title 150 * @param {string} title
151 * @return {!Element} 151 * @return {!Element}
152 * @this {WebInspector.ConsoleMessage} 152 * @this {WebInspector.ConsoleMessage}
153 */ 153 */
154 function linkifyRequest(title) 154 function linkifyRequest(title)
155 { 155 {
156 return WebInspector.Linkifier.linkifyUsingRevealer(/** @type {!WebIn spector.NetworkRequest} */ (this.request), title, this.request.url); 156 return WebInspector.Linkifier.linkifyUsingRevealer(/** @type {!WebIn spector.NetworkRequest} */ (this.request), title, this.request.url);
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 { 1296 {
1297 if (!this._wrapperElement) { 1297 if (!this._wrapperElement) {
1298 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this ); 1298 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this );
1299 this._wrapperElement.classList.toggle("collapsed", this._collapsed); 1299 this._wrapperElement.classList.toggle("collapsed", this._collapsed);
1300 } 1300 }
1301 return this._wrapperElement; 1301 return this._wrapperElement;
1302 }, 1302 },
1303 1303
1304 __proto__: WebInspector.ConsoleViewMessage.prototype 1304 __proto__: WebInspector.ConsoleViewMessage.prototype
1305 } 1305 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/console/ConsoleView.js ('k') | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698