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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 { | 885 { |
886 if (!this._showHideSidebarButton) | 886 if (!this._showHideSidebarButton) |
887 return; | 887 return; |
888 var sidebarHidden = this._showMode === WebInspector.SplitWidget.ShowMode
.OnlyMain; | 888 var sidebarHidden = this._showMode === WebInspector.SplitWidget.ShowMode
.OnlyMain; |
889 this._showHideSidebarButton.classList.toggle("toggled-show", sidebarHidd
en); | 889 this._showHideSidebarButton.classList.toggle("toggled-show", sidebarHidd
en); |
890 this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
den); | 890 this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
den); |
891 this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
on", !this.isVertical() && !this.isSidebarSecond()); | 891 this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
on", !this.isVertical() && !this.isSidebarSecond()); |
892 this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
tton", this.isVertical() && this.isSidebarSecond()); | 892 this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
tton", this.isVertical() && this.isSidebarSecond()); |
893 this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
utton", !this.isVertical() && this.isSidebarSecond()); | 893 this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
utton", !this.isVertical() && this.isSidebarSecond()); |
894 this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
ton", this.isVertical() && !this.isSidebarSecond()); | 894 this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
ton", this.isVertical() && !this.isSidebarSecond()); |
895 WebInspector.Tooltip.install(this._showHideSidebarButton, sidebarHidden
? WebInspector.UIString("Show %s", this._showHideSidebarButtonTitle) : WebInspec
tor.UIString("Hide %s", this._showHideSidebarButtonTitle)); | 895 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
, this._showHideSidebarButtonTitle); |
896 }, | 896 }, |
897 | 897 |
898 __proto__: WebInspector.Widget.prototype | 898 __proto__: WebInspector.Widget.prototype |
899 } | 899 } |
OLD | NEW |