OLD | NEW |
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 */ | 1243 */ |
1244 _showPopover: function(anchor, popover) | 1244 _showPopover: function(anchor, popover) |
1245 { | 1245 { |
1246 var content; | 1246 var content; |
1247 if (anchor.classList.contains("network-script-initiated")) { | 1247 if (anchor.classList.contains("network-script-initiated")) { |
1248 var request = /** @type {!WebInspector.NetworkRequest} */ (anchor.re
quest); | 1248 var request = /** @type {!WebInspector.NetworkRequest} */ (anchor.re
quest); |
1249 var initiator = /** @type {!NetworkAgent.Initiator} */ (request.init
iator()); | 1249 var initiator = /** @type {!NetworkAgent.Initiator} */ (request.init
iator()); |
1250 content = WebInspector.DOMPresentationUtils.buildStackTracePreviewCo
ntents(request.target(), this._popupLinkifier, initiator.stackTrace, initiator.a
syncStackTrace); | 1250 content = WebInspector.DOMPresentationUtils.buildStackTracePreviewCo
ntents(request.target(), this._popupLinkifier, initiator.stackTrace, initiator.a
syncStackTrace); |
1251 popover.setCanShrink(true); | 1251 popover.setCanShrink(true); |
1252 } else { | 1252 } else { |
1253 content = WebInspector.RequestTimingView.createTimingTable(anchor.pa
rentElement.request, this._timeCalculator.minimumBoundary()); | 1253 content = WebInspector.RequestTimingView.createTimingTable(anchor.pa
rentElement.request, this._timeCalculator); |
1254 popover.setCanShrink(false); | 1254 popover.setCanShrink(false); |
1255 } | 1255 } |
1256 popover.showForAnchor(content, anchor); | 1256 popover.showForAnchor(content, anchor); |
1257 }, | 1257 }, |
1258 | 1258 |
1259 _onHidePopover: function() | 1259 _onHidePopover: function() |
1260 { | 1260 { |
1261 this._popupLinkifier.reset(); | 1261 this._popupLinkifier.reset(); |
1262 }, | 1262 }, |
1263 | 1263 |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 return false; | 2166 return false; |
2167 return true; | 2167 return true; |
2168 } | 2168 } |
2169 | 2169 |
2170 WebInspector.NetworkLogView.EventTypes = { | 2170 WebInspector.NetworkLogView.EventTypes = { |
2171 RequestSelected: "RequestSelected", | 2171 RequestSelected: "RequestSelected", |
2172 SearchCountUpdated: "SearchCountUpdated", | 2172 SearchCountUpdated: "SearchCountUpdated", |
2173 SearchIndexUpdated: "SearchIndexUpdated", | 2173 SearchIndexUpdated: "SearchIndexUpdated", |
2174 UpdateRequest: "UpdateRequest" | 2174 UpdateRequest: "UpdateRequest" |
2175 }; | 2175 }; |
OLD | NEW |