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

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: Rebased Created 6 years, 9 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
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | Source/devtools/front_end/KeyboardShortcut.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/InspectorView.js
diff --git a/Source/devtools/front_end/InspectorView.js b/Source/devtools/front_end/InspectorView.js
index e27be2eac39882241984bb9f676782db40c000f5..4e55123d16531acc6d061209c5cea9dd959d5341 100644
--- a/Source/devtools/front_end/InspectorView.js
+++ b/Source/devtools/front_end/InspectorView.js
@@ -433,6 +433,32 @@ WebInspector.inspectorView;
/**
* @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
* @extends {WebInspector.VBox}
*/
WebInspector.RootView = function()
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | Source/devtools/front_end/KeyboardShortcut.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698