| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 this._toolbarElement = createElementWithClass("div", "profiles-toolbar"); | 458 this._toolbarElement = createElementWithClass("div", "profiles-toolbar"); |
| 459 mainContainer.element.insertBefore(this._toolbarElement, mainContainer.eleme
nt.firstChild); | 459 mainContainer.element.insertBefore(this._toolbarElement, mainContainer.eleme
nt.firstChild); |
| 460 | 460 |
| 461 this.panelSidebarElement().classList.add("profiles-sidebar-tree-box"); | 461 this.panelSidebarElement().classList.add("profiles-sidebar-tree-box"); |
| 462 var toolbarContainerLeft = createElementWithClass("div", "profiles-toolbar")
; | 462 var toolbarContainerLeft = createElementWithClass("div", "profiles-toolbar")
; |
| 463 this.panelSidebarElement().insertBefore(toolbarContainerLeft, this.panelSide
barElement().firstChild); | 463 this.panelSidebarElement().insertBefore(toolbarContainerLeft, this.panelSide
barElement().firstChild); |
| 464 var toolbar = new WebInspector.Toolbar(toolbarContainerLeft); | 464 var toolbar = new WebInspector.Toolbar(toolbarContainerLeft); |
| 465 | 465 |
| 466 this.recordButton = new WebInspector.ToolbarButton("", "record-toolbar-item"
); | 466 this.recordButton = new WebInspector.ToolbarButton("", "record-toolbar-item"
); |
| 467 this.recordButton.addEventListener("click", this.toggleRecordButton, this); | 467 this.recordButton.addEventListener("click", this.toggleRecordButton, this); |
| 468 this.recordButton.setShortcut(WebInspector.ShortcutsScreen.ProfilesPanelShor
tcuts.StartStopRecording); |
| 468 toolbar.appendToolbarItem(this.recordButton); | 469 toolbar.appendToolbarItem(this.recordButton); |
| 469 | 470 |
| 470 this.clearResultsButton = new WebInspector.ToolbarButton(WebInspector.UIStri
ng("Clear all profiles"), "clear-toolbar-item"); | 471 this.clearResultsButton = new WebInspector.ToolbarButton(WebInspector.UIStri
ng("Clear all profiles"), "clear-toolbar-item"); |
| 471 this.clearResultsButton.addEventListener("click", this._reset, this); | 472 this.clearResultsButton.addEventListener("click", this._reset, this); |
| 472 toolbar.appendToolbarItem(this.clearResultsButton); | 473 toolbar.appendToolbarItem(this.clearResultsButton); |
| 473 | 474 |
| 474 this._profileTypeToolbar = new WebInspector.Toolbar(this._toolbarElement); | 475 this._profileTypeToolbar = new WebInspector.Toolbar(this._toolbarElement); |
| 475 this._profileViewToolbar = new WebInspector.Toolbar(this._toolbarElement); | 476 this._profileViewToolbar = new WebInspector.Toolbar(this._toolbarElement); |
| 476 | 477 |
| 477 this._profileGroups = {}; | 478 this._profileGroups = {}; |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 WebInspector.ProfilesPanelFactory.prototype = { | 1262 WebInspector.ProfilesPanelFactory.prototype = { |
| 1262 /** | 1263 /** |
| 1263 * @override | 1264 * @override |
| 1264 * @return {!WebInspector.Panel} | 1265 * @return {!WebInspector.Panel} |
| 1265 */ | 1266 */ |
| 1266 createPanel: function() | 1267 createPanel: function() |
| 1267 { | 1268 { |
| 1268 return WebInspector.ProfilesPanel._instance(); | 1269 return WebInspector.ProfilesPanel._instance(); |
| 1269 } | 1270 } |
| 1270 } | 1271 } |
| OLD | NEW |