Land stubs for File and Directory Entries API interfaces
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Aug 2017 22:41:04 +0000 (22:41 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Aug 2017 22:41:04 +0000 (22:41 +0000)
commit9fe236dadbb9051b6e8e48962ac5604efa8ec819
treec0df471fa84608b3b44e24ffe1f815cefa4c8289
parent9fd485f873f86f5bee75b862b9cad349324af6c3
Land stubs for File and Directory Entries API interfaces
https://bugs.webkit.org/show_bug.cgi?id=175993
<rdar://problem/34087477>

Reviewed by Ryosuke Niwa.

Source/JavaScriptCore:

Add CommonIdentifiers needed for [EnabledAtRuntime].

* runtime/CommonIdentifiers.h:

Source/WebCore:

Land stubs for File and Directory Entries API interfaces:
- https://wicg.github.io/entries-api/#idl-index

Those will be needed to support drag and drop.

Test: http/wpt/entries-api/interfaces.html

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* Modules/entriesapi/DOMFileSystem.cpp: Added.
(WebCore::DOMFileSystem::DOMFileSystem):
(WebCore::DOMFileSystem::~DOMFileSystem):
* Modules/entriesapi/DOMFileSystem.h: Added.
(WebCore::DOMFileSystem::create):
(WebCore::DOMFileSystem::name const):
(WebCore::DOMFileSystem::root const):
* Modules/entriesapi/DOMFileSystem.idl: Added.
* Modules/entriesapi/ErrorCallback.h: Added.
* Modules/entriesapi/ErrorCallback.idl: Added.
* Modules/entriesapi/FileCallback.h: Added.
* Modules/entriesapi/FileCallback.idl: Added.
* Modules/entriesapi/FileSystemDirectoryEntry.cpp: Added.
(WebCore::FileSystemDirectoryEntry::FileSystemDirectoryEntry):
(WebCore::FileSystemDirectoryEntry::getFile):
(WebCore::FileSystemDirectoryEntry::getDirectory):
* Modules/entriesapi/FileSystemDirectoryEntry.h: Added.
* Modules/entriesapi/FileSystemDirectoryEntry.idl: Added.
* Modules/entriesapi/FileSystemEntry.cpp: Added.
(WebCore::FileSystemEntry::FileSystemEntry):
* Modules/entriesapi/FileSystemEntry.h: Added.
(WebCore::FileSystemEntry::~FileSystemEntry):
(WebCore::FileSystemEntry::isFile const):
(WebCore::FileSystemEntry::isDirectory const):
(WebCore::FileSystemEntry::name const):
(WebCore::FileSystemEntry::fullPath const):
(WebCore::FileSystemEntry::filesystem const):
* Modules/entriesapi/FileSystemEntry.idl: Added.
* Modules/entriesapi/FileSystemEntryCallback.h: Added.
* Modules/entriesapi/FileSystemEntryCallback.idl: Added.
* Modules/entriesapi/FileSystemFileEntry.cpp: Added.
(WebCore::FileSystemFileEntry::FileSystemFileEntry):
(WebCore::FileSystemFileEntry::file):
* Modules/entriesapi/FileSystemFileEntry.h: Added.
* Modules/entriesapi/FileSystemFileEntry.idl: Added.
* WebCore.xcodeproj/project.pbxproj:

LayoutTests:

Add layout test coverage.

* http/wpt/entries-api/interfaces-expected.txt: Added.
* http/wpt/entries-api/interfaces.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
28 files changed:
LayoutTests/ChangeLog
LayoutTests/http/wpt/entries-api/interfaces-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/entries-api/interfaces.html [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/CommonIdentifiers.h
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/Modules/entriesapi/DOMFileSystem.cpp [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/DOMFileSystem.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/DOMFileSystem.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/ErrorCallback.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/ErrorCallback.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileCallback.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileCallback.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemDirectoryEntry.cpp [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemDirectoryEntry.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemDirectoryEntry.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemEntry.cpp [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemEntry.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemEntry.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemEntryCallback.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemEntryCallback.idl [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemFileEntry.cpp [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemFileEntry.h [new file with mode: 0644]
Source/WebCore/Modules/entriesapi/FileSystemFileEntry.idl [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj