| 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.WebKit2WebExtension.Objects.Frame
Contents
Description
- newtype Frame = Frame (ManagedPtr Frame)
- class GObject o => IsFrame o
- toFrame :: (MonadIO m, IsFrame o) => o -> m Frame
- noFrame :: Maybe Frame
- frameGetJavascriptContextForScriptWorld :: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) => a -> b -> m GlobalContext
- frameGetJavascriptGlobalContext :: (HasCallStack, MonadIO m, IsFrame a) => a -> m GlobalContext
- frameGetUri :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Text
- frameIsMainFrame :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Bool
Exported types
Constructors
| Frame (ManagedPtr Frame) |
Methods
getJavascriptContextForScriptWorld
frameGetJavascriptContextForScriptWorld Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) | |
| => a |
|
| -> b |
|
| -> m GlobalContext | Returns: the JavaScript context of |
Gets the JavaScript execution context of frame for the given ScriptWorld.
Since: 2.2
getJavascriptGlobalContext
frameGetJavascriptGlobalContext Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFrame a) | |
| => a |
|
| -> m GlobalContext | Returns: the global JavaScript context of |
Gets the global JavaScript execution context. Use this function to bridge between the WebKit and JavaScriptCore APIs.
Since: 2.2
getUri
Arguments
| :: (HasCallStack, MonadIO m, IsFrame a) | |
| => a |
|
| -> m Text | Returns: the current active URI of |
Gets the current active URI of frame.
Since: 2.2