Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.idl

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.idl
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.idl b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.idl
similarity index 81%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryEntry.idl
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.idl
index a6ec27b836f6eeac4628ae99b702c316e623334e..332f5e5d750b65b670f192bc12cb134f824ec484 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.idl
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.idl
@@ -28,11 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- NoInterfaceObject
-] interface DirectoryEntry : Entry {
- DirectoryReader createReader();
- void getFile(DOMString? path, optional FileSystemFlags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
- void getDirectory(DOMString? path, optional FileSystemFlags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
+// https://wicg.github.io/entries-api/#api-directoryentry
+interface FileSystemDirectoryEntry : FileSystemEntry {
+ FileSystemDirectoryReader createReader();
+ void getFile(DOMString? path, optional FileSystemFlags options, optional FileSystemEntryCallback successCallback, optional ErrorCallback errorCallback);
+ void getDirectory(DOMString? path, optional FileSystemFlags options, optional FileSystemEntryCallback successCallback, optional ErrorCallback errorCallback);
+
+ // TODO(jsbell): Only expose in non-isolated file systems.
void removeRecursively(VoidCallback successCallback, optional ErrorCallback errorCallback);
};

Powered by Google App Engine
This is Rietveld 408576698