Bug 1061055 - Move CheckPermissions into methods of NfcManager. r=allstarschh, r=smaug

This commit is contained in:
Kamil Leszczuk 2014-09-01 05:45:00 -04:00
parent 154aca75b7
commit 8ea794899a

View File

@ -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();
};