| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Runtime.queryParam('panel')); | 62 Runtime.queryParam('panel')); |
| 63 | 63 |
| 64 this._tabbedPane = this._tabbedLocation.tabbedPane(); | 64 this._tabbedPane = this._tabbedLocation.tabbedPane(); |
| 65 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css'); | 65 this._tabbedPane.registerRequiredCSS('ui/inspectorViewTabbedPane.css'); |
| 66 this._tabbedPane.setTabSlider(true); | 66 this._tabbedPane.setTabSlider(true); |
| 67 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta
bSelected, this); | 67 this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._ta
bSelected, this); |
| 68 this._tabbedPane.setAccessibleName(Common.UIString('Panels')); |
| 68 | 69 |
| 69 if (Host.isUnderTest()) | 70 if (Host.isUnderTest()) |
| 70 this._tabbedPane.setAutoSelectFirstItemOnShow(false); | 71 this._tabbedPane.setAutoSelectFirstItemOnShow(false); |
| 71 this._drawerSplitWidget.setMainWidget(this._tabbedPane); | 72 this._drawerSplitWidget.setMainWidget(this._tabbedPane); |
| 72 | 73 |
| 73 this._keyDownBound = this._keyDown.bind(this); | 74 this._keyDownBound = this._keyDown.bind(this); |
| 74 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowPanel, showPanel.bind(this)); | 75 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowPanel, showPanel.bind(this)); |
| 75 | 76 |
| 76 /** | 77 /** |
| 77 * @this {UI.InspectorView} | 78 * @this {UI.InspectorView} |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 * @return {boolean} | 327 * @return {boolean} |
| 327 */ | 328 */ |
| 328 handleAction(context, actionId) { | 329 handleAction(context, actionId) { |
| 329 if (UI.inspectorView.drawerVisible()) | 330 if (UI.inspectorView.drawerVisible()) |
| 330 UI.inspectorView._closeDrawer(); | 331 UI.inspectorView._closeDrawer(); |
| 331 else | 332 else |
| 332 UI.inspectorView._showDrawer(true); | 333 UI.inspectorView._showDrawer(true); |
| 333 return true; | 334 return true; |
| 334 } | 335 } |
| 335 }; | 336 }; |
| OLD | NEW |