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

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

Issue 2442543002: DevTools: New snippet button and icon (Closed)
Patch Set: space in css Created 4 years, 2 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: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
index b80abb420e442970e64a9e32c0622547a65809cb..7d1351515794341a1dfece4192d83fc2e1854aed 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
@@ -209,6 +209,11 @@ WebInspector.ContentScriptsNavigatorView.prototype = {
WebInspector.SnippetsNavigatorView = function()
{
WebInspector.NavigatorView.call(this);
+ var toolbar = new WebInspector.Toolbar("snippets-navigator-toolbar");
+ var newButton = new WebInspector.ToolbarButton(WebInspector.UIString("New"), "add-toolbar-item");
+ newButton.addEventListener("click", this._handleCreateSnippet.bind(this));
+ toolbar.appendToolbarItem(newButton);
+ this.element.insertBefore(toolbar.element, this.element.firstChild);
}
WebInspector.SnippetsNavigatorView.prototype = {

Powered by Google App Engine
This is Rietveld 408576698