Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js

Issue 2686713003: DevTools: Disable timeline network pane resizer when network group is collapsed. (Closed)
Patch Set: make it work for real Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698