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 Frame = Frame (ManagedPtr Frame)
- class (GObject o, IsDescendantOf Frame o) => IsFrame o
- toFrame :: (MonadIO m, IsFrame o) => o -> m Frame
- noFrame :: Maybe Frame
- frameGetJsContext :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Context
- frameGetJsContextForScriptWorld :: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) => a -> b -> m Context
- frameGetJsValueForDomObject :: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b) => a -> b -> m Value
- frameGetJsValueForDomObjectInScriptWorld :: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b, IsScriptWorld c) => a -> b -> c -> m Value
- frameGetUri :: (HasCallStack, MonadIO m, IsFrame a) => a -> m (Maybe Text)
- frameIsMainFrame :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Bool
Exported types
Memory-managed wrapper type.
Instances
GObject Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame gobjectType :: IO GType | |
HasParentTypes Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame | |
type ParentTypes Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame |
class (GObject o, IsDescendantOf Frame o) => IsFrame o Source #
Instances
(GObject o, IsDescendantOf Frame o) => IsFrame o Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame |
Methods
getJsContext
:: (HasCallStack, MonadIO m, IsFrame a) | |
=> a |
|
-> m Context | Returns: the |
Get the JavaScript execution context of frame
. Use this function to bridge
between the WebKit and JavaScriptCore APIs.
Since: 2.22
getJsContextForScriptWorld
frameGetJsContextForScriptWorld Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) | |
=> a |
|
-> b |
|
-> m Context | Returns: the |
Get the JavaScript execution context of frame
for the given ScriptWorld
.
Since: 2.22
getJsValueForDomObject
frameGetJsValueForDomObject Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b) | |
=> a |
|
-> b |
|
-> m Value | Returns: the |
Get a Value
referencing the given DOM object. The value is created in the JavaScript execution
context of frame
.
Since: 2.22
getJsValueForDomObjectInScriptWorld
frameGetJsValueForDomObjectInScriptWorld Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b, IsScriptWorld c) | |
=> a |
|
-> b |
|
-> c |
|
-> m Value | Returns: the |
Get a Value
referencing the given DOM object. The value is created in the JavaScript execution
context of frame
for the given ScriptWorld
.
Since: 2.22
getUri
:: (HasCallStack, MonadIO m, IsFrame a) | |
=> a |
|
-> m (Maybe Text) | Returns: the current active URI of |
Gets the current active URI of frame
.
Since: 2.2