| 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;
|
| }
|
|
|
|
|