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

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

Issue 2573323002: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: Created 4 years 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
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('click', this._closeDrawer.bind(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.
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);
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698