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

Unified Diff: Source/devtools/front_end/InspectorView.js

Issue 170273003: DevTools: Implement extensions-based shortcut bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « no previous file | Source/devtools/front_end/KeyboardShortcut.js » ('j') | Source/devtools/front_end/KeyboardShortcut.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698