| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit.Objects.WebPolicyDecision
Contents
Description
WebPolicyDecision objects are given to the application on
signal emissions that deal with policy decisions, such as if a new
window should be opened, or if a given navigation should be
allowed. The application uses it to tell the engine what to do.
- newtype WebPolicyDecision = WebPolicyDecision (ManagedPtr WebPolicyDecision)
- class GObject o => IsWebPolicyDecision o
- toWebPolicyDecision :: (MonadIO m, IsWebPolicyDecision o) => o -> m WebPolicyDecision
- noWebPolicyDecision :: Maybe WebPolicyDecision
- webPolicyDecisionDownload :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) => a -> m ()
- webPolicyDecisionIgnore :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) => a -> m ()
- webPolicyDecisionUse :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) => a -> m ()
Exported types
newtype WebPolicyDecision Source #
Constructors
| WebPolicyDecision (ManagedPtr WebPolicyDecision) |
class GObject o => IsWebPolicyDecision o Source #
Instances
toWebPolicyDecision :: (MonadIO m, IsWebPolicyDecision o) => o -> m WebPolicyDecision Source #
Methods
download
webPolicyDecisionDownload Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) | |
| => a |
|
| -> m () |
Will send the DOWNLOAD decision to the policy implementer.
Since: 1.0.3
ignore
webPolicyDecisionIgnore Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) | |
| => a |
|
| -> m () |
Will send the IGNORE decision to the policy implementer.
Since: 1.0.3
use
Arguments
| :: (HasCallStack, MonadIO m, IsWebPolicyDecision a) | |
| => a |
|
| -> m () |
Will send the USE decision to the policy implementer.
Since: 1.0.3