| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 } | 630 } |
| 631 } | 631 } |
| 632 | 632 |
| 633 | 633 |
| 634 WebInspector.NetworkPanel.show = function() | 634 WebInspector.NetworkPanel.show = function() |
| 635 { | 635 { |
| 636 WebInspector.inspectorView.setCurrentPanel(WebInspector.NetworkPanel._instan
ce()); | 636 WebInspector.inspectorView.setCurrentPanel(WebInspector.NetworkPanel._instan
ce()); |
| 637 } | 637 } |
| 638 | 638 |
| 639 /** | 639 /** |
| 640 * @param {!Array<{filterType: !WebInspector.NetworkLogView.FilterType, filterV
alue: string}>} filters | 640 * @param {!Array<{filterType: !WebInspector.NetworkLogView.FilterType, filterVa
lue: string}>} filters |
| 641 */ | 641 */ |
| 642 WebInspector.NetworkPanel.revealAndFilter = function(filters) | 642 WebInspector.NetworkPanel.revealAndFilter = function(filters) |
| 643 { | 643 { |
| 644 var panel = WebInspector.NetworkPanel._instance(); | 644 var panel = WebInspector.NetworkPanel._instance(); |
| 645 var filterString = ""; | 645 var filterString = ""; |
| 646 for (var filter of filters) | 646 for (var filter of filters) |
| 647 filterString += `${filter.filterType}:${filter.filterValue} `; | 647 filterString += `${filter.filterType}:${filter.filterValue} `; |
| 648 panel._networkLogView.setTextFilterValue(filterString); | 648 panel._networkLogView.setFilterValues(filterString, false, false); |
| 649 WebInspector.inspectorView.setCurrentPanel(panel); | 649 WebInspector.inspectorView.setCurrentPanel(panel); |
| 650 } | 650 } |
| 651 | 651 |
| 652 /** | 652 /** |
| 653 * @return {!WebInspector.NetworkPanel} | 653 * @return {!WebInspector.NetworkPanel} |
| 654 */ | 654 */ |
| 655 WebInspector.NetworkPanel._instance = function() | 655 WebInspector.NetworkPanel._instance = function() |
| 656 { | 656 { |
| 657 if (!WebInspector.NetworkPanel._instanceObject) | 657 if (!WebInspector.NetworkPanel._instanceObject) |
| 658 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane
l(); | 658 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane
l(); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 * @return {boolean} | 791 * @return {boolean} |
| 792 */ | 792 */ |
| 793 handleAction: function(context, actionId) | 793 handleAction: function(context, actionId) |
| 794 { | 794 { |
| 795 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 795 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 796 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 796 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 797 panel._toggleRecording(); | 797 panel._toggleRecording(); |
| 798 return true; | 798 return true; |
| 799 } | 799 } |
| 800 } | 800 } |
| OLD | NEW |