5#ifndef MOLYBDEN_PERMISSIONS_DELEGATES_HPP
6#define MOLYBDEN_PERMISSIONS_DELEGATES_HPP
11#include "molybden/base/delegate.hpp"
12#include "molybden/base/delegate_action.hpp"
17enum class PermissionType;
45 std::unique_ptr<rpc::internal::Callback> callback);
The base API that implements classes which represent delegate's action.
Definition delegate_action.hpp:18
Delegates allow you to make decisions that affect the application behavior.
Definition delegate.hpp:30
A class that contains all permission delegates.
Definition permissions_delegates.hpp:71
Delegate< RequestPermissionArgs, RequestPermissionAction > onRequestPermission
Invoked when a web page requests a permission to enable some functionality such as geolocation or des...
Definition permissions_delegates.hpp:89
The PermissionsDelegates::onRequestPermission action.
Definition permissions_delegates.hpp:42
void ask()
Ask web browser to handle this permission request.
void deny()
Deny the requested permission.
void grant()
Grant the requested permission.
The PermissionsDelegates::onRequestPermission action arguments.
Definition permissions_delegates.hpp:22
PermissionType permission_type
The type of the requested permission.
Definition permissions_delegates.hpp:36
std::shared_ptr< Frame > frame
The frame that is requesting permission.
Definition permissions_delegates.hpp:26
std::string url
The URL of the currently loaded web page that is requesting permission.
Definition permissions_delegates.hpp:31