mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061055 - Move CheckPermissions into methods of NfcManager. r=allstarschh, r=smaug
This commit is contained in:
parent
154aca75b7
commit
8ea794899a
@ -13,31 +13,37 @@ interface MozNFCManager {
|
||||
* Returns success if given manifestUrl is registered for 'onpeerready',
|
||||
* otherwise error
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
DOMRequest checkP2PRegistration(DOMString manifestUrl);
|
||||
|
||||
/**
|
||||
* Notify that user has accepted to share nfc message on P2P UI
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
void notifyUserAcceptedP2P(DOMString manifestUrl);
|
||||
|
||||
/**
|
||||
* Notify the status of sendFile operation
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
void notifySendFileStatus(octet status, DOMString requestId);
|
||||
|
||||
/**
|
||||
* Power on the NFC hardware and start polling for NFC tags or devices.
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
DOMRequest startPoll();
|
||||
|
||||
/**
|
||||
* Stop polling for NFC tags or devices. i.e. enter low power mode.
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
DOMRequest stopPoll();
|
||||
|
||||
/**
|
||||
* Power off the NFC hardware.
|
||||
*/
|
||||
[CheckPermissions="nfc-manager"]
|
||||
DOMRequest powerOff();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user