Commit fe1e759f authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[EFL] Skeleton code of File system API.

https://bugs.webkit.org/show_bug.cgi?id=91187

Patch by Dongwoo Joshua Im <dw.im@samsung.com> on 2012-10-03
Reviewed by Gyuyoung Kim.

Add skeleton code of File System API on EFL port.
Implementation patches will be created later.

No new tests because this is just skeleton code.

* CMakeLists.txt: Add new files which created by other patches in Modules/filesystem/ directory.
* PlatformEfl.cmake: Add AsyncFileSystemEfl.cpp.
* platform/AsyncFileSystem.cpp:
(WebCore):
* platform/efl/AsyncFileSystemEfl.cpp: Added.
* platform/efl/AsyncFileSystemEfl.h: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ce507752
......@@ -144,6 +144,7 @@ SET(WebCore_IDL_FILES
Modules/battery/BatteryManager.idl
Modules/battery/NavigatorBattery.idl
Modules/filesystem/DataTransferItemFileSystem.idl
Modules/filesystem/DirectoryEntry.idl
Modules/filesystem/DirectoryEntrySync.idl
Modules/filesystem/DirectoryReader.idl
......@@ -165,6 +166,7 @@ SET(WebCore_IDL_FILES
Modules/filesystem/FileWriterCallback.idl
Modules/filesystem/FileWriter.idl
Modules/filesystem/FileWriterSync.idl
Modules/filesystem/HTMLInputElementFileSystem.idl
Modules/filesystem/Metadata.idl
Modules/filesystem/MetadataCallback.idl
Modules/filesystem/WorkerContextFileSystem.idl
......@@ -795,6 +797,7 @@ SET(WebCore_SOURCES
Modules/filesystem/FileWriter.cpp
Modules/filesystem/FileWriterBase.cpp
Modules/filesystem/FileWriterSync.cpp
Modules/filesystem/HTMLInputElementFileSystem.cpp
Modules/filesystem/LocalFileSystem.cpp
Modules/filesystem/WorkerContextFileSystem.cpp
......
2012-10-03 Dongwoo Joshua Im <dw.im@samsung.com>
[EFL] Skeleton code of File system API.
https://bugs.webkit.org/show_bug.cgi?id=91187
Reviewed by Gyuyoung Kim.
Add skeleton code of File System API on EFL port.
Implementation patches will be created later.
No new tests because this is just skeleton code.
* CMakeLists.txt: Add new files which created by other patches in Modules/filesystem/ directory.
* PlatformEfl.cmake: Add AsyncFileSystemEfl.cpp.
* platform/AsyncFileSystem.cpp:
(WebCore):
* platform/efl/AsyncFileSystemEfl.cpp: Added.
* platform/efl/AsyncFileSystemEfl.h: Added.
2012-10-03 Andreas Kling <kling@webkit.org>
Shrink ElementRareData by moving bool flags to NodeRareData.
......
......@@ -15,6 +15,7 @@ LIST(APPEND WebCore_SOURCES
page/efl/DragControllerEfl.cpp
page/efl/EventHandlerEfl.cpp
platform/Cursor.cpp
platform/efl/AsyncFileSystemEfl.cpp
platform/efl/BatteryProviderEfl.cpp
platform/efl/ClipboardEfl.cpp
platform/efl/ContextMenuEfl.cpp
......@@ -324,4 +325,3 @@ IF (ENABLE_WEB_AUDIO)
INSTALL(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
ADD_DEFINITIONS(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
ENDIF ()
......@@ -39,7 +39,7 @@
namespace WebCore {
#if !PLATFORM(CHROMIUM) && !PLATFORM(GTK) && !PLATFORM(BLACKBERRY)
#if !PLATFORM(CHROMIUM) && !PLATFORM(GTK) && !PLATFORM(BLACKBERRY) && !PLATFORM(EFL)
bool AsyncFileSystem::isAvailable()
{
notImplemented();
......
/*
* Copyright (C) 2012 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "AsyncFileSystemEfl.h"
#if ENABLE(FILE_SYSTEM)
#include "ExceptionCode.h"
#include "LocalFileSystem.h"
#include "NotImplemented.h"
namespace WebCore {
bool AsyncFileSystem::isAvailable()
{
return false;
}
PassOwnPtr<AsyncFileSystem> AsyncFileSystem::create()
{
return adoptPtr(new AsyncFileSystemEfl());
}
void AsyncFileSystem::openFileSystem(const String&, const String&, FileSystemType, bool, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystem::deleteFileSystem(const String&, const String&, FileSystemType, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
AsyncFileSystemEfl::AsyncFileSystemEfl()
: AsyncFileSystem()
{
}
AsyncFileSystemEfl::~AsyncFileSystemEfl()
{
}
void AsyncFileSystemEfl::move(const KURL&, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::copy(const KURL&, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::remove(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::removeRecursively(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::readMetadata(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::createFile(const KURL&, bool, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::createDirectory(const KURL&, bool, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::fileExists(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::directoryExists(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::readDirectory(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::createWriter(AsyncFileWriterClient*, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
void AsyncFileSystemEfl::createSnapshotFileAndReadMetadata(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>)
{
notImplemented();
}
} // namespace WebCore
#endif
/*
* Copyright (C) 2012 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef AsyncFileSystemEfl_h
#define AsyncFileSystemEfl_h
#if ENABLE(FILE_SYSTEM)
#include "AsyncFileSystem.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
class AsyncFileSystemCallbacks;
class AsyncFileSystemEfl : public AsyncFileSystem {
public:
AsyncFileSystemEfl();
virtual ~AsyncFileSystemEfl();
virtual void move(const KURL&, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void copy(const KURL&, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void remove(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void removeRecursively(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void readMetadata(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void createFile(const KURL&, bool, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void createDirectory(const KURL&, bool, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void fileExists(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void directoryExists(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void readDirectory(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void createWriter(AsyncFileWriterClient*, const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
virtual void createSnapshotFileAndReadMetadata(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>);
};
} // namespace WebCore
#endif
#endif // AsyncFileSystemEfl_h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment