OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 295 |
296 InspectorPageAgent::ResourceType InspectorPageAgent::cachedResourceType(const Ca
chedResource& cachedResource) | 296 InspectorPageAgent::ResourceType InspectorPageAgent::cachedResourceType(const Ca
chedResource& cachedResource) |
297 { | 297 { |
298 switch (cachedResource.type()) { | 298 switch (cachedResource.type()) { |
299 case CachedResource::ImageResource: | 299 case CachedResource::ImageResource: |
300 return InspectorPageAgent::ImageResource; | 300 return InspectorPageAgent::ImageResource; |
301 case CachedResource::FontResource: | 301 case CachedResource::FontResource: |
302 return InspectorPageAgent::FontResource; | 302 return InspectorPageAgent::FontResource; |
303 case CachedResource::CSSStyleSheet: | 303 case CachedResource::CSSStyleSheet: |
304 // Fall through. | 304 // Fall through. |
305 #if ENABLE(XSLT) | |
306 case CachedResource::XSLStyleSheet: | 305 case CachedResource::XSLStyleSheet: |
307 #endif | |
308 return InspectorPageAgent::StylesheetResource; | 306 return InspectorPageAgent::StylesheetResource; |
309 case CachedResource::Script: | 307 case CachedResource::Script: |
310 return InspectorPageAgent::ScriptResource; | 308 return InspectorPageAgent::ScriptResource; |
311 case CachedResource::RawResource: | 309 case CachedResource::RawResource: |
312 return InspectorPageAgent::XHRResource; | 310 return InspectorPageAgent::XHRResource; |
313 case CachedResource::MainResource: | 311 case CachedResource::MainResource: |
314 return InspectorPageAgent::DocumentResource; | 312 return InspectorPageAgent::DocumentResource; |
315 default: | 313 default: |
316 break; | 314 break; |
317 } | 315 } |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 // Handled on the browser level. | 1228 // Handled on the browser level. |
1231 } | 1229 } |
1232 | 1230 |
1233 void InspectorPageAgent::handleJavaScriptDialog(ErrorString* errorString, bool a
ccept, const String* promptText) | 1231 void InspectorPageAgent::handleJavaScriptDialog(ErrorString* errorString, bool a
ccept, const String* promptText) |
1234 { | 1232 { |
1235 // Handled on the browser level. | 1233 // Handled on the browser level. |
1236 } | 1234 } |
1237 | 1235 |
1238 } // namespace WebCore | 1236 } // namespace WebCore |
1239 | 1237 |
OLD | NEW |