Bug 1755481: correct documentation of `nsIClipboard::getData`. r=mccr8

Before, it was confusing. One could have assumed that the method gets
the data for all flavors.

Differential Revision: https://phabricator.services.mozilla.com/D138776
This commit is contained in:
Mirko Brodesser 2022-02-16 15:38:27 +00:00
Родитель 07eb8a003f
Коммит 397f4fc254
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -33,11 +33,13 @@ interface nsIClipboard : nsISupports
in long aWhichClipboard ) ;
/**
* Given a transferable, get the clipboard data.
* Filters the flavors aTransferable can import (see
* `nsITransferable::flavorsTransferableCanImport`) and gets the data for the
* first flavor. That data is set for aTransferable.
*
* @param aTransferable The transferable
* @param aWhichClipboard Specifies the clipboard to which this operation applies.
* @result NS_Ok if no errors
* @result NS_OK if no errors
*/
void getData ( in nsITransferable aTransferable, in long aWhichClipboard ) ;