Chromium Code Reviews| 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) { | |
|
pfeldman
2015/09/03 23:48:48
{ goes next line.
estark
2015/09/04 02:45:30
Done.
| |
| 646 var panel = WebInspector.NetworkPanel._instance(); | |
| 647 panel._networkLogView._textFilterUI.setValue(filterType + ":" + filterValue) ; | |
|
pfeldman
2015/09/03 23:48:48
You should not access private member of logview fr
estark
2015/09/04 02:45:30
Done.
| |
| 648 WebInspector.inspectorView.setCurrentPanel(panel); | |
| 649 } | |
| 650 | |
| 651 /** | |
| 642 * @return {!WebInspector.NetworkPanel} | 652 * @return {!WebInspector.NetworkPanel} |
| 643 */ | 653 */ |
| 644 WebInspector.NetworkPanel._instance = function() | 654 WebInspector.NetworkPanel._instance = function() |
| 645 { | 655 { |
| 646 if (!WebInspector.NetworkPanel._instanceObject) | 656 if (!WebInspector.NetworkPanel._instanceObject) |
| 647 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane l(); | 657 WebInspector.NetworkPanel._instanceObject = new WebInspector.NetworkPane l(); |
| 648 return WebInspector.NetworkPanel._instanceObject; | 658 return WebInspector.NetworkPanel._instanceObject; |
| 649 } | 659 } |
| 650 | 660 |
| 651 /** | 661 /** |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 772 * @param {!WebInspector.Context} context | 782 * @param {!WebInspector.Context} context |
| 773 * @param {string} actionId | 783 * @param {string} actionId |
| 774 */ | 784 */ |
| 775 handleAction: function(context, actionId) | 785 handleAction: function(context, actionId) |
| 776 { | 786 { |
| 777 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 787 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 778 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 788 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 779 panel._toggleRecording(); | 789 panel._toggleRecording(); |
| 780 } | 790 } |
| 781 } | 791 } |
| OLD | NEW |