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

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

Issue 10796093: Merge 122979 - Web Inspector: [Regression] Save as file is missing in Network panel preview/respons… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 if (request.requestCookies || request.responseCookies) { 50 if (request.requestCookies || request.responseCookies) {
51 this._cookiesView = new WebInspector.RequestCookiesView(request); 51 this._cookiesView = new WebInspector.RequestCookiesView(request);
52 this.appendTab("cookies", WebInspector.UIString("Cookies"), this._cookie sView); 52 this.appendTab("cookies", WebInspector.UIString("Cookies"), this._cookie sView);
53 } 53 }
54 54
55 if (request.timing) { 55 if (request.timing) {
56 var timingView = new WebInspector.RequestTimingView(request); 56 var timingView = new WebInspector.RequestTimingView(request);
57 this.appendTab("timing", WebInspector.UIString("Timing"), timingView); 57 this.appendTab("timing", WebInspector.UIString("Timing"), timingView);
58 } 58 }
59 59 this._request = request;
60 if (request.frames().length > 0) { 60 if (request.frames().length > 0) {
61 var frameView = new WebInspector.ResourceWebSocketFrameView(request); 61 var frameView = new WebInspector.ResourceWebSocketFrameView(request);
62 this.appendTab("webSocketFrames", WebInspector.UIString("WebSocket Frame s"), frameView); 62 this.appendTab("webSocketFrames", WebInspector.UIString("WebSocket Frame s"), frameView);
63 } 63 }
64 64
65 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._ tabSelected, this); 65 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._ tabSelected, this);
66 } 66 }
67 67
68 WebInspector.NetworkItemView.prototype = { 68 WebInspector.NetworkItemView.prototype = {
69 wasShown: function() 69 wasShown: function()
(...skipping 14 matching lines...) Expand all
84 this._isInFallbackSelection = true; 84 this._isInFallbackSelection = true;
85 this.selectTab("headers"); 85 this.selectTab("headers");
86 delete this._isInFallbackSelection; 86 delete this._isInFallbackSelection;
87 } 87 }
88 }, 88 },
89 89
90 _tabSelected: function(event) 90 _tabSelected: function(event)
91 { 91 {
92 if (event.data.isUserGesture) 92 if (event.data.isUserGesture)
93 WebInspector.settings.resourceViewTab.set(event.data.tabId); 93 WebInspector.settings.resourceViewTab.set(event.data.tabId);
94 },
95
96 /**
97 * @return {WebInspector.NetworkRequest}
98 */
99 request: function()
100 {
101 return this._request;
94 } 102 }
95 } 103 }
96 104
97 WebInspector.NetworkItemView.prototype.__proto__ = WebInspector.TabbedPane.proto type; 105 WebInspector.NetworkItemView.prototype.__proto__ = WebInspector.TabbedPane.proto type;
98 106
99 /** 107 /**
100 * @constructor 108 * @constructor
101 * @extends {WebInspector.RequestView} 109 * @extends {WebInspector.RequestView}
102 * @param {WebInspector.NetworkRequest} request 110 * @param {WebInspector.NetworkRequest} request
103 */ 111 */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 }, 166 },
159 167
160 highlightLine: function(line) 168 highlightLine: function(line)
161 { 169 {
162 if (this.canHighlightLine()) 170 if (this.canHighlightLine())
163 this._innerView.highlightLine(line); 171 this._innerView.highlightLine(line);
164 } 172 }
165 } 173 }
166 174
167 WebInspector.RequestContentView.prototype.__proto__ = WebInspector.RequestView.p rototype; 175 WebInspector.RequestContentView.prototype.__proto__ = WebInspector.RequestView.p rototype;
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/HandlerRegistry.js ('k') | Source/WebCore/inspector/front-end/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698