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

Unified Diff: Source/devtools/front_end/SourcesPanel.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/SourcesPanel.js
diff --git a/Source/devtools/front_end/SourcesPanel.js b/Source/devtools/front_end/SourcesPanel.js
index f162e6df162f6e920eaae8ce8cee6da904b97a21..f44afe2487d91ec0a51150cef5d0a0f2b978d662 100644
--- a/Source/devtools/front_end/SourcesPanel.js
+++ b/Source/devtools/front_end/SourcesPanel.js
@@ -1855,3 +1855,21 @@ WebInspector.SourcesPanel.EditorAction.prototype = {
*/
button: function(panel) { }
}
+
+/**
+ * @constructor
+ * @implements {WebInspector.ActionDelegate}
+ */
+WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate = function() {}
+
+WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate.prototype = {
+ /**
+ * @param {!KeyboardEvent=} event
+ * @return {boolean}
+ */
+ handleAction: function(event)
+ {
+ /** @type {!WebInspector.SourcesPanel} */ (WebInspector.showPanel("sources")).showGoToSourceDialog();
+ return true;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698