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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 2160373003: [DevTools] Make NetworkAgent.Initiator 0-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-message-0-based
Patch Set: Created 4 years, 5 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 | « third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js ('k') | no next file » | 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 * 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 var networkLog = target && WebInspector.NetworkLog.fromTarget(target); 279 var networkLog = target && WebInspector.NetworkLog.fromTarget(target);
280 this.request = (requestId && networkLog) ? networkLog.requestForId(requestId ) : null; 280 this.request = (requestId && networkLog) ? networkLog.requestForId(requestId ) : null;
281 281
282 if (this.request) { 282 if (this.request) {
283 var initiator = this.request.initiator(); 283 var initiator = this.request.initiator();
284 if (initiator) { 284 if (initiator) {
285 this.stackTrace = initiator.stack || undefined; 285 this.stackTrace = initiator.stack || undefined;
286 if (initiator.url) { 286 if (initiator.url) {
287 this.url = initiator.url; 287 this.url = initiator.url;
288 this.line = (initiator.lineNumber - 1) || 0; 288 this.line = initiator.lineNumber || 0;
289 } 289 }
290 } 290 }
291 } 291 }
292 } 292 }
293 293
294 WebInspector.ConsoleMessage.prototype = { 294 WebInspector.ConsoleMessage.prototype = {
295 /** 295 /**
296 * @return {?WebInspector.Target} 296 * @return {?WebInspector.Target}
297 */ 297 */
298 target: function() 298 target: function()
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 615 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
616 }, 616 },
617 617
618 __proto__: WebInspector.Object.prototype 618 __proto__: WebInspector.Object.prototype
619 } 619 }
620 620
621 /** 621 /**
622 * @type {!WebInspector.MultitargetConsoleModel} 622 * @type {!WebInspector.MultitargetConsoleModel}
623 */ 623 */
624 WebInspector.multitargetConsoleModel; 624 WebInspector.multitargetConsoleModel;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698