mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Added additional methods to clipboard interfaces
This commit is contained in:
parent
99edb79fd2
commit
0e414be672
@ -44,6 +44,16 @@ class nsIClipboard : public nsISupports {
|
||||
|
||||
NS_IMETHOD SetTransferable(nsITransferable * aTransferable, nsIClipboardOwner * anOwner) = 0;
|
||||
|
||||
/**
|
||||
* Gets the transferable object from the clipboard,
|
||||
* it is used to get and set the data from the native clipboard
|
||||
*
|
||||
* @param aTransferable The transferable
|
||||
* @result NS_Ok if no errors
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetTransferable(nsITransferable ** aTransferable) = 0;
|
||||
|
||||
/**
|
||||
* Gets the data from the clipboard and put it into the transferable object
|
||||
*
|
||||
@ -70,6 +80,25 @@ class nsIClipboard : public nsISupports {
|
||||
|
||||
NS_IMETHOD IsDataFlavorSupported(nsIDataFlavor * aDataFlavor) = 0;
|
||||
|
||||
/**
|
||||
* This empties the clipboard and notifies the clipboard owner
|
||||
* This empties the "logical" clipboard it does not clear the native clipboard
|
||||
*
|
||||
* @result NS_OkK if successfull
|
||||
*/
|
||||
|
||||
NS_IMETHOD EmptyClipboard() = 0;
|
||||
|
||||
/**
|
||||
* Some platforms support deferred notification for putting data on the clipboard
|
||||
* This method forces the data onto the clipboard in its various formats
|
||||
* This may be used if the application going away.
|
||||
*
|
||||
* @result NS_OkK if successfull
|
||||
*/
|
||||
|
||||
NS_IMETHOD ForceDataToClipboard() = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -90,6 +90,13 @@ class nsITransferable : public nsISupports {
|
||||
*/
|
||||
NS_IMETHOD AddDataFlavor(const nsString & aMimeType, const nsString & aHumanPresentableName) = 0;
|
||||
|
||||
/**
|
||||
* Returns whether the data is large
|
||||
*
|
||||
* @return NS_OK is data set is larg, NS_ERROR_FAILURE if data set is small
|
||||
*/
|
||||
NS_IMETHOD IsLargeDataSet() = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user