| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 if (m_client) | 304 if (m_client) |
| 305 m_client->addFileSystem(); | 305 m_client->addFileSystem(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void InspectorFrontendHost::removeFileSystem(const String& fileSystemPath) | 308 void InspectorFrontendHost::removeFileSystem(const String& fileSystemPath) |
| 309 { | 309 { |
| 310 if (m_client) | 310 if (m_client) |
| 311 m_client->removeFileSystem(fileSystemPath); | 311 m_client->removeFileSystem(fileSystemPath); |
| 312 } | 312 } |
| 313 | 313 |
| 314 #if ENABLE(FILE_SYSTEM) | |
| 315 PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String
& fileSystemName, const String& rootURL) | 314 PassRefPtr<DOMFileSystem> InspectorFrontendHost::isolatedFileSystem(const String
& fileSystemName, const String& rootURL) |
| 316 { | 315 { |
| 317 ScriptExecutionContext* context = m_frontendPage->mainFrame()->document(); | 316 ScriptExecutionContext* context = m_frontendPage->mainFrame()->document(); |
| 318 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated
, KURL(ParsedURLString, rootURL), AsyncFileSystem::create()); | 317 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated
, KURL(ParsedURLString, rootURL), AsyncFileSystem::create()); |
| 319 } | 318 } |
| 320 #endif | |
| 321 | 319 |
| 322 bool InspectorFrontendHost::isUnderTest() | 320 bool InspectorFrontendHost::isUnderTest() |
| 323 { | 321 { |
| 324 return m_client && m_client->isUnderTest(); | 322 return m_client && m_client->isUnderTest(); |
| 325 } | 323 } |
| 326 | 324 |
| 327 bool InspectorFrontendHost::canSaveAs() | 325 bool InspectorFrontendHost::canSaveAs() |
| 328 { | 326 { |
| 329 return false; | 327 return false; |
| 330 } | 328 } |
| 331 | 329 |
| 332 bool InspectorFrontendHost::canInspectWorkers() | 330 bool InspectorFrontendHost::canInspectWorkers() |
| 333 { | 331 { |
| 334 return false; | 332 return false; |
| 335 } | 333 } |
| 336 | 334 |
| 337 String InspectorFrontendHost::hiddenPanels() | 335 String InspectorFrontendHost::hiddenPanels() |
| 338 { | 336 { |
| 339 return ""; | 337 return ""; |
| 340 } | 338 } |
| 341 | 339 |
| 342 } // namespace WebCore | 340 } // namespace WebCore |
| 343 | |
| OLD | NEW |