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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/ResourceType.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/common/ResourceType.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/ResourceType.js b/third_party/WebKit/Source/devtools/front_end/common/ResourceType.js
index 57f4fd248aa84f9b914130a9786dbc351bc397da..0c18c4dd1c6cf8ced67a5f318971f24d165fb821 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/ResourceType.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/ResourceType.js
@@ -80,7 +80,7 @@ WebInspector.ResourceType.prototype = {
*/
isScript: function()
{
- return this._name === "script" || this._name === "sm-script";
+ return this._name === "script" || this._name === "sm-script" || this._name === "snippet";
},
/**
@@ -180,6 +180,7 @@ WebInspector.resourceTypes = {
Fetch: new WebInspector.ResourceType("fetch", "Fetch", WebInspector.resourceCategories.XHR, true),
EventSource: new WebInspector.ResourceType("eventsource", "EventSource", WebInspector.resourceCategories.XHR, true),
Script: new WebInspector.ResourceType("script", "Script", WebInspector.resourceCategories.Script, true),
+ Snippet: new WebInspector.ResourceType("snippet", "Snippet", WebInspector.resourceCategories.Script, true),
Stylesheet: new WebInspector.ResourceType("stylesheet", "Stylesheet", WebInspector.resourceCategories.Stylesheet, true),
Image: new WebInspector.ResourceType("image", "Image", WebInspector.resourceCategories.Image, false),
Media: new WebInspector.ResourceType("media", "Media", WebInspector.resourceCategories.Media, false),

Powered by Google App Engine
This is Rietveld 408576698