OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 { | 900 { |
901 if (!this.isShowing()) | 901 if (!this.isShowing()) |
902 return; | 902 return; |
903 if (!error) | 903 if (!error) |
904 this.showObject(result, viewName); | 904 this.showObject(result, viewName); |
905 } | 905 } |
906 | 906 |
907 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Summa
ry ^view"), revealInView.bind(this, "Summary")); | 907 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Summa
ry ^view"), revealInView.bind(this, "Summary")); |
908 }, | 908 }, |
909 | 909 |
| 910 /** |
| 911 * @override |
| 912 */ |
910 wasShown: function() | 913 wasShown: function() |
911 { | 914 { |
912 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, this); | 915 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, this); |
913 }, | 916 }, |
914 | 917 |
915 /** | 918 /** |
916 * @override | 919 * @override |
917 */ | 920 */ |
918 focus: function() | 921 focus: function() |
919 { | 922 { |
920 this._sidebarTree.focus(); | 923 this._sidebarTree.focus(); |
921 }, | 924 }, |
922 | 925 |
| 926 /** |
| 927 * @override |
| 928 */ |
923 willHide: function() | 929 willHide: function() |
924 { | 930 { |
925 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, null); | 931 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, null); |
926 }, | 932 }, |
927 | 933 |
928 __proto__: WebInspector.PanelWithSidebar.prototype | 934 __proto__: WebInspector.PanelWithSidebar.prototype |
929 }; | 935 }; |
930 | 936 |
931 | 937 |
932 /** | 938 /** |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 * @return {boolean} | 1351 * @return {boolean} |
1346 */ | 1352 */ |
1347 handleAction: function(context, actionId) | 1353 handleAction: function(context, actionId) |
1348 { | 1354 { |
1349 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); | 1355 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); |
1350 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); | 1356 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); |
1351 panel.toggleRecord(); | 1357 panel.toggleRecord(); |
1352 return true; | 1358 return true; |
1353 } | 1359 } |
1354 }; | 1360 }; |
OLD | NEW |