gi-webkit2webextension-4.0.16: WebKit2-WebExtension bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.Frame

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Frame Source #

Memory-managed wrapper type.

Constructors

Frame (ManagedPtr Frame) 

class GObject o => IsFrame o Source #

Type class for types which can be safely cast to Frame, for instance with toFrame.

toFrame :: (MonadIO m, IsFrame o) => o -> m Frame Source #

Cast to Frame, for types for which this is known to be safe. For general casts, use castTo.

noFrame :: Maybe Frame Source #

A convenience alias for Nothing :: Maybe Frame.

Methods

getJavascriptContextForScriptWorld

frameGetJavascriptContextForScriptWorld Source #

Arguments

:: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) 
=> a

frame: a Frame

-> b

world: a ScriptWorld

-> m GlobalContext

Returns: the JavaScript context of frame for world

Gets the JavaScript execution context of frame for the given ScriptWorld.

Since: 2.2

getJavascriptGlobalContext

frameGetJavascriptGlobalContext Source #

Arguments

:: (HasCallStack, MonadIO m, IsFrame a) 
=> a

frame: a Frame

-> m GlobalContext

Returns: the global JavaScript context of frame

Gets the global JavaScript execution context. Use this function to bridge between the WebKit and JavaScriptCore APIs.

Since: 2.2

getUri

frameGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsFrame a) 
=> a

frame: a Frame

-> m Text

Returns: the current active URI of frame or Nothing if nothing has been loaded yet.

Gets the current active URI of frame.

Since: 2.2

isMainFrame

frameIsMainFrame Source #

Arguments

:: (HasCallStack, MonadIO m, IsFrame a) 
=> a

frame: a Frame

-> m Bool

Returns: True if frame is a main frame or False otherwise

Gets whether frame is the main frame of a WebPage

Since: 2.2