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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2485573009: DevTools: Move the Run Snippet button into the status bar. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
index 1e67900de8def559a2b2602c7eb7408e3bb1cede..b74d6b46c25529bb24112cc10a81093bef7aa568 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -100,6 +100,16 @@ WebInspector.JavaScriptSourceFrame = class extends WebInspector.UISourceCodeFram
result.push(
new WebInspector.ToolbarText(WebInspector.UIString('(source mapped from %s)', parsedURL.displayName)));
}
+
+ if (this.uiSourceCode().project().type() === WebInspector.projectTypes.Snippets) {
+ result.push(new WebInspector.ToolbarSeparator(true));
+ var runSnippet = WebInspector.Toolbar.createActionButtonForId('debugger.run-snippet');
+ runSnippet.setText(WebInspector.isMac() ?
+ WebInspector.UIString('\u2318+Enter') :
+ WebInspector.UIString('Ctrl+Enter'));
+ result.push(runSnippet);
+ }
+
return result;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698