mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1298243 part 6. Remove the unused xpidl versions of DataTransfer.types and DataTransfer.getData. r=mystor
This commit is contained in:
parent
241a4d12eb
commit
668b8a8b2d
@ -356,23 +356,6 @@ DataTransfer::GetTypes(ErrorResult& aRv) const
|
||||
return types.forget();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DataTransfer::GetTypes(nsISupports** aTypes)
|
||||
{
|
||||
if (NS_WARN_IF(!aTypes)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
ErrorResult rv;
|
||||
RefPtr<DOMStringList> types = GetTypes(rv);
|
||||
if (NS_WARN_IF(rv.Failed())) {
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
types.forget(aTypes);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
DataTransfer::GetData(const nsAString& aFormat, nsAString& aData,
|
||||
const Maybe<nsIPrincipal*>& aSubjectPrincipal,
|
||||
@ -433,14 +416,6 @@ DataTransfer::GetData(const nsAString& aFormat, nsAString& aData,
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DataTransfer::GetData(const nsAString& aFormat, nsAString& aData)
|
||||
{
|
||||
ErrorResult rv;
|
||||
GetData(aFormat, aData, Some(nsContentUtils::SubjectPrincipal()), rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
DataTransfer::SetData(const nsAString& aFormat, const nsAString& aData,
|
||||
const Maybe<nsIPrincipal*>& aSubjectPrincipal,
|
||||
|
@ -66,19 +66,6 @@ interface nsIDOMDataTransfer : nsISupports
|
||||
*/
|
||||
readonly attribute nsIDOMFileList files;
|
||||
|
||||
/**
|
||||
* Holds a list of the format types of the data that is stored for the first
|
||||
* item, in the same order the data was added. An empty list will be
|
||||
* returned if no data was added.
|
||||
*/
|
||||
readonly attribute nsISupports types;
|
||||
|
||||
/**
|
||||
* Retrieves the data for a given format, or an empty string if data for
|
||||
* that format does not exist or the data transfer contains no data.
|
||||
*/
|
||||
DOMString getData(in DOMString format);
|
||||
|
||||
/**
|
||||
* Set the image to be used for dragging if a custom one is desired. Most of
|
||||
* the time, this would not be set, as a default image is created from the
|
||||
|
Loading…
Reference in New Issue
Block a user