| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 this.registerRequiredCSS("components/objectValue.css"); | 441 this.registerRequiredCSS("components/objectValue.css"); |
| 442 | 442 |
| 443 var mainContainer = new WebInspector.VBox(); | 443 var mainContainer = new WebInspector.VBox(); |
| 444 this.splitWidget().setMainWidget(mainContainer); | 444 this.splitWidget().setMainWidget(mainContainer); |
| 445 | 445 |
| 446 this.profilesItemTreeElement = new WebInspector.ProfilesSidebarTreeElement(t
his); | 446 this.profilesItemTreeElement = new WebInspector.ProfilesSidebarTreeElement(t
his); |
| 447 | 447 |
| 448 this._sidebarTree = new TreeOutlineInShadow(); | 448 this._sidebarTree = new TreeOutlineInShadow(); |
| 449 this._sidebarTree.registerRequiredCSS("profiler/profilesSidebarTree.css"); | 449 this._sidebarTree.registerRequiredCSS("profiler/profilesSidebarTree.css"); |
| 450 this.panelSidebarElement().appendChild(this._sidebarTree.element); | 450 this.panelSidebarElement().appendChild(this._sidebarTree.element); |
| 451 this.setDefaultFocusedElement(this._sidebarTree.element); | |
| 452 | 451 |
| 453 this._sidebarTree.appendChild(this.profilesItemTreeElement); | 452 this._sidebarTree.appendChild(this.profilesItemTreeElement); |
| 454 | 453 |
| 455 this.profileViews = createElement("div"); | 454 this.profileViews = createElement("div"); |
| 456 this.profileViews.id = "profile-views"; | 455 this.profileViews.id = "profile-views"; |
| 457 this.profileViews.classList.add("vbox"); | 456 this.profileViews.classList.add("vbox"); |
| 458 mainContainer.element.appendChild(this.profileViews); | 457 mainContainer.element.appendChild(this.profileViews); |
| 459 | 458 |
| 460 this._toolbarElement = createElementWithClass("div", "profiles-toolbar"); | 459 this._toolbarElement = createElementWithClass("div", "profiles-toolbar"); |
| 461 mainContainer.element.insertBefore(this._toolbarElement, mainContainer.eleme
nt.firstChild); | 460 mainContainer.element.insertBefore(this._toolbarElement, mainContainer.eleme
nt.firstChild); |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 } | 907 } |
| 909 | 908 |
| 910 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Summa
ry ^view"), revealInView.bind(this, "Summary")); | 909 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Summa
ry ^view"), revealInView.bind(this, "Summary")); |
| 911 }, | 910 }, |
| 912 | 911 |
| 913 wasShown: function() | 912 wasShown: function() |
| 914 { | 913 { |
| 915 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, this); | 914 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, this); |
| 916 }, | 915 }, |
| 917 | 916 |
| 917 /** |
| 918 * @override |
| 919 */ |
| 920 focus: function() |
| 921 { |
| 922 this._sidebarTree.focus(); |
| 923 }, |
| 924 |
| 918 willHide: function() | 925 willHide: function() |
| 919 { | 926 { |
| 920 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, null); | 927 WebInspector.context.setFlavor(WebInspector.ProfilesPanel, null); |
| 921 }, | 928 }, |
| 922 | 929 |
| 923 __proto__: WebInspector.PanelWithSidebar.prototype | 930 __proto__: WebInspector.PanelWithSidebar.prototype |
| 924 } | 931 } |
| 925 | 932 |
| 926 | 933 |
| 927 /** | 934 /** |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 * @return {boolean} | 1352 * @return {boolean} |
| 1346 */ | 1353 */ |
| 1347 handleAction: function(context, actionId) | 1354 handleAction: function(context, actionId) |
| 1348 { | 1355 { |
| 1349 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); | 1356 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); |
| 1350 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); | 1357 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); |
| 1351 panel.toggleRecord(); | 1358 panel.toggleRecord(); |
| 1352 return true; | 1359 return true; |
| 1353 } | 1360 } |
| 1354 } | 1361 } |
| OLD | NEW |