Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 // DevTools sidebar is a vertical split of panels tabbed pane and a drawer. | 40 // DevTools sidebar is a vertical split of panels tabbed pane and a drawer. |
| 41 this._drawerSplitWidget = new UI.SplitWidget(false, true, 'Inspector.drawerS plitViewState', 200, 200); | 41 this._drawerSplitWidget = new UI.SplitWidget(false, true, 'Inspector.drawerS plitViewState', 200, 200); |
| 42 this._drawerSplitWidget.hideSidebar(); | 42 this._drawerSplitWidget.hideSidebar(); |
| 43 this._drawerSplitWidget.hideDefaultResizer(); | 43 this._drawerSplitWidget.hideDefaultResizer(); |
| 44 this._drawerSplitWidget.enableShowModeSaving(); | 44 this._drawerSplitWidget.enableShowModeSaving(); |
| 45 this._drawerSplitWidget.show(this.element); | 45 this._drawerSplitWidget.show(this.element); |
| 46 | 46 |
| 47 // Create drawer tabbed pane. | 47 // Create drawer tabbed pane. |
| 48 this._drawerTabbedLocation = | 48 this._drawerTabbedLocation = |
| 49 UI.viewManager.createTabbedLocation(this._showDrawer.bind(this, false), 'drawer-view', true); | 49 UI.viewManager.createTabbedLocation(this._showDrawer.bind(this, false), 'drawer-view', true, true); |
|
dgozman
2017/05/08 23:25:57
Let's fix all ordering issues in this patch.
einbinder
2017/05/12 21:48:34
Done.
| |
| 50 this._drawerTabbedLocation.enableMoreTabsButton(); | 50 this._drawerTabbedLocation.enableMoreTabsButton(); |
| 51 this._drawerTabbedPane = this._drawerTabbedLocation.tabbedPane(); | 51 this._drawerTabbedPane = this._drawerTabbedLocation.tabbedPane(); |
| 52 this._drawerTabbedPane.setMinimumSize(0, 27); | 52 this._drawerTabbedPane.setMinimumSize(0, 27); |
| 53 var closeDrawerButton = new UI.ToolbarButton(Common.UIString('Close drawer') , 'largeicon-delete'); | 53 var closeDrawerButton = new UI.ToolbarButton(Common.UIString('Close drawer') , 'largeicon-delete'); |
| 54 closeDrawerButton.addEventListener(UI.ToolbarButton.Events.Click, this._clos eDrawer, this); | 54 closeDrawerButton.addEventListener(UI.ToolbarButton.Events.Click, this._clos eDrawer, this); |
| 55 this._drawerTabbedPane.rightToolbar().appendToolbarItem(closeDrawerButton); | 55 this._drawerTabbedPane.rightToolbar().appendToolbarItem(closeDrawerButton); |
| 56 this._drawerSplitWidget.installResizer(this._drawerTabbedPane.headerElement( )); | 56 this._drawerSplitWidget.installResizer(this._drawerTabbedPane.headerElement( )); |
| 57 this._drawerSplitWidget.setSidebarWidget(this._drawerTabbedPane); | 57 this._drawerSplitWidget.setSidebarWidget(this._drawerTabbedPane); |
| 58 | 58 |
| 59 // Create main area tabbed pane. | 59 // Create main area tabbed pane. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 339 * @return {boolean} | 339 * @return {boolean} |
| 340 */ | 340 */ |
| 341 handleAction(context, actionId) { | 341 handleAction(context, actionId) { |
| 342 if (UI.inspectorView.drawerVisible()) | 342 if (UI.inspectorView.drawerVisible()) |
| 343 UI.inspectorView._closeDrawer(); | 343 UI.inspectorView._closeDrawer(); |
| 344 else | 344 else |
| 345 UI.inspectorView._showDrawer(true); | 345 UI.inspectorView._showDrawer(true); |
| 346 return true; | 346 return true; |
| 347 } | 347 } |
| 348 }; | 348 }; |
| OLD | NEW |