| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 return; | 518 return; |
| 519 | 519 |
| 520 if (target instanceof WebInspector.Resource) { | 520 if (target instanceof WebInspector.Resource) { |
| 521 var resource = /** @type {!WebInspector.Resource} */ (target); | 521 var resource = /** @type {!WebInspector.Resource} */ (target); |
| 522 if (resource.request) | 522 if (resource.request) |
| 523 appendRevealItem.call(this, resource.request); | 523 appendRevealItem.call(this, resource.request); |
| 524 return; | 524 return; |
| 525 } | 525 } |
| 526 if (target instanceof WebInspector.UISourceCode) { | 526 if (target instanceof WebInspector.UISourceCode) { |
| 527 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target
); | 527 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target
); |
| 528 var resource = WebInspector.resourceForURL(WebInspector.networkMappi
ng.networkURL(uiSourceCode)); | 528 var resource = WebInspector.resourceForURL(uiSourceCode.url()); |
| 529 if (resource && resource.request) | 529 if (resource && resource.request) |
| 530 appendRevealItem.call(this, resource.request); | 530 appendRevealItem.call(this, resource.request); |
| 531 return; | 531 return; |
| 532 } | 532 } |
| 533 | 533 |
| 534 if (!(target instanceof WebInspector.NetworkRequest)) | 534 if (!(target instanceof WebInspector.NetworkRequest)) |
| 535 return; | 535 return; |
| 536 var request = /** @type {!WebInspector.NetworkRequest} */ (target); | 536 var request = /** @type {!WebInspector.NetworkRequest} */ (target); |
| 537 if (this._networkItemView && this._networkItemView.isShowing() && this._
networkItemView.request() === request) | 537 if (this._networkItemView && this._networkItemView.isShowing() && this._
networkItemView.request() === request) |
| 538 return; | 538 return; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 * @return {boolean} | 769 * @return {boolean} |
| 770 */ | 770 */ |
| 771 handleAction: function(context, actionId) | 771 handleAction: function(context, actionId) |
| 772 { | 772 { |
| 773 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 773 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 774 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 774 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 775 panel._toggleRecording(); | 775 panel._toggleRecording(); |
| 776 return true; | 776 return true; |
| 777 } | 777 } |
| 778 } | 778 } |
| OLD | NEW |