OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 WebInspector.resourceTypes = { | 115 WebInspector.resourceTypes = { |
116 Document: new WebInspector.ResourceType("document", "Document", "Documents",
"rgb(47,102,236)", true), | 116 Document: new WebInspector.ResourceType("document", "Document", "Documents",
"rgb(47,102,236)", true), |
117 Stylesheet: new WebInspector.ResourceType("stylesheet", "Stylesheet", "Style
sheets", "rgb(157,231,119)", true), | 117 Stylesheet: new WebInspector.ResourceType("stylesheet", "Stylesheet", "Style
sheets", "rgb(157,231,119)", true), |
118 Image: new WebInspector.ResourceType("image", "Image", "Images", "rgb(164,60
,255)", false), | 118 Image: new WebInspector.ResourceType("image", "Image", "Images", "rgb(164,60
,255)", false), |
119 Script: new WebInspector.ResourceType("script", "Script", "Scripts", "rgb(25
5,121,0)", true), | 119 Script: new WebInspector.ResourceType("script", "Script", "Scripts", "rgb(25
5,121,0)", true), |
120 XHR: new WebInspector.ResourceType("xhr", "XHR", "XHR", "rgb(231,231,10)", t
rue), | 120 XHR: new WebInspector.ResourceType("xhr", "XHR", "XHR", "rgb(231,231,10)", t
rue), |
121 Font: new WebInspector.ResourceType("font", "Font", "Fonts", "rgb(255,82,62)
", false), | 121 Font: new WebInspector.ResourceType("font", "Font", "Fonts", "rgb(255,82,62)
", false), |
122 WebSocket: new WebInspector.ResourceType("websocket", "WebSocket", "WebSocke
ts", "rgb(186,186,186)", false), // FIXME: Decide the color. | 122 WebSocket: new WebInspector.ResourceType("websocket", "WebSocket", "WebSocke
ts", "rgb(186,186,186)", false), // FIXME: Decide the color. |
123 Other: new WebInspector.ResourceType("other", "Other", "Other", "rgb(186,186
,186)", false) | 123 Other: new WebInspector.ResourceType("other", "Other", "Other", "rgb(186,186
,186)", false) |
124 } | 124 } |
| 125 |
| 126 WebInspector.ResourceType.mimeTypesForExtensions = { |
| 127 // Web extensions |
| 128 "js": "text/javascript", |
| 129 "css": "text/css", |
| 130 "html": "text/html", |
| 131 "htm": "text/html", |
| 132 "xml": "application/xml", |
| 133 "xsl": "application/xml", |
| 134 |
| 135 // HTML Embedded Scripts: ASP, JSP |
| 136 "asp": "application/x-aspx", |
| 137 "aspx": "application/x-aspx", |
| 138 "jsp": "application/x-jsp", |
| 139 |
| 140 // C/C++ |
| 141 "c": "text/x-c++src", |
| 142 "cc": "text/x-c++src", |
| 143 "cpp": "text/x-c++src", |
| 144 "h": "text/x-c++src", |
| 145 "m": "text/x-c++src", |
| 146 "mm": "text/x-c++src", |
| 147 |
| 148 // CoffeeScript |
| 149 "coffee": "text/x-coffeescript", |
| 150 |
| 151 // Dart |
| 152 "dart": "text/javascript", |
| 153 |
| 154 // TypeScript |
| 155 "ts": "text/typescript", |
| 156 |
| 157 // JSON |
| 158 "json": "application/json", |
| 159 "gyp": "application/json", |
| 160 "gypi": "application/json", |
| 161 |
| 162 // C# |
| 163 "cs": "text/x-csharp", |
| 164 |
| 165 // Java |
| 166 "java": "text/x-java", |
| 167 |
| 168 // PHP |
| 169 "php": "text/x-php", |
| 170 "phtml": "application/x-httpd-php", |
| 171 |
| 172 // Python |
| 173 "py": "text/x-python", |
| 174 |
| 175 // Shell |
| 176 "sh": "text/x-sh", |
| 177 |
| 178 // SCSS |
| 179 "scss": "text/x-scss" |
| 180 } |
OLD | NEW |