gi-webkit2webextension-4.0.23: WebKit2-WebExtension bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
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) 
Instances
GObject Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

Methods

gobjectType :: IO GType #

HasParentTypes Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

type ParentTypes Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

type ParentTypes Frame = Object ': ([] :: [Type])

class (GObject o, IsDescendantOf Frame o) => IsFrame o Source #

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

Instances
(GObject o, IsDescendantOf Frame o) => IsFrame o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

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

getJsContext

frameGetJsContext Source #

Arguments

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

frame: a Frame

-> m Context

Returns: the Context for the JavaScript execution context of frame.

Get the JavaScript execution context of frame. Use this function to bridge between the WebKit and JavaScriptCore APIs.

Since: 2.22

getJsContextForScriptWorld

frameGetJsContextForScriptWorld Source #

Arguments

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

frame: a Frame

-> b

world: a ScriptWorld

-> m Context

Returns: the Context for the JavaScript execution context of frame for world.

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

Since: 2.22

getJsValueForDomObject

frameGetJsValueForDomObject Source #

Arguments

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

frame: a Frame

-> b

domObject: a DOMObject

-> m Value

Returns: the Value referencing domObject.

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 #

Arguments

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

frame: a Frame

-> b

domObject: a DOMObject

-> c

world: a ScriptWorld

-> m Value

Returns: the Value referencing domObject

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

frameGetUri Source #

Arguments

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

frame: a Frame

-> m (Maybe 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