Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype AutomationSession = AutomationSession (ManagedPtr AutomationSession)
- class (GObject o, IsDescendantOf AutomationSession o) => IsAutomationSession o
- toAutomationSession :: (MonadIO m, IsAutomationSession o) => o -> m AutomationSession
- noAutomationSession :: Maybe AutomationSession
- automationSessionGetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m (Maybe ApplicationInfo)
- automationSessionGetId :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m Text
- automationSessionSetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> ApplicationInfo -> m ()
- constructAutomationSessionId :: IsAutomationSession o => Text -> IO (GValueConstruct o)
- getAutomationSessionId :: (MonadIO m, IsAutomationSession o) => o -> m Text
- type AutomationSessionCreateWebViewCallback = IO WebView
- type C_AutomationSessionCreateWebViewCallback = Ptr () -> Ptr () -> IO (Ptr WebView)
- afterAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId
- genClosure_AutomationSessionCreateWebView :: MonadIO m => AutomationSessionCreateWebViewCallback -> m (GClosure C_AutomationSessionCreateWebViewCallback)
- mk_AutomationSessionCreateWebViewCallback :: C_AutomationSessionCreateWebViewCallback -> IO (FunPtr C_AutomationSessionCreateWebViewCallback)
- noAutomationSessionCreateWebViewCallback :: Maybe AutomationSessionCreateWebViewCallback
- onAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId
- wrap_AutomationSessionCreateWebViewCallback :: AutomationSessionCreateWebViewCallback -> C_AutomationSessionCreateWebViewCallback
Exported types
newtype AutomationSession Source #
Memory-managed wrapper type.
Instances
GObject AutomationSession Source # | |
Defined in GI.WebKit2.Objects.AutomationSession gobjectType :: IO GType # | |
HasParentTypes AutomationSession Source # | |
Defined in GI.WebKit2.Objects.AutomationSession | |
type ParentTypes AutomationSession Source # | |
Defined in GI.WebKit2.Objects.AutomationSession |
class (GObject o, IsDescendantOf AutomationSession o) => IsAutomationSession o Source #
Type class for types which can be safely cast to AutomationSession
, for instance with toAutomationSession
.
Instances
(GObject o, IsDescendantOf AutomationSession o) => IsAutomationSession o Source # | |
Defined in GI.WebKit2.Objects.AutomationSession |
toAutomationSession :: (MonadIO m, IsAutomationSession o) => o -> m AutomationSession Source #
Cast to AutomationSession
, for types for which this is known to be safe. For general casts, use castTo
.
noAutomationSession :: Maybe AutomationSession Source #
A convenience alias for Nothing
:: Maybe
AutomationSession
.
Methods
getApplicationInfo
automationSessionGetApplicationInfo Source #
:: (HasCallStack, MonadIO m, IsAutomationSession a) | |
=> a |
|
-> m (Maybe ApplicationInfo) | Returns: the |
Get the AutomationSession
previously set with automationSessionSetApplicationInfo
.
Since: 2.18
getId
automationSessionGetId Source #
:: (HasCallStack, MonadIO m, IsAutomationSession a) | |
=> a |
|
-> m Text | Returns: the unique identifier of |
Get the unique identifier of a AutomationSession
Since: 2.18
setApplicationInfo
automationSessionSetApplicationInfo Source #
:: (HasCallStack, MonadIO m, IsAutomationSession a) | |
=> a |
|
-> ApplicationInfo |
|
-> m () |
Set the application information to session
. This information will be used by the driver service
to match the requested capabilities with the actual application information. If this information
is not provided to the session when a new automation session is requested, the creation might fail
if the client requested a specific browser name or version. This will not have any effect when called
after the automation session has been fully created, so this must be called in the callback of
WebContext
::automation-started
signal.
Since: 2.18
Properties
id
The session unique identifier.
Since: 2.18
constructAutomationSessionId :: IsAutomationSession o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “id
” property. This is rarely needed directly, but it is used by new
.
getAutomationSessionId :: (MonadIO m, IsAutomationSession o) => o -> m Text Source #
Get the value of the “id
” property.
When overloading is enabled, this is equivalent to
get
automationSession #id
Signals
createWebView
type AutomationSessionCreateWebViewCallback Source #
This signal is emitted when the automation client requests a new
browsing context to interact with it. The callback handler should
return a WebView
created with WebView
:is-controlled-by-automation
construct property enabled. The returned WebView
could be an existing
web view or a new one created and added to a new tab or window.
Since: 2.18
type C_AutomationSessionCreateWebViewCallback = Ptr () -> Ptr () -> IO (Ptr WebView) Source #
Type for the callback on the (unwrapped) C side.
afterAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId Source #
Connect a signal handler for the “create-web-view
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
automationSession #createWebView callback
genClosure_AutomationSessionCreateWebView :: MonadIO m => AutomationSessionCreateWebViewCallback -> m (GClosure C_AutomationSessionCreateWebViewCallback) Source #
Wrap the callback into a GClosure
.
mk_AutomationSessionCreateWebViewCallback :: C_AutomationSessionCreateWebViewCallback -> IO (FunPtr C_AutomationSessionCreateWebViewCallback) Source #
Generate a function pointer callable from C code, from a C_AutomationSessionCreateWebViewCallback
.
noAutomationSessionCreateWebViewCallback :: Maybe AutomationSessionCreateWebViewCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AutomationSessionCreateWebViewCallback
onAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId Source #
Connect a signal handler for the “create-web-view
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
automationSession #createWebView callback