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 21 matching lines...) Expand all Loading... |
32 * @param {string} name | 32 * @param {string} name |
33 * @param {!Array.<!Profiler.ProfileType>} profileTypes | 33 * @param {!Array.<!Profiler.ProfileType>} profileTypes |
34 * @param {string} recordingActionId | 34 * @param {string} recordingActionId |
35 */ | 35 */ |
36 constructor(name, profileTypes, recordingActionId) { | 36 constructor(name, profileTypes, recordingActionId) { |
37 super(name); | 37 super(name); |
38 this._profileTypes = profileTypes; | 38 this._profileTypes = profileTypes; |
39 this.registerRequiredCSS('ui/panelEnablerView.css'); | 39 this.registerRequiredCSS('ui/panelEnablerView.css'); |
40 this.registerRequiredCSS('profiler/heapProfiler.css'); | 40 this.registerRequiredCSS('profiler/heapProfiler.css'); |
41 this.registerRequiredCSS('profiler/profilesPanel.css'); | 41 this.registerRequiredCSS('profiler/profilesPanel.css'); |
42 this.registerRequiredCSS('components/objectValue.css'); | 42 this.registerRequiredCSS('object_ui/objectValue.css'); |
43 | 43 |
44 var mainContainer = new UI.VBox(); | 44 var mainContainer = new UI.VBox(); |
45 this.splitWidget().setMainWidget(mainContainer); | 45 this.splitWidget().setMainWidget(mainContainer); |
46 | 46 |
47 this.profilesItemTreeElement = new Profiler.ProfilesSidebarTreeElement(this)
; | 47 this.profilesItemTreeElement = new Profiler.ProfilesSidebarTreeElement(this)
; |
48 | 48 |
49 this._sidebarTree = new UI.TreeOutlineInShadow(); | 49 this._sidebarTree = new UI.TreeOutlineInShadow(); |
50 this._sidebarTree.registerRequiredCSS('profiler/profilesSidebarTree.css'); | 50 this._sidebarTree.registerRequiredCSS('profiler/profilesSidebarTree.css'); |
51 this._sidebarTree.element.classList.add('profiles-sidebar-tree-box'); | 51 this._sidebarTree.element.classList.add('profiles-sidebar-tree-box'); |
52 this.panelSidebarElement().appendChild(this._sidebarTree.element); | 52 this.panelSidebarElement().appendChild(this._sidebarTree.element); |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 * @param {string} actionId | 815 * @param {string} actionId |
816 * @return {boolean} | 816 * @return {boolean} |
817 */ | 817 */ |
818 handleAction(context, actionId) { | 818 handleAction(context, actionId) { |
819 var panel = UI.context.flavor(Profiler.JSProfilerPanel); | 819 var panel = UI.context.flavor(Profiler.JSProfilerPanel); |
820 console.assert(panel && panel instanceof Profiler.JSProfilerPanel); | 820 console.assert(panel && panel instanceof Profiler.JSProfilerPanel); |
821 panel.toggleRecord(); | 821 panel.toggleRecord(); |
822 return true; | 822 return true; |
823 } | 823 } |
824 }; | 824 }; |
OLD | NEW |