new PermissionManager()
Handle Web API permissions such as geolocation, getUserMedia
.Handle Web API permissions such as geolocation, getUserMedia
- Source:
Requires:
- module:Applications
Requires
- module:Applications
Methods
cancelRequest()
Cancels a request with a specfied id.
Cancels a request with a specfied id. Request can either be currently showing, or pending. If there are further pending requests, the next is shown.
- Source:
cleanDialog()
Reset current values
.Reset current values
- Source:
clickHandler()
Event listener function for the yes/no buttons.
Event listener function for the yes/no buttons.
- Source:
deviceOptionView()
Returns the view for each device option.
Returns the view for each device option.
- Source:
discardPermissionRequest()
Clean current request queue and send refuse permission request message to gecko
.Clean current request queue and send refuse permission request message to gecko
- Source:
dispatchResponse()
Send permission choice to gecko
.Send permission choice to gecko
- Source:
getStrings()
Request all strings to show
.Request all strings to show
- Source:
handleEvent(evt)
Event handler interface for mozChromeEvent.
Event handler interface for mozChromeEvent.
Parameters:
Name | Type | Description |
---|---|---|
evt |
DOMEvent | The event. |
- Source:
handleFullscreenOriginChange(detail)
Show the request for the new domain
.Show the request for the new domain
Parameters:
Name | Type | Description |
---|---|---|
detail |
Object | The event detail object. |
- Source:
handlePermissionPrompt(detail)
Prepare for permission prompt
.Prepare for permission prompt
Parameters:
Name | Type | Description |
---|---|---|
detail |
Object | The event detail object. |
- Source:
hidePermissionPrompt()
Hide prompt
.Hide prompt
- Source:
listDeviceOptions()
Form the media source selection list
.Form the media source selection list
- Source:
optionClickhandler(evt)
Handle getUserMedia device select options
.Handle getUserMedia device select options
Parameters:
Name | Type | Description |
---|---|---|
evt |
DOMEvent | The event. |
- Source:
queuePrompt()
Queue or show the permission prompt
.Queue or show the permission prompt
- Source:
showNextPendingRequest()
Show the next request, if we have one.
Show the next request, if we have one.
- Source:
showPermissionPrompt()
Put the message in the dialog.
Put the message in the dialog.
- Source:
start()
start the PermissionManager to init variables and listeners
.start the PermissionManager to init variables and listeners
- Source:
stop()
stop the PermissionManager to reset variables and listeners
.stop the PermissionManager to reset variables and listeners
- Source: