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

Side by Side Diff: Source/WebCore/inspector/front-end/NetworkPanel.js

Issue 6312032: Merge 77128 - 2011-01-28 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 | « no previous file | 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) 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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 contextMenu.appendItem(WebInspector.UIString("Export to HAR"), this. _exportResource.bind(this, resource)); 1011 contextMenu.appendItem(WebInspector.UIString("Export to HAR"), this. _exportResource.bind(this, resource));
1012 contextMenu.appendItem(WebInspector.UIString("Export all to HAR"), this. _exportAll.bind(this)); 1012 contextMenu.appendItem(WebInspector.UIString("Export all to HAR"), this. _exportAll.bind(this));
1013 contextMenu.show(event); 1013 contextMenu.show(event);
1014 }, 1014 },
1015 1015
1016 _exportAll: function() 1016 _exportAll: function()
1017 { 1017 {
1018 var harArchive = { 1018 var harArchive = {
1019 log: (new WebInspector.HARLog()).build() 1019 log: (new WebInspector.HARLog()).build()
1020 } 1020 }
1021 offerFileForDownload(JSON.stringify(harArchive)); 1021 InspectorFrontendHost.copyText(JSON.stringify(harArchive));
1022 }, 1022 },
1023 1023
1024 _exportResource: function(resource) 1024 _exportResource: function(resource)
1025 { 1025 {
1026 var har = (new WebInspector.HAREntry(resource)).build(); 1026 var har = (new WebInspector.HAREntry(resource)).build();
1027 offerFileForDownload(JSON.stringify(har)); 1027 InspectorFrontendHost.copyText(JSON.stringify(har));
1028 } 1028 }
1029 } 1029 }
1030 1030
1031 WebInspector.NetworkPanel.prototype.__proto__ = WebInspector.Panel.prototype; 1031 WebInspector.NetworkPanel.prototype.__proto__ = WebInspector.Panel.prototype;
1032 1032
1033 WebInspector.NetworkBaseCalculator = function() 1033 WebInspector.NetworkBaseCalculator = function()
1034 { 1034 {
1035 } 1035 }
1036 1036
1037 WebInspector.NetworkBaseCalculator.prototype = { 1037 WebInspector.NetworkBaseCalculator.prototype = {
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 { 1667 {
1668 var td = document.createElement("td"); 1668 var td = document.createElement("td");
1669 td.setAttribute("colspan", 7); 1669 td.setAttribute("colspan", 7);
1670 td.className = "network-summary"; 1670 td.className = "network-summary";
1671 td.appendChild(this._summaryBarElement); 1671 td.appendChild(this._summaryBarElement);
1672 this._element.appendChild(td); 1672 this._element.appendChild(td);
1673 } 1673 }
1674 } 1674 }
1675 1675
1676 WebInspector.NetworkTotalGridNode.prototype.__proto__ = WebInspector.DataGridNod e.prototype; 1676 WebInspector.NetworkTotalGridNode.prototype.__proto__ = WebInspector.DataGridNod e.prototype;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698