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

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: Rebased patch 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
Index: Source/devtools/front_end/SourcesPanel.js
diff --git a/Source/devtools/front_end/SourcesPanel.js b/Source/devtools/front_end/SourcesPanel.js
index 1c131b4043d73dbc2f751923b8d803114b9bb834..4b7f0f27ae81204240d5142109986b1d323f1a8c 100644
--- a/Source/devtools/front_end/SourcesPanel.js
+++ b/Source/devtools/front_end/SourcesPanel.js
@@ -1165,3 +1165,36 @@ WebInspector.SourcesPanel.UILocationRevealer.prototype = {
/** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorView.panel("sources")).showUILocation(uiLocation);
}
}
+
+/**
+ * @interface
+ */
+WebInspector.SourcesPanel.EditorAction = function()
pfeldman 2014/03/24 16:54:22 Poor merge
apavlov 2014/03/25 10:03:45 Done.
+{
+}
+
+WebInspector.SourcesPanel.EditorAction.prototype = {
+ /**
+ * @param {!WebInspector.SourcesPanel} panel
+ * @return {!Element}
+ */
+ 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.inspectorView.showPanel("sources")).showGoToSourceDialog();
+ return true;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698