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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 this._searchableView = new WebInspector.SearchableView(this); | 443 this._searchableView = new WebInspector.SearchableView(this); |
444 | 444 |
445 var mainView = new WebInspector.VBox(); | 445 var mainView = new WebInspector.VBox(); |
446 this._searchableView.show(mainView.element); | 446 this._searchableView.show(mainView.element); |
447 mainView.show(this.mainElement()); | 447 mainView.show(this.mainElement()); |
448 | 448 |
449 this.profilesItemTreeElement = new WebInspector.ProfilesSidebarTreeElement(t
his); | 449 this.profilesItemTreeElement = new WebInspector.ProfilesSidebarTreeElement(t
his); |
450 this.sidebarTree.appendChild(this.profilesItemTreeElement); | 450 this.sidebarTree.appendChild(this.profilesItemTreeElement); |
451 | 451 |
452 this.profileViews = document.createElement("div"); | 452 this.profileViews = createElement("div"); |
453 this.profileViews.id = "profile-views"; | 453 this.profileViews.id = "profile-views"; |
454 this.profileViews.classList.add("vbox"); | 454 this.profileViews.classList.add("vbox"); |
455 this._searchableView.element.appendChild(this.profileViews); | 455 this._searchableView.element.appendChild(this.profileViews); |
456 | 456 |
457 var statusBarContainer = document.createElementWithClass("div", "profiles-st
atus-bar"); | 457 var statusBarContainer = createElementWithClass("div", "profiles-status-bar"
); |
458 mainView.element.insertBefore(statusBarContainer, mainView.element.firstChil
d); | 458 mainView.element.insertBefore(statusBarContainer, mainView.element.firstChil
d); |
459 this._statusBarElement = statusBarContainer.createChild("div", "status-bar")
; | 459 this._statusBarElement = statusBarContainer.createChild("div", "status-bar")
; |
460 | 460 |
461 this.sidebarElement().classList.add("profiles-sidebar-tree-box"); | 461 this.sidebarElement().classList.add("profiles-sidebar-tree-box"); |
462 var statusBarContainerLeft = document.createElementWithClass("div", "profile
s-status-bar"); | 462 var statusBarContainerLeft = createElementWithClass("div", "profiles-status-
bar"); |
463 this.sidebarElement().insertBefore(statusBarContainerLeft, this.sidebarEleme
nt().firstChild); | 463 this.sidebarElement().insertBefore(statusBarContainerLeft, this.sidebarEleme
nt().firstChild); |
464 this._statusBarButtons = statusBarContainerLeft.createChild("div", "status-b
ar"); | 464 this._statusBarButtons = statusBarContainerLeft.createChild("div", "status-b
ar"); |
465 | 465 |
466 this.recordButton = new WebInspector.StatusBarButton("", "record-profile-sta
tus-bar-item"); | 466 this.recordButton = new WebInspector.StatusBarButton("", "record-profile-sta
tus-bar-item"); |
467 this.recordButton.addEventListener("click", this.toggleRecordButton, this); | 467 this.recordButton.addEventListener("click", this.toggleRecordButton, this); |
468 this._statusBarButtons.appendChild(this.recordButton.element); | 468 this._statusBarButtons.appendChild(this.recordButton.element); |
469 | 469 |
470 this.clearResultsButton = new WebInspector.StatusBarButton(WebInspector.UISt
ring("Clear all profiles."), "clear-status-bar-item"); | 470 this.clearResultsButton = new WebInspector.StatusBarButton(WebInspector.UISt
ring("Clear all profiles."), "clear-status-bar-item"); |
471 this.clearResultsButton.addEventListener("click", this._reset, this); | 471 this.clearResultsButton.addEventListener("click", this._reset, this); |
472 this._statusBarButtons.appendChild(this.clearResultsButton.element); | 472 this._statusBarButtons.appendChild(this.clearResultsButton.element); |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 | 1324 |
1325 WebInspector.ProfilesPanelFactory.prototype = { | 1325 WebInspector.ProfilesPanelFactory.prototype = { |
1326 /** | 1326 /** |
1327 * @return {!WebInspector.Panel} | 1327 * @return {!WebInspector.Panel} |
1328 */ | 1328 */ |
1329 createPanel: function() | 1329 createPanel: function() |
1330 { | 1330 { |
1331 return WebInspector.ProfilesPanel._instance(); | 1331 return WebInspector.ProfilesPanel._instance(); |
1332 } | 1332 } |
1333 } | 1333 } |
OLD | NEW |