| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 this._savedHorizontalMainSize = this._totalSizeDIP() - this._sidebarSizeDI
P; | 731 this._savedHorizontalMainSize = this._totalSizeDIP() - this._sidebarSizeDI
P; |
| 732 } | 732 } |
| 733 | 733 |
| 734 /** | 734 /** |
| 735 * @param {!Common.Event} event | 735 * @param {!Common.Event} event |
| 736 */ | 736 */ |
| 737 _onResizeEnd(event) { | 737 _onResizeEnd(event) { |
| 738 this._resizeStartSizeDIP = 0; | 738 this._resizeStartSizeDIP = 0; |
| 739 } | 739 } |
| 740 | 740 |
| 741 hideDefaultResizer() { | 741 /** |
| 742 * @param {boolean=} noSplitter |
| 743 */ |
| 744 hideDefaultResizer(noSplitter) { |
| 742 this.uninstallResizer(this._resizerElement); | 745 this.uninstallResizer(this._resizerElement); |
| 746 this._sidebarElement.classList.toggle('no-default-splitter', noSplitter); |
| 743 } | 747 } |
| 744 | 748 |
| 745 /** | 749 /** |
| 746 * @param {!Element} resizerElement | 750 * @param {!Element} resizerElement |
| 747 */ | 751 */ |
| 748 installResizer(resizerElement) { | 752 installResizer(resizerElement) { |
| 749 this._resizerWidget.addElement(resizerElement); | 753 this._resizerWidget.addElement(resizerElement); |
| 750 } | 754 } |
| 751 | 755 |
| 752 /** | 756 /** |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 OnlySidebar: 'OnlySidebar' | 913 OnlySidebar: 'OnlySidebar' |
| 910 }; | 914 }; |
| 911 | 915 |
| 912 /** @enum {symbol} */ | 916 /** @enum {symbol} */ |
| 913 UI.SplitWidget.Events = { | 917 UI.SplitWidget.Events = { |
| 914 SidebarSizeChanged: Symbol('SidebarSizeChanged'), | 918 SidebarSizeChanged: Symbol('SidebarSizeChanged'), |
| 915 ShowModeChanged: Symbol('ShowModeChanged') | 919 ShowModeChanged: Symbol('ShowModeChanged') |
| 916 }; | 920 }; |
| 917 | 921 |
| 918 UI.SplitWidget.MinPadding = 20; | 922 UI.SplitWidget.MinPadding = 20; |
| OLD | NEW |