Bug 1315185 - Get rid of FileSystemFileEntry.createWriter, r=smaug
This commit is contained in:
@@ -90,14 +90,6 @@ FileSystemFileEntry::GetFullPath(nsAString& aPath, ErrorResult& aRv) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
FileSystemFileEntry::CreateWriter(VoidCallback& aSuccessCallback,
|
|
||||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
|
|
||||||
{
|
|
||||||
ErrorCallbackHelper::Call(GetParentObject(), aErrorCallback,
|
|
||||||
NS_ERROR_DOM_SECURITY_ERR);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FileSystemFileEntry::GetFile(FileCallback& aSuccessCallback,
|
FileSystemFileEntry::GetFile(FileCallback& aSuccessCallback,
|
||||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
|
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
|
||||||
|
|||||||
@@ -41,10 +41,6 @@ public:
|
|||||||
virtual void
|
virtual void
|
||||||
GetFullPath(nsAString& aFullPath, ErrorResult& aRv) const override;
|
GetFullPath(nsAString& aFullPath, ErrorResult& aRv) const override;
|
||||||
|
|
||||||
void
|
|
||||||
CreateWriter(VoidCallback& aSuccessCallback,
|
|
||||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GetFile(FileCallback& aSuccessCallback,
|
GetFile(FileCallback& aSuccessCallback,
|
||||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
|
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
|
||||||
|
|||||||
@@ -71,15 +71,6 @@ function test_fileEntry_file() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_fileEntry_createWriter() {
|
|
||||||
fileEntry.createWriter(function(file) {
|
|
||||||
ok(false, "Something when wrong!");
|
|
||||||
}, function() {
|
|
||||||
ok(true, "We don't support createWrite");
|
|
||||||
next();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_fileEntry_getParent() {
|
function test_fileEntry_getParent() {
|
||||||
fileEntry.getParent(function(entry) {
|
fileEntry.getParent(function(entry) {
|
||||||
is(fileEntry.fullPath, entry.fullPath, "Top level FileEntry should return itself as parent.");
|
is(fileEntry.fullPath, entry.fullPath, "Top level FileEntry should return itself as parent.");
|
||||||
@@ -425,7 +416,6 @@ var tests = [
|
|||||||
|
|
||||||
test_fileEntry,
|
test_fileEntry,
|
||||||
test_fileEntry_file,
|
test_fileEntry_file,
|
||||||
test_fileEntry_createWriter,
|
|
||||||
test_fileEntry_getParent,
|
test_fileEntry_getParent,
|
||||||
|
|
||||||
test_directoryEntry,
|
test_directoryEntry,
|
||||||
|
|||||||
@@ -9,11 +9,6 @@ callback interface FileCallback {
|
|||||||
};
|
};
|
||||||
|
|
||||||
interface FileSystemFileEntry : FileSystemEntry {
|
interface FileSystemFileEntry : FileSystemEntry {
|
||||||
// the successCallback should be a FileWriteCallback but this method is not
|
|
||||||
// implemented. ErrorCallback will be called with SecurityError.
|
|
||||||
void createWriter (VoidCallback successCallback,
|
|
||||||
optional ErrorCallback errorCallback);
|
|
||||||
|
|
||||||
[BinaryName="GetFile"]
|
[BinaryName="GetFile"]
|
||||||
void file (FileCallback successCallback,
|
void file (FileCallback successCallback,
|
||||||
optional ErrorCallback errorCallback);
|
optional ErrorCallback errorCallback);
|
||||||
|
|||||||
Reference in New Issue
Block a user