gi-webkit2webextension-4.0.28: WebKit2-WebExtension bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.Frame

Description

A web page frame.

Each WebKitWebPage has at least one main frame, and can have any number of subframes.

Since: 2.26

Synopsis

Exported types

newtype Frame Source #

Memory-managed wrapper type.

Constructors

Frame (ManagedPtr Frame) 

Instances

Instances details
Eq Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

Methods

(==) :: Frame -> Frame -> Bool #

(/=) :: Frame -> Frame -> Bool #

GObject Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

ManagedPtrNewtype Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

Methods

toManagedPtr :: Frame -> ManagedPtr Frame

TypedObject Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

Methods

glibType :: IO GType

HasParentTypes Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

IsGValue (Maybe Frame) Source #

Convert Frame to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Frame -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Frame)

type ParentTypes Frame Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.Frame

type ParentTypes Frame = '[Object]

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

Instances details
(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.

Methods

getId

frameGetId Source #

Arguments

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

frame: a Frame

-> m Word64

Returns: the identifier of frame

Gets the process-unique identifier of this Frame. No other frame in the same web process will have the same ID; however, frames in other web processes may.

Since: 2.26

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