| 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 } | 637 } |
| 638 | 638 |
| 639 /** | 639 /** |
| 640 * @param {!Array<{filterType: !WebInspector.NetworkLogView.FilterType, filterVa
lue: 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.setTextFilterValue(filterString); |
| 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 return /** @type {!WebInspector.NetworkPanel} */ (self.runtime.sharedInstanc
e(WebInspector.NetworkPanel)); | 657 return /** @type {!WebInspector.NetworkPanel} */ (self.runtime.sharedInstanc
e(WebInspector.NetworkPanel)); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 * @return {boolean} | 770 * @return {boolean} |
| 771 */ | 771 */ |
| 772 handleAction: function(context, actionId) | 772 handleAction: function(context, actionId) |
| 773 { | 773 { |
| 774 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 774 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 775 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 775 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 776 panel._toggleRecording(); | 776 panel._toggleRecording(); |
| 777 return true; | 777 return true; |
| 778 } | 778 } |
| 779 } | 779 } |
| OLD | NEW |