| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 /** | 111 /** |
| 112 * Keep these in sync with WebCore::InspectorPageAgent::resourceTypeJson | 112 * Keep these in sync with WebCore::InspectorPageAgent::resourceTypeJson |
| 113 * @enum {!WebInspector.ResourceType} | 113 * @enum {!WebInspector.ResourceType} |
| 114 */ | 114 */ |
| 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 Media: new WebInspector.ResourceType("media", "Media", "Media", "rgb(164,60,
255)", false), // FIXME: Decide the color. |
| 119 Script: new WebInspector.ResourceType("script", "Script", "Scripts", "rgb(25
5,121,0)", true), | 120 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), | 121 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), | 122 Font: new WebInspector.ResourceType("font", "Font", "Fonts", "rgb(255,82,62)
", false), |
| 123 TextTrack: new WebInspector.ResourceType("texttrack", "TextTrack", "TextTrac
ks", "rgb(164,60,255)", true), // FIXME: Decide the color. |
| 122 WebSocket: new WebInspector.ResourceType("websocket", "WebSocket", "WebSocke
ts", "rgb(186,186,186)", false), // FIXME: Decide the color. | 124 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) | 125 Other: new WebInspector.ResourceType("other", "Other", "Other", "rgb(186,186
,186)", false) |
| 124 } | 126 } |
| 125 | 127 |
| 126 WebInspector.ResourceType.mimeTypesForExtensions = { | 128 WebInspector.ResourceType.mimeTypesForExtensions = { |
| 127 // Web extensions | 129 // Web extensions |
| 128 "js": "text/javascript", | 130 "js": "text/javascript", |
| 129 "css": "text/css", | 131 "css": "text/css", |
| 130 "html": "text/html", | 132 "html": "text/html", |
| 131 "htm": "text/html", | 133 "htm": "text/html", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "php": "text/x-php", | 171 "php": "text/x-php", |
| 170 "phtml": "application/x-httpd-php", | 172 "phtml": "application/x-httpd-php", |
| 171 | 173 |
| 172 // Python | 174 // Python |
| 173 "py": "text/x-python", | 175 "py": "text/x-python", |
| 174 | 176 |
| 175 // Shell | 177 // Shell |
| 176 "sh": "text/x-sh", | 178 "sh": "text/x-sh", |
| 177 | 179 |
| 178 // SCSS | 180 // SCSS |
| 179 "scss": "text/x-scss" | 181 "scss": "text/x-scss", |
| 182 |
| 183 // Video Text Tracks. |
| 184 "vtt": "text/vtt" |
| 180 } | 185 } |
| OLD | NEW |