gi-webkit2webextension-4.0.12: 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

 

Synopsis

Exported types

newtype Frame Source #

Constructors

Frame (ManagedPtr Frame) 

Instances

GObject Frame Source # 

Methods

gobjectType :: Frame -> IO GType #

IsObject Frame Source # 
IsFrame Frame Source # 
((~) * info (ResolveFrameMethod t Frame), MethodInfo * info Frame p) => IsLabel t (Frame -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Frame -> p #

((~) * info (ResolveFrameMethod t Frame), MethodInfo * info Frame p) => IsLabelProxy t (Frame -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Frame -> p #

HasAttributeList * Frame Source # 
type AttributeList Frame Source # 
type SignalList Frame Source # 

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

data FrameGetUriMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsFrame a) => MethodInfo * FrameGetUriMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy FrameGetUriMethodInfo a -> signature -> s #

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

data FrameIsMainFrameMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsFrame a) => MethodInfo * FrameIsMainFrameMethodInfo a signature Source # 

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 a main frame of a WebPage

Since: 2.2