| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| 60 this._tabbedLocation = UI.viewManager.createTabbedLocation( | 60 this._tabbedLocation = UI.viewManager.createTabbedLocation( |
| 61 InspectorFrontendHost.bringToFront.bind(InspectorFrontendHost), 'panel',
true, true); | 61 InspectorFrontendHost.bringToFront.bind(InspectorFrontendHost), 'panel',
true, true); |
| 62 this._tabbedPane = this._tabbedLocation.tabbedPane(); | 62 this._tabbedPane = this._tabbedLocation.tabbedPane(); |
| 63 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css'); | 63 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css'); |
| 64 this._tabbedPane.setTabSlider(true); | 64 this._tabbedPane.setTabSlider(true); |
| 65 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta
bSelected, this); | 65 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta
bSelected, this); |
| 66 | 66 |
| 67 if (InspectorFrontendHost.isUnderTest()) | 67 if (Host.isUnderTest()) |
| 68 this._tabbedPane.setAutoSelectFirstItemOnShow(false); | 68 this._tabbedPane.setAutoSelectFirstItemOnShow(false); |
| 69 this._drawerSplitWidget.setMainWidget(this._tabbedPane); | 69 this._drawerSplitWidget.setMainWidget(this._tabbedPane); |
| 70 | 70 |
| 71 this._keyDownBound = this._keyDown.bind(this); | 71 this._keyDownBound = this._keyDown.bind(this); |
| 72 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowPanel, showPanel.bind(this)); | 72 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowPanel, showPanel.bind(this)); |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * @this {UI.InspectorView} | 75 * @this {UI.InspectorView} |
| 76 * @param {!Common.Event} event | 76 * @param {!Common.Event} event |
| 77 */ | 77 */ |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 * @return {boolean} | 312 * @return {boolean} |
| 313 */ | 313 */ |
| 314 handleAction(context, actionId) { | 314 handleAction(context, actionId) { |
| 315 if (UI.inspectorView.drawerVisible()) | 315 if (UI.inspectorView.drawerVisible()) |
| 316 UI.inspectorView._closeDrawer(); | 316 UI.inspectorView._closeDrawer(); |
| 317 else | 317 else |
| 318 UI.inspectorView._showDrawer(true); | 318 UI.inspectorView._showDrawer(true); |
| 319 return true; | 319 return true; |
| 320 } | 320 } |
| 321 }; | 321 }; |
| OLD | NEW |