webkit-0.11.0: Binding to the Webkit library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.WebKit.WebInspector

Contents

Description

Access to the WebKit Inspector

Synopsis

Types

Methods

webInspectorGetInspectedUri :: WebInspectorClass self => self -> IO StringSource

Obtains the URI that is currently being inspected

webInspectorGetWebView :: WebInspectorClass self => self -> IO (Maybe WebView)Source

Obtains the WebView that is used to render the WebInspector.

The WebView instance is created by the application, by handling the inspect-web-view signal. This means that it may return Nothing if the user hasn't inspected anything

Attribute

webInspectorInspectedUri :: WebInspectorClass self => ReadAttr self StringSource

The URI that is currently being inspected.

webInspectorJSProfilingEnable :: WebInspectorClass self => Attr self BoolSource

This is enabling JavaScript profiling in the Inspector. This means that Console.profiles will return the profiles.

webInspectorWebView :: WebInspectorClass self => ReadAttr self WebViewSource

The Web View that renders the Web Inspector itself.

Signals

attachWindow :: WebInspectorClass self => Signal self (IO Bool)Source

Emitted when the inspector should appear in a separate window

return True if the signal is handled

detachWindow :: WebInspectorClass self => Signal self (IO Bool)Source

Emitted when the inspector should appear in a separate window.

return True if the signal has been handled

closeWindow :: WebInspectorClass self => Signal self (IO Bool)Source

Emitted when the inspector window should be closed.

return True if the signal is handled.

showWindow :: WebInspectorClass self => Signal self (IO Bool)Source

Emitted when the inspector window should be displayed. Notice that the window must have been created already by handling inspectWebView.

return True if the signal has been handled

finished :: WebInspectorClass self => Signal self (IO ())Source

Emitted when the inspection is done. You should release your references on the inspector at this time. The inspected WebView may no longer exist when this signal is emitted.

inspectWebView :: WebInspectorClass self => Signal self (WebView -> IO WebView)Source

Emitted when the user activates the inspect context menu item to inspect a web view. The application which is interested in the inspector should create a window, or otherwise add the WebView it creates to an existing window.

You don't need to handle the reference count of the WebView instance you create; the widget to which you add it will do that.