| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 } | 632 } |
| 633 } | 633 } |
| 634 | 634 |
| 635 | 635 |
| 636 WebInspector.NetworkPanel.show = function() | 636 WebInspector.NetworkPanel.show = function() |
| 637 { | 637 { |
| 638 WebInspector.inspectorView.setCurrentPanel(WebInspector.NetworkPanel._instan
ce()); | 638 WebInspector.inspectorView.setCurrentPanel(WebInspector.NetworkPanel._instan
ce()); |
| 639 } | 639 } |
| 640 | 640 |
| 641 /** | 641 /** |
| 642 * @param {!WebInspector.NetworkLogView.FilterType} filterType |
| 643 * @param {string} filterValue |
| 644 */ |
| 645 WebInspector.NetworkPanel.revealAndFilter = function(filterType, filterValue) |
| 646 { |
| 647 var panel = WebInspector.NetworkPanel._instance(); |
| 648 panel._networkLogView.setTextFilterValue(filterType, filterValue); |
| 649 WebInspector.inspectorView.setCurrentPanel(panel); |
| 650 } |
| 651 |
| 652 /** |
| 642 * @return {!WebInspector.NetworkPanel} | 653 * @return {!WebInspector.NetworkPanel} |
| 643 */ | 654 */ |
| 644 WebInspector.NetworkPanel._instance = function() | 655 WebInspector.NetworkPanel._instance = function() |
| 645 { | 656 { |
| 646 if (!WebInspector.NetworkPanel._instanceObject) | 657 if (!WebInspector.NetworkPanel._instanceObject) |
| 647 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane
l(); | 658 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane
l(); |
| 648 return WebInspector.NetworkPanel._instanceObject; | 659 return WebInspector.NetworkPanel._instanceObject; |
| 649 } | 660 } |
| 650 | 661 |
| 651 /** | 662 /** |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 * @param {!WebInspector.Context} context | 786 * @param {!WebInspector.Context} context |
| 776 * @param {string} actionId | 787 * @param {string} actionId |
| 777 */ | 788 */ |
| 778 handleAction: function(context, actionId) | 789 handleAction: function(context, actionId) |
| 779 { | 790 { |
| 780 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 791 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 781 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 792 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 782 panel._toggleRecording(); | 793 panel._toggleRecording(); |
| 783 } | 794 } |
| 784 } | 795 } |
| OLD | NEW |