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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2150713002: [Devtools] Refactor NetworkLogViewColumns to be dynamic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
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 { 305 {
306 this._dataGrid = this._columns.createGrid(this._timeCalculator, this._du rationCalculator); 306 this._dataGrid = this._columns.createGrid(this._timeCalculator, this._du rationCalculator);
307 this._dataGrid.setStickToBottom(true); 307 this._dataGrid.setStickToBottom(true);
308 this._dataGrid.setName("networkLog"); 308 this._dataGrid.setName("networkLog");
309 this._dataGrid.setResizeMethod(WebInspector.DataGrid.ResizeMethod.Last); 309 this._dataGrid.setResizeMethod(WebInspector.DataGrid.ResizeMethod.Last);
310 this._dataGrid.element.classList.add("network-log-grid"); 310 this._dataGrid.element.classList.add("network-log-grid");
311 this._dataGrid.element.addEventListener("contextmenu", this._contextMenu .bind(this), true); 311 this._dataGrid.element.addEventListener("contextmenu", this._contextMenu .bind(this), true);
312 this._dataGrid.element.addEventListener("mousedown", this._dataGridMouse Down.bind(this), true); 312 this._dataGrid.element.addEventListener("mousedown", this._dataGridMouse Down.bind(this), true);
313 this._dataGrid.element.addEventListener("mousemove", this._dataGridMouse Move.bind(this), true); 313 this._dataGrid.element.addEventListener("mousemove", this._dataGridMouse Move.bind(this), true);
314 this._dataGrid.element.addEventListener("mouseleave", this._highlightIni tiatorChain.bind(this, null), true); 314 this._dataGrid.element.addEventListener("mouseleave", this._highlightIni tiatorChain.bind(this, null), true);
315 this._columns.sort();
dgozman 2016/07/15 23:47:49 Why sort?
allada 2016/07/25 23:05:53 This is sorting the data not the columns themselve
315 }, 316 },
316 317
317 /** 318 /**
318 * @param {!Event} event 319 * @param {!Event} event
319 */ 320 */
320 _dataGridMouseDown: function(event) 321 _dataGridMouseDown: function(event)
321 { 322 {
322 if ((!this._dataGrid.selectedNode && event.button) || event.target.enclo singNodeOrSelfWithNodeName("a")) 323 if ((!this._dataGrid.selectedNode && event.button) || event.target.enclo singNodeOrSelfWithNodeName("a"))
323 event.consume(); 324 event.consume();
324 }, 325 },
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 return false; 1689 return false;
1689 return true; 1690 return true;
1690 } 1691 }
1691 1692
1692 WebInspector.NetworkLogView.EventTypes = { 1693 WebInspector.NetworkLogView.EventTypes = {
1693 RequestSelected: "RequestSelected", 1694 RequestSelected: "RequestSelected",
1694 SearchCountUpdated: "SearchCountUpdated", 1695 SearchCountUpdated: "SearchCountUpdated",
1695 SearchIndexUpdated: "SearchIndexUpdated", 1696 SearchIndexUpdated: "SearchIndexUpdated",
1696 UpdateRequest: "UpdateRequest" 1697 UpdateRequest: "UpdateRequest"
1697 }; 1698 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698