|
MōBrowser API
|
The PermissionsDelegates::onRequestPermission action. More...
#include <permissions_delegates.hpp>
Public Member Functions | |
| RequestPermissionAction (std::unique_ptr< rpc::internal::Callback > callback) | |
| void | grant () |
| Grant the requested permission. | |
| void | deny () |
| Deny the requested permission. | |
| void | ask () |
| Ask web browser to handle this permission request. | |
Public Member Functions inherited from mobrowser::Action | |
| Action (std::unique_ptr< rpc::internal::Callback > callback) | |
Additional Inherited Members | |
Protected Attributes inherited from mobrowser::Action | |
| std::unique_ptr< rpc::internal::Callback > | callback_ |
The PermissionsDelegates::onRequestPermission action.
| void mobrowser::RequestPermissionAction::ask | ( | ) |
Ask web browser to handle this permission request.
If the permission is requested for the first time for the currently loaded web page, a prompt dialog will be shown. The end user should decide whether grant the web page with the requested permissions or not. The decision will be remembered and used the next time the web page requests the permissions again.