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

Side by Side Diff: Source/devtools/front_end/ConsoleViewMessage.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
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | Source/devtools/front_end/ExtensionServer.js » ('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 13 matching lines...) Expand all
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.TargetAware} 33 * @extends {WebInspector.TargetAware}
34 * @param {!WebInspector.Target} target
35 * @param {!WebInspector.ConsoleMessage} consoleMessage 34 * @param {!WebInspector.ConsoleMessage} consoleMessage
36 * @param {?WebInspector.Linkifier} linkifier 35 * @param {?WebInspector.Linkifier} linkifier
37 */ 36 */
38 WebInspector.ConsoleViewMessage = function(target, consoleMessage, linkifier) 37 WebInspector.ConsoleViewMessage = function(consoleMessage, linkifier)
39 { 38 {
40 WebInspector.TargetAware.call(this, target); 39 WebInspector.TargetAware.call(this, consoleMessage.target());
41 this._message = consoleMessage; 40 this._message = consoleMessage;
42 this._linkifier = linkifier; 41 this._linkifier = linkifier;
43 this._repeatCount = 1; 42 this._repeatCount = 1;
44 43
45 /** @type {!Array.<!WebInspector.DataGrid>} */ 44 /** @type {!Array.<!WebInspector.DataGrid>} */
46 this._dataGrids = []; 45 this._dataGrids = [];
47 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */ 46 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */
48 this._dataGridParents = new Map(); 47 this._dataGridParents = new Map();
49 48
50 this._customFormatters = { 49 this._customFormatters = {
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 return sourceString + " " + typeString + " " + levelString + ": " + this .formattedMessage().textContent + "\n" + this._message.url + " line " + this._me ssage.line; 1073 return sourceString + " " + typeString + " " + levelString + ": " + this .formattedMessage().textContent + "\n" + this._message.url + " line " + this._me ssage.line;
1075 }, 1074 },
1076 1075
1077 get text() 1076 get text()
1078 { 1077 {
1079 return this._message.messageText; 1078 return this._message.messageText;
1080 }, 1079 },
1081 1080
1082 __proto__: WebInspector.TargetAware.prototype 1081 __proto__: WebInspector.TargetAware.prototype
1083 } 1082 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | Source/devtools/front_end/ExtensionServer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698