| Index: Source/devtools/front_end/InspectorView.js
|
| diff --git a/Source/devtools/front_end/InspectorView.js b/Source/devtools/front_end/InspectorView.js
|
| index 4aa2e0497c6a497dd50a304ef37ae1d07bc2aa6a..666df0794aad1181a80e593366a3f2fcc53939db 100644
|
| --- a/Source/devtools/front_end/InspectorView.js
|
| +++ b/Source/devtools/front_end/InspectorView.js
|
| @@ -158,6 +158,14 @@ WebInspector.InspectorView.prototype = {
|
| },
|
|
|
| /**
|
| + * @return {!Array.<string>}
|
| + */
|
| + panelNames: function()
|
| + {
|
| + return Object.keys(this._panelDescriptors);
|
| + },
|
| +
|
| + /**
|
| * @param {!WebInspector.PanelDescriptor} panelDescriptor
|
| */
|
| addPanel: function(panelDescriptor)
|
| @@ -625,6 +633,51 @@ WebInspector.InspectorView.OverlayView.prototype = {
|
| }
|
|
|
| /**
|
| + * @constructor
|
| + * @implements {WebInspector.ActionDelegate}
|
| + */
|
| +WebInspector.InspectorView.DrawerToggleActionDelegate = function()
|
| +{
|
| +}
|
| +
|
| +WebInspector.InspectorView.DrawerToggleActionDelegate.prototype = {
|
| + /**
|
| + * @return {boolean}
|
| + */
|
| + handleAction: function()
|
| + {
|
| + if (WebInspector.inspectorView.drawerVisible()) {
|
| + WebInspector.inspectorView.closeDrawer();
|
| + return true;
|
| + }
|
| + if (!WebInspector.experimentsSettings.doNotOpenDrawerOnEsc.isEnabled()) {
|
| + WebInspector.inspectorView.showDrawer();
|
| + return true;
|
| + }
|
| + return false;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @implements {WebInspector.ActionDelegate}
|
| + */
|
| +WebInspector.InspectorView.ShowConsoleActionDelegate = function()
|
| +{
|
| +}
|
| +
|
| +WebInspector.InspectorView.ShowConsoleActionDelegate.prototype = {
|
| + /**
|
| + * @return {boolean}
|
| + */
|
| + handleAction: function()
|
| + {
|
| + WebInspector.showConsole();
|
| + return true;
|
| + }
|
| +}
|
| +
|
| +/**
|
| * @type {!WebInspector.InspectorView}
|
| */
|
| WebInspector.inspectorView;
|
|
|