| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 * @param {boolean} secondIsSidebar | 33 * @param {boolean} secondIsSidebar |
| 34 * @param {string=} settingName | 34 * @param {string=} settingName |
| 35 * @param {number=} defaultSidebarWidth | 35 * @param {number=} defaultSidebarWidth |
| 36 * @param {number=} defaultSidebarHeight | 36 * @param {number=} defaultSidebarHeight |
| 37 * @param {boolean=} constraintsInDip | 37 * @param {boolean=} constraintsInDip |
| 38 */ | 38 */ |
| 39 WebInspector.SplitView = function(isVertical, secondIsSidebar, settingName, defa
ultSidebarWidth, defaultSidebarHeight, constraintsInDip) | 39 WebInspector.SplitView = function(isVertical, secondIsSidebar, settingName, defa
ultSidebarWidth, defaultSidebarHeight, constraintsInDip) |
| 40 { | 40 { |
| 41 WebInspector.View.call(this); | 41 WebInspector.View.call(this); |
| 42 | 42 |
| 43 this.registerRequiredCSS("splitView.css"); | |
| 44 this.element.classList.add("split-view"); | 43 this.element.classList.add("split-view"); |
| 45 | 44 |
| 46 this._mainView = new WebInspector.VBox(); | 45 this._mainView = new WebInspector.VBox(); |
| 47 this._mainElement = this._mainView.element; | 46 this._mainElement = this._mainView.element; |
| 48 this._mainElement.className = "split-view-contents scroll-target split-view-
main vbox"; // Override | 47 this._mainElement.className = "split-view-contents scroll-target split-view-
main vbox"; // Override |
| 49 | 48 |
| 50 this._sidebarView = new WebInspector.VBox(); | 49 this._sidebarView = new WebInspector.VBox(); |
| 51 this._sidebarElement = this._sidebarView.element; | 50 this._sidebarElement = this._sidebarView.element; |
| 52 this._sidebarElement.className = "split-view-contents scroll-target split-vi
ew-sidebar vbox"; // Override | 51 this._sidebarElement.className = "split-view-contents scroll-target split-vi
ew-sidebar vbox"; // Override |
| 53 | 52 |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 this._showHideSidebarButton.state = sidebarHidden ? "show" : "hide"; | 878 this._showHideSidebarButton.state = sidebarHidden ? "show" : "hide"; |
| 880 this._showHideSidebarButton.element.classList.toggle("top-sidebar-show-h
ide-button", !this.isVertical() && !this.isSidebarSecond()); | 879 this._showHideSidebarButton.element.classList.toggle("top-sidebar-show-h
ide-button", !this.isVertical() && !this.isSidebarSecond()); |
| 881 this._showHideSidebarButton.element.classList.toggle("right-sidebar-show
-hide-button", this.isVertical() && this.isSidebarSecond()); | 880 this._showHideSidebarButton.element.classList.toggle("right-sidebar-show
-hide-button", this.isVertical() && this.isSidebarSecond()); |
| 882 this._showHideSidebarButton.element.classList.toggle("bottom-sidebar-sho
w-hide-button", !this.isVertical() && this.isSidebarSecond()); | 881 this._showHideSidebarButton.element.classList.toggle("bottom-sidebar-sho
w-hide-button", !this.isVertical() && this.isSidebarSecond()); |
| 883 this._showHideSidebarButton.element.classList.toggle("left-sidebar-show-
hide-button", this.isVertical() && !this.isSidebarSecond()); | 882 this._showHideSidebarButton.element.classList.toggle("left-sidebar-show-
hide-button", this.isVertical() && !this.isSidebarSecond()); |
| 884 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
, this._showHideSidebarButtonTitle); | 883 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
, this._showHideSidebarButtonTitle); |
| 885 }, | 884 }, |
| 886 | 885 |
| 887 __proto__: WebInspector.View.prototype | 886 __proto__: WebInspector.View.prototype |
| 888 } | 887 } |
| OLD | NEW |