Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- canExecuteEditingCommand
- canExecuteEditingCommandFinish
- canGoBack
- canGoForward
- canShowMimeType
- downloadUri
- executeEditingCommand
- executeEditingCommandWithArgument
- getBackForwardList
- getBackgroundColor
- getContext
- getCustomCharset
- getEditorState
- getEstimatedLoadProgress
- getFavicon
- getFindController
- getInspector
- getJavascriptGlobalContext
- getMainResource
- getPageId
- getSessionState
- getSettings
- getSnapshot
- getSnapshotFinish
- getTitle
- getTlsInfo
- getUri
- getUserContentManager
- getWebsiteDataManager
- getWindowProperties
- getZoomLevel
- goBack
- goForward
- goToBackForwardListItem
- isEditable
- isEphemeral
- isLoading
- isPlayingAudio
- loadAlternateHtml
- loadBytes
- loadHtml
- loadPlainText
- loadRequest
- loadUri
- new
- newWithContext
- newWithRelatedView
- newWithSettings
- newWithUserContentManager
- reload
- reloadBypassCache
- restoreSessionState
- runJavascript
- runJavascriptFinish
- runJavascriptFromGresource
- runJavascriptFromGresourceFinish
- save
- saveFinish
- saveToFile
- saveToFileFinish
- setBackgroundColor
- setCustomCharset
- setEditable
- setSettings
- setZoomLevel
- stopLoading
- tryClose
- Properties
- Signals
- authenticate
- close
- contextMenu
- contextMenuDismissed
- create
- decidePolicy
- enterFullscreen
- insecureContentDetected
- leaveFullscreen
- loadChanged
- loadFailed
- loadFailedWithTlsErrors
- mouseTargetChanged
- permissionRequest
- readyToShow
- resourceLoadStarted
- runAsModal
- runColorChooser
- runFileChooser
- scriptDialog
- showNotification
- submitForm
- webProcessCrashed
- newtype WebView = WebView (ManagedPtr WebView)
- class GObject o => IsWebView o
- toWebView :: (MonadIO m, IsWebView o) => o -> m WebView
- noWebView :: Maybe WebView
- webViewCanExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- webViewCanExecuteEditingCommandFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
- webViewCanGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewCanGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewCanShowMimeType :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Bool
- webViewDownloadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Download
- webViewExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- webViewExecuteEditingCommandWithArgument :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> m ()
- webViewGetBackForwardList :: (HasCallStack, MonadIO m, IsWebView a) => a -> m BackForwardList
- webViewGetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> m RGBA
- webViewGetContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebContext
- webViewGetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
- webViewGetEditorState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m EditorState
- webViewGetEstimatedLoadProgress :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
- webViewGetFavicon :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Surface
- webViewGetFindController :: (HasCallStack, MonadIO m, IsWebView a) => a -> m FindController
- webViewGetInspector :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebInspector
- webViewGetJavascriptGlobalContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m GlobalContext
- webViewGetMainResource :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebResource
- webViewGetPageId :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Word64
- webViewGetSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebViewSessionState
- webViewGetSettings :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Settings
- webViewGetSnapshot :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SnapshotRegion -> [SnapshotOptions] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- webViewGetSnapshotFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Surface
- webViewGetTitle :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
- webViewGetTlsInfo :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Bool, TlsCertificate, [TlsCertificateFlags])
- webViewGetUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe Text)
- webViewGetUserContentManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m UserContentManager
- webViewGetWebsiteDataManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebsiteDataManager
- webViewGetWindowProperties :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WindowProperties
- webViewGetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
- webViewGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- webViewGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- webViewGoToBackForwardListItem :: (HasCallStack, MonadIO m, IsWebView a, IsBackForwardListItem b) => a -> b -> m ()
- webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewIsEphemeral :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewIsLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewIsPlayingAudio :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- webViewLoadAlternateHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> Maybe Text -> m ()
- webViewLoadBytes :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bytes -> Maybe Text -> Maybe Text -> Maybe Text -> m ()
- webViewLoadHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Maybe Text -> m ()
- webViewLoadPlainText :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- webViewLoadRequest :: (HasCallStack, MonadIO m, IsWebView a, IsURIRequest b) => a -> b -> m ()
- webViewLoadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- webViewNew :: (HasCallStack, MonadIO m) => m WebView
- webViewNewWithContext :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m WebView
- webViewNewWithRelatedView :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Widget
- webViewNewWithSettings :: (HasCallStack, MonadIO m, IsSettings a) => a -> m WebView
- webViewNewWithUserContentManager :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m WebView
- webViewReload :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- webViewReloadBypassCache :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- webViewRestoreSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> WebViewSessionState -> m ()
- webViewRunJavascript :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- webViewRunJavascriptFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
- webViewRunJavascriptFromGresource :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- webViewRunJavascriptFromGresourceFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
- webViewSave :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SaveMode -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- webViewSaveFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m InputStream
- webViewSaveToFile :: (HasCallStack, MonadIO m, IsWebView a, IsFile b, IsCancellable c) => a -> b -> SaveMode -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- webViewSaveToFileFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
- webViewSetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> RGBA -> m ()
- webViewSetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> Maybe Text -> m ()
- webViewSetEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bool -> m ()
- webViewSetSettings :: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) => a -> b -> m ()
- webViewSetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> Double -> m ()
- webViewStopLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- webViewTryClose :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- constructWebViewEditable :: IsWebView o => Bool -> IO (GValueConstruct o)
- getWebViewEditable :: (MonadIO m, IsWebView o) => o -> m Bool
- setWebViewEditable :: (MonadIO m, IsWebView o) => o -> Bool -> m ()
- getWebViewEstimatedLoadProgress :: (MonadIO m, IsWebView o) => o -> m Double
- getWebViewFavicon :: (MonadIO m, IsWebView o) => o -> m (Ptr ())
- constructWebViewIsEphemeral :: IsWebView o => Bool -> IO (GValueConstruct o)
- getWebViewIsEphemeral :: (MonadIO m, IsWebView o) => o -> m Bool
- getWebViewIsLoading :: (MonadIO m, IsWebView o) => o -> m Bool
- getWebViewIsPlayingAudio :: (MonadIO m, IsWebView o) => o -> m Bool
- constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o)
- constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o)
- setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m ()
- getWebViewTitle :: (MonadIO m, IsWebView o) => o -> m Text
- getWebViewUri :: (MonadIO m, IsWebView o) => o -> m (Maybe Text)
- constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o)
- getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager
- constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o)
- getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext)
- constructWebViewZoomLevel :: IsWebView o => Double -> IO (GValueConstruct o)
- getWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> m Double
- setWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> Double -> m ()
- type C_WebViewAuthenticateCallback = Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt
- type WebViewAuthenticateCallback = AuthenticationRequest -> IO Bool
- afterWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId
- genClosure_WebViewAuthenticate :: WebViewAuthenticateCallback -> IO Closure
- mk_WebViewAuthenticateCallback :: C_WebViewAuthenticateCallback -> IO (FunPtr C_WebViewAuthenticateCallback)
- noWebViewAuthenticateCallback :: Maybe WebViewAuthenticateCallback
- onWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId
- wrap_WebViewAuthenticateCallback :: WebViewAuthenticateCallback -> Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt
- type C_WebViewCloseCallback = Ptr () -> Ptr () -> IO ()
- type WebViewCloseCallback = IO ()
- afterWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId
- genClosure_WebViewClose :: WebViewCloseCallback -> IO Closure
- mk_WebViewCloseCallback :: C_WebViewCloseCallback -> IO (FunPtr C_WebViewCloseCallback)
- noWebViewCloseCallback :: Maybe WebViewCloseCallback
- onWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId
- wrap_WebViewCloseCallback :: WebViewCloseCallback -> Ptr () -> Ptr () -> IO ()
- type C_WebViewContextMenuCallback = Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt
- type WebViewContextMenuCallback = ContextMenu -> Event -> HitTestResult -> IO Bool
- afterWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId
- genClosure_WebViewContextMenu :: WebViewContextMenuCallback -> IO Closure
- mk_WebViewContextMenuCallback :: C_WebViewContextMenuCallback -> IO (FunPtr C_WebViewContextMenuCallback)
- noWebViewContextMenuCallback :: Maybe WebViewContextMenuCallback
- onWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId
- wrap_WebViewContextMenuCallback :: WebViewContextMenuCallback -> Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt
- type C_WebViewContextMenuDismissedCallback = Ptr () -> Ptr () -> IO ()
- type WebViewContextMenuDismissedCallback = IO ()
- afterWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId
- genClosure_WebViewContextMenuDismissed :: WebViewContextMenuDismissedCallback -> IO Closure
- mk_WebViewContextMenuDismissedCallback :: C_WebViewContextMenuDismissedCallback -> IO (FunPtr C_WebViewContextMenuDismissedCallback)
- noWebViewContextMenuDismissedCallback :: Maybe WebViewContextMenuDismissedCallback
- onWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId
- wrap_WebViewContextMenuDismissedCallback :: WebViewContextMenuDismissedCallback -> Ptr () -> Ptr () -> IO ()
- type C_WebViewCreateCallback = Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget)
- type WebViewCreateCallback = NavigationAction -> IO Widget
- afterWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId
- genClosure_WebViewCreate :: WebViewCreateCallback -> IO Closure
- mk_WebViewCreateCallback :: C_WebViewCreateCallback -> IO (FunPtr C_WebViewCreateCallback)
- noWebViewCreateCallback :: Maybe WebViewCreateCallback
- onWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId
- wrap_WebViewCreateCallback :: WebViewCreateCallback -> Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget)
- type C_WebViewDecidePolicyCallback = Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt
- type WebViewDecidePolicyCallback = PolicyDecision -> PolicyDecisionType -> IO Bool
- afterWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId
- genClosure_WebViewDecidePolicy :: WebViewDecidePolicyCallback -> IO Closure
- mk_WebViewDecidePolicyCallback :: C_WebViewDecidePolicyCallback -> IO (FunPtr C_WebViewDecidePolicyCallback)
- noWebViewDecidePolicyCallback :: Maybe WebViewDecidePolicyCallback
- onWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId
- wrap_WebViewDecidePolicyCallback :: WebViewDecidePolicyCallback -> Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt
- type C_WebViewEnterFullscreenCallback = Ptr () -> Ptr () -> IO CInt
- type WebViewEnterFullscreenCallback = IO Bool
- afterWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId
- genClosure_WebViewEnterFullscreen :: WebViewEnterFullscreenCallback -> IO Closure
- mk_WebViewEnterFullscreenCallback :: C_WebViewEnterFullscreenCallback -> IO (FunPtr C_WebViewEnterFullscreenCallback)
- noWebViewEnterFullscreenCallback :: Maybe WebViewEnterFullscreenCallback
- onWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId
- wrap_WebViewEnterFullscreenCallback :: WebViewEnterFullscreenCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WebViewInsecureContentDetectedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WebViewInsecureContentDetectedCallback = InsecureContentEvent -> IO ()
- afterWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId
- genClosure_WebViewInsecureContentDetected :: WebViewInsecureContentDetectedCallback -> IO Closure
- mk_WebViewInsecureContentDetectedCallback :: C_WebViewInsecureContentDetectedCallback -> IO (FunPtr C_WebViewInsecureContentDetectedCallback)
- noWebViewInsecureContentDetectedCallback :: Maybe WebViewInsecureContentDetectedCallback
- onWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId
- wrap_WebViewInsecureContentDetectedCallback :: WebViewInsecureContentDetectedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WebViewLeaveFullscreenCallback = Ptr () -> Ptr () -> IO CInt
- type WebViewLeaveFullscreenCallback = IO Bool
- afterWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId
- genClosure_WebViewLeaveFullscreen :: WebViewLeaveFullscreenCallback -> IO Closure
- mk_WebViewLeaveFullscreenCallback :: C_WebViewLeaveFullscreenCallback -> IO (FunPtr C_WebViewLeaveFullscreenCallback)
- noWebViewLeaveFullscreenCallback :: Maybe WebViewLeaveFullscreenCallback
- onWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId
- wrap_WebViewLeaveFullscreenCallback :: WebViewLeaveFullscreenCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WebViewLoadChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WebViewLoadChangedCallback = LoadEvent -> IO ()
- afterWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId
- genClosure_WebViewLoadChanged :: WebViewLoadChangedCallback -> IO Closure
- mk_WebViewLoadChangedCallback :: C_WebViewLoadChangedCallback -> IO (FunPtr C_WebViewLoadChangedCallback)
- noWebViewLoadChangedCallback :: Maybe WebViewLoadChangedCallback
- onWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId
- wrap_WebViewLoadChangedCallback :: WebViewLoadChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WebViewLoadFailedCallback = Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt
- type WebViewLoadFailedCallback = LoadEvent -> Text -> GError -> IO Bool
- afterWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId
- genClosure_WebViewLoadFailed :: WebViewLoadFailedCallback -> IO Closure
- mk_WebViewLoadFailedCallback :: C_WebViewLoadFailedCallback -> IO (FunPtr C_WebViewLoadFailedCallback)
- noWebViewLoadFailedCallback :: Maybe WebViewLoadFailedCallback
- onWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId
- wrap_WebViewLoadFailedCallback :: WebViewLoadFailedCallback -> Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt
- type C_WebViewLoadFailedWithTlsErrorsCallback = Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt
- type WebViewLoadFailedWithTlsErrorsCallback = Text -> TlsCertificate -> [TlsCertificateFlags] -> IO Bool
- afterWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId
- genClosure_WebViewLoadFailedWithTlsErrors :: WebViewLoadFailedWithTlsErrorsCallback -> IO Closure
- mk_WebViewLoadFailedWithTlsErrorsCallback :: C_WebViewLoadFailedWithTlsErrorsCallback -> IO (FunPtr C_WebViewLoadFailedWithTlsErrorsCallback)
- noWebViewLoadFailedWithTlsErrorsCallback :: Maybe WebViewLoadFailedWithTlsErrorsCallback
- onWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId
- wrap_WebViewLoadFailedWithTlsErrorsCallback :: WebViewLoadFailedWithTlsErrorsCallback -> Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt
- type C_WebViewMouseTargetChangedCallback = Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO ()
- type WebViewMouseTargetChangedCallback = HitTestResult -> Word32 -> IO ()
- afterWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId
- genClosure_WebViewMouseTargetChanged :: WebViewMouseTargetChangedCallback -> IO Closure
- mk_WebViewMouseTargetChangedCallback :: C_WebViewMouseTargetChangedCallback -> IO (FunPtr C_WebViewMouseTargetChangedCallback)
- noWebViewMouseTargetChangedCallback :: Maybe WebViewMouseTargetChangedCallback
- onWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId
- wrap_WebViewMouseTargetChangedCallback :: WebViewMouseTargetChangedCallback -> Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO ()
- type C_WebViewPermissionRequestCallback = Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt
- type WebViewPermissionRequestCallback = PermissionRequest -> IO Bool
- afterWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId
- genClosure_WebViewPermissionRequest :: WebViewPermissionRequestCallback -> IO Closure
- mk_WebViewPermissionRequestCallback :: C_WebViewPermissionRequestCallback -> IO (FunPtr C_WebViewPermissionRequestCallback)
- noWebViewPermissionRequestCallback :: Maybe WebViewPermissionRequestCallback
- onWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId
- wrap_WebViewPermissionRequestCallback :: WebViewPermissionRequestCallback -> Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt
- type C_WebViewPrintCallback = Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt
- type WebViewPrintCallback = PrintOperation -> IO Bool
- afterWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId
- genClosure_WebViewPrint :: WebViewPrintCallback -> IO Closure
- mk_WebViewPrintCallback :: C_WebViewPrintCallback -> IO (FunPtr C_WebViewPrintCallback)
- noWebViewPrintCallback :: Maybe WebViewPrintCallback
- onWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId
- wrap_WebViewPrintCallback :: WebViewPrintCallback -> Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt
- type C_WebViewReadyToShowCallback = Ptr () -> Ptr () -> IO ()
- type WebViewReadyToShowCallback = IO ()
- afterWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId
- genClosure_WebViewReadyToShow :: WebViewReadyToShowCallback -> IO Closure
- mk_WebViewReadyToShowCallback :: C_WebViewReadyToShowCallback -> IO (FunPtr C_WebViewReadyToShowCallback)
- noWebViewReadyToShowCallback :: Maybe WebViewReadyToShowCallback
- onWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId
- wrap_WebViewReadyToShowCallback :: WebViewReadyToShowCallback -> Ptr () -> Ptr () -> IO ()
- type C_WebViewResourceLoadStartedCallback = Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO ()
- type WebViewResourceLoadStartedCallback = WebResource -> URIRequest -> IO ()
- afterWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId
- genClosure_WebViewResourceLoadStarted :: WebViewResourceLoadStartedCallback -> IO Closure
- mk_WebViewResourceLoadStartedCallback :: C_WebViewResourceLoadStartedCallback -> IO (FunPtr C_WebViewResourceLoadStartedCallback)
- noWebViewResourceLoadStartedCallback :: Maybe WebViewResourceLoadStartedCallback
- onWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId
- wrap_WebViewResourceLoadStartedCallback :: WebViewResourceLoadStartedCallback -> Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO ()
- type C_WebViewRunAsModalCallback = Ptr () -> Ptr () -> IO ()
- type WebViewRunAsModalCallback = IO ()
- afterWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId
- genClosure_WebViewRunAsModal :: WebViewRunAsModalCallback -> IO Closure
- mk_WebViewRunAsModalCallback :: C_WebViewRunAsModalCallback -> IO (FunPtr C_WebViewRunAsModalCallback)
- noWebViewRunAsModalCallback :: Maybe WebViewRunAsModalCallback
- onWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId
- wrap_WebViewRunAsModalCallback :: WebViewRunAsModalCallback -> Ptr () -> Ptr () -> IO ()
- type C_WebViewRunColorChooserCallback = Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt
- type WebViewRunColorChooserCallback = ColorChooserRequest -> IO Bool
- afterWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId
- genClosure_WebViewRunColorChooser :: WebViewRunColorChooserCallback -> IO Closure
- mk_WebViewRunColorChooserCallback :: C_WebViewRunColorChooserCallback -> IO (FunPtr C_WebViewRunColorChooserCallback)
- noWebViewRunColorChooserCallback :: Maybe WebViewRunColorChooserCallback
- onWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId
- wrap_WebViewRunColorChooserCallback :: WebViewRunColorChooserCallback -> Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt
- type C_WebViewRunFileChooserCallback = Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt
- type WebViewRunFileChooserCallback = FileChooserRequest -> IO Bool
- afterWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId
- genClosure_WebViewRunFileChooser :: WebViewRunFileChooserCallback -> IO Closure
- mk_WebViewRunFileChooserCallback :: C_WebViewRunFileChooserCallback -> IO (FunPtr C_WebViewRunFileChooserCallback)
- noWebViewRunFileChooserCallback :: Maybe WebViewRunFileChooserCallback
- onWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId
- wrap_WebViewRunFileChooserCallback :: WebViewRunFileChooserCallback -> Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt
- type C_WebViewScriptDialogCallback = Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt
- type WebViewScriptDialogCallback = ScriptDialog -> IO Bool
- afterWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId
- genClosure_WebViewScriptDialog :: WebViewScriptDialogCallback -> IO Closure
- mk_WebViewScriptDialogCallback :: C_WebViewScriptDialogCallback -> IO (FunPtr C_WebViewScriptDialogCallback)
- noWebViewScriptDialogCallback :: Maybe WebViewScriptDialogCallback
- onWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId
- wrap_WebViewScriptDialogCallback :: WebViewScriptDialogCallback -> Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt
- type C_WebViewShowNotificationCallback = Ptr () -> Ptr Notification -> Ptr () -> IO CInt
- type WebViewShowNotificationCallback = Notification -> IO Bool
- afterWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId
- genClosure_WebViewShowNotification :: WebViewShowNotificationCallback -> IO Closure
- mk_WebViewShowNotificationCallback :: C_WebViewShowNotificationCallback -> IO (FunPtr C_WebViewShowNotificationCallback)
- noWebViewShowNotificationCallback :: Maybe WebViewShowNotificationCallback
- onWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId
- wrap_WebViewShowNotificationCallback :: WebViewShowNotificationCallback -> Ptr () -> Ptr Notification -> Ptr () -> IO CInt
- type C_WebViewSubmitFormCallback = Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO ()
- type WebViewSubmitFormCallback = FormSubmissionRequest -> IO ()
- afterWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId
- genClosure_WebViewSubmitForm :: WebViewSubmitFormCallback -> IO Closure
- mk_WebViewSubmitFormCallback :: C_WebViewSubmitFormCallback -> IO (FunPtr C_WebViewSubmitFormCallback)
- noWebViewSubmitFormCallback :: Maybe WebViewSubmitFormCallback
- onWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId
- wrap_WebViewSubmitFormCallback :: WebViewSubmitFormCallback -> Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO ()
- type C_WebViewWebProcessCrashedCallback = Ptr () -> Ptr () -> IO CInt
- type WebViewWebProcessCrashedCallback = IO Bool
- afterWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId
- genClosure_WebViewWebProcessCrashed :: WebViewWebProcessCrashedCallback -> IO Closure
- mk_WebViewWebProcessCrashedCallback :: C_WebViewWebProcessCrashedCallback -> IO (FunPtr C_WebViewWebProcessCrashedCallback)
- noWebViewWebProcessCrashedCallback :: Maybe WebViewWebProcessCrashedCallback
- onWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId
- wrap_WebViewWebProcessCrashedCallback :: WebViewWebProcessCrashedCallback -> Ptr () -> Ptr () -> IO CInt
Exported types
Methods
canExecuteEditingCommand
webViewCanExecuteEditingCommand Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously check if it is possible to execute the given editing command.
When the operation is finished, callback
will be called. You can then call
webViewCanExecuteEditingCommandFinish
to get the result of the operation.
canExecuteEditingCommandFinish
webViewCanExecuteEditingCommandFinish Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with webViewCanExecuteEditingCommand
.
canGoBack
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Bool |
Determines whether webView
has a previous history item.
canGoForward
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Bool |
Determines whether webView
has a next history item.
canShowMimeType
webViewCanShowMimeType Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether or not a MIME type can be displayed in webView
.
downloadUri
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> m Download | Returns: a new |
Requests downloading of the specified URI string for webView
.
executeEditingCommand
webViewExecuteEditingCommand Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> m () |
Request to execute the given command
for webView
. You can use
webViewCanExecuteEditingCommand
to check whether
it's possible to execute the command.
executeEditingCommandWithArgument
webViewExecuteEditingCommandWithArgument Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () |
Request to execute the given command
with argument
for webView
. You can use
webViewCanExecuteEditingCommand
to check whether
it's possible to execute the command.
Since: 2.10
getBackForwardList
webViewGetBackForwardList Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m BackForwardList | Returns: the |
Obtains the BackForwardList
associated with the given WebView
. The
BackForwardList
is owned by the WebView
.
getBackgroundColor
webViewGetBackgroundColor Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m RGBA |
Gets the color that is used to draw the webView
background before
the actual contents are rendered.
For more information see also webViewSetBackgroundColor
Since: 2.8
getContext
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WebContext | Returns: the |
Gets the web context of webView
.
getCustomCharset
webViewGetCustomCharset Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Text | Returns: the current custom character encoding name or |
Returns the current custom character encoding name of webView
.
getEditorState
webViewGetEditorState Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m EditorState | Returns: the |
Gets the web editor state of webView
.
Since: 2.10
getEstimatedLoadProgress
webViewGetEstimatedLoadProgress Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Double | Returns: an estimate of the of the percent complete for a document load as a range from 0.0 to 1.0. |
Gets the value of the WebView
:estimated-load-progress
property.
You can monitor the estimated progress of a load operation by
connecting to the notify::estimated-load-progress signal of webView
.
getFavicon
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Surface | Returns: a pointer to a |
Returns favicon currently associated to webView
, if any. You can
connect to notify::favicon signal of webView
to be notified when
the favicon is available.
getFindController
webViewGetFindController Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m FindController | Returns: the |
Gets the FindController
that will allow the caller to query
the WebView
for the text to look for.
getInspector
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WebInspector | Returns: the |
Get the WebInspector
associated to webView
getJavascriptGlobalContext
webViewGetJavascriptGlobalContext Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m GlobalContext | Returns: the <function>JSGlobalContextRef</function> used by |
Get the global JavaScript context used by webView
to deserialize the
result values of scripts executed with webViewRunJavascript
.
getMainResource
webViewGetMainResource Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WebResource | Returns: the main |
Return the main resource of webView
.
getPageId
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Word64 | Returns: the page ID of |
Get the identifier of the WebKitWebPage
corresponding to
the WebView
getSessionState
webViewGetSessionState Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WebViewSessionState | Returns: a |
Gets the current session state of webView
Since: 2.12
getSettings
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Settings | Returns: the |
Gets the Settings
currently applied to webView
.
If no other Settings
have been explicitly applied to
webView
with webViewSetSettings
, the default
Settings
will be returned. This method always returns
a valid Settings
object.
To modify any of the webView
settings, you can either create
a new Settings
object with settingsNew
, setting
the desired preferences, and then replace the existing webView
settings with webViewSetSettings
or get the existing
webView
settings and update it directly. Settings
objects
can be shared by multiple WebView
<!-- -->s, so modifying
the settings of a WebView
would affect other
WebView
<!-- -->s using the same Settings
.
getSnapshot
:: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) | |
=> a |
|
-> SnapshotRegion |
|
-> [SnapshotOptions] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously retrieves a snapshot of webView
for region
.
options
specifies how the snapshot should be rendered.
When the operation is finished, callback
will be called. You must
call webViewGetSnapshotFinish
to get the result of the
operation.
getSnapshotFinish
webViewGetSnapshotFinish Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Surface | Returns: a |
Finishes an asynchronous operation started with webViewGetSnapshot
.
getTitle
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Text | Returns: The main frame document title of |
Gets the value of the WebView
:title
property.
You can connect to notify::title signal of webView
to
be notified when the title has been received.
getTlsInfo
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m (Bool, TlsCertificate, [TlsCertificateFlags]) | Returns: |
Retrieves the TlsCertificate
associated with the main resource of webView
,
and the TlsCertificateFlags
showing what problems, if any, have been found
with that certificate.
If the connection is not HTTPS, this function returns False
.
This function should be called after a response has been received from the
server, so you can connect to WebView
::load-changed
and call this function
when it's emitted with LoadEventCommitted
event.
Note that this function provides no information about the security of the web
page if the current TLSErrorsPolicy
is wEBKITTLSERRORSPOLICYIGNORE
,
as subresources of the page may be controlled by an attacker. This function
may safely be used to determine the security status of the current page only
if the current TLSErrorsPolicy
is wEBKITTLSERRORSPOLICYFAIL
, in
which case subresources that fail certificate verification will be blocked.
getUri
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m (Maybe Text) | Returns: the current active URI of |
Returns the current active URI of webView
. The active URI might change during
a load operation:
<orderedlist>
<listitem><para>
When nothing has been loaded yet on webView
the active URI is Nothing
.
</para></listitem>
<listitem><para>
When a new load operation starts the active URI is the requested URI:
<itemizedlist>
<listitem><para>
If the load operation was started by webViewLoadUri
,
the requested URI is the given one.
</para></listitem>
<listitem><para>
If the load operation was started by webViewLoadHtml
,
the requested URI is "about:blank".
</para></listitem>
<listitem><para>
If the load operation was started by webViewLoadAlternateHtml
,
the requested URI is content URI provided.
</para></listitem>
<listitem><para>
If the load operation was started by webViewGoBack
or
webViewGoForward
, the requested URI is the original URI
of the previous/next item in the BackForwardList
of webView
.
</para></listitem>
<listitem><para>
If the load operation was started by
webViewGoToBackForwardListItem
, the requested URI
is the opriginal URI of the given BackForwardListItem
.
</para></listitem>
</itemizedlist>
</para></listitem>
<listitem><para>
If there is a server redirection during the load operation,
the active URI is the redirected URI. When the signal
WebView
::load-changed
is emitted with LoadEventRedirected
event, the active URI is already updated to the redirected URI.
</para></listitem>
<listitem><para>
When the signal WebView
::load-changed
is emitted
with LoadEventCommitted
event, the active URI is the final
one and it will not change unless a new load operation is started
or a navigation action within the same page is performed.
</para></listitem>
</orderedlist>
You can monitor the active URI by connecting to the notify::uri
signal of webView
.
getUserContentManager
webViewGetUserContentManager Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m UserContentManager | Returns: the |
Gets the user content manager associated to webView
, or Nothing
if the
view does not have an user content manager.
Since: 2.6
getWebsiteDataManager
webViewGetWebsiteDataManager Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WebsiteDataManager | Returns: a |
Get the WebsiteDataManager
associated to webView
. If webView
is not ephemeral,
the returned WebsiteDataManager
will be the same as the WebsiteDataManager
of webView
's WebContext
.
Since: 2.16
getWindowProperties
webViewGetWindowProperties Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m WindowProperties | Returns: the |
Get the WindowProperties
object containing the properties
that the window containing webView
should have.
getZoomLevel
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Double | Returns: the current zoom level of |
Get the zoom level of webView
, i.e. the factor by which the
view contents are scaled with respect to their original size.
goBack
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Loads the previous history item.
You can monitor the load operation by connecting to
WebView
::load-changed
signal.
goForward
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Loads the next history item.
You can monitor the load operation by connecting to
WebView
::load-changed
signal.
goToBackForwardListItem
webViewGoToBackForwardListItem Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsBackForwardListItem b) | |
=> a |
|
-> b |
|
-> m () |
Loads the specific history item listItem
.
You can monitor the load operation by connecting to
WebView
::load-changed
signal.
isEditable
webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool Source #
No description available in the introspection data.
isEphemeral
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Bool |
Get whether a WebView
is ephemeral. To create an ephemeral WebView
you need to
use g_object_new()
and pass is-ephemeral propery with True
value. See
WebView
:is-ephemeral
for more details.
If webView
was created with a ephemeral WebView
:related-view
or an
ephemeral WebView
:web-context
it will also be ephemeral.
Since: 2.16
isLoading
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the WebView
:is-loading
property.
You can monitor when a WebView
is loading a page by connecting to
notify::is-loading signal of webView
. This is useful when you are
interesting in knowing when the view is loding something but not in the
details about the status of the load operation, for example to start a spinner
when the view is loading a page and stop it when it finishes.
isPlayingAudio
loadAlternateHtml
webViewLoadAlternateHtml Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe Text |
|
-> m () |
Load the given content
string for the URI contentUri
.
This allows clients to display page-loading errors in the WebView
itself.
When this method is called from WebView
::load-failed
signal to show an
error page, the the back-forward list is maintained appropriately.
For everything else this method works the same way as webViewLoadHtml
.
loadBytes
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Bytes |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> m () |
Load the specified bytes
into webView
using the given mimeType
and encoding
.
When mimeType
is Nothing
, it defaults to "text/html".
When encoding
is Nothing
, it defaults to "UTF-8".
When baseUri
is Nothing
, it defaults to "about:blank".
You can monitor the load operation by connecting to WebView
::load-changed
signal.
Since: 2.6
loadHtml
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> Maybe Text |
|
-> m () |
Load the given content
string with the specified baseUri
.
If baseUri
is not Nothing
, relative URLs in the content
will be
resolved against baseUri
and absolute local paths must be children of the baseUri
.
For security reasons absolute local paths that are not children of baseUri
will cause the web process to terminate.
If you need to include URLs in content
that are local paths in a different
directory than baseUri
you can build a data URI for them. When baseUri
is Nothing
,
it defaults to "about:blank". The mime type of the document will be "text/html".
You can monitor the load operation by connecting to WebView
::load-changed
signal.
loadPlainText
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> m () |
Load the specified plainText
string into webView
. The mime type of
document will be "text/plain". You can monitor the load
operation by connecting to WebView
::load-changed
signal.
loadRequest
:: (HasCallStack, MonadIO m, IsWebView a, IsURIRequest b) | |
=> a |
|
-> b |
|
-> m () |
Requests loading of the specified URIRequest
.
You can monitor the load operation by connecting to
WebView
::load-changed
signal.
loadUri
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Text |
|
-> m () |
Requests loading of the specified URI string.
You can monitor the load operation by connecting to
WebView
::load-changed
signal.
new
:: (HasCallStack, MonadIO m) | |
=> m WebView | Returns: The newly created |
Creates a new WebView
with the default WebContext
and
no UserContentManager
associated with it.
See also webViewNewWithContext
,
webViewNewWithUserContentManager
, and
webViewNewWithSettings
.
newWithContext
webViewNewWithContext Source #
:: (HasCallStack, MonadIO m, IsWebContext a) | |
=> a |
|
-> m WebView | Returns: The newly created |
Creates a new WebView
with the given WebContext
and
no UserContentManager
associated with it.
See also webViewNewWithUserContentManager
and
webViewNewWithSettings
.
newWithRelatedView
webViewNewWithRelatedView Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m Widget | Returns: The newly created |
Creates a new WebView
sharing the same web process with webView
.
This method doesn't have any effect when ProcessModelSharedSecondaryProcess
process model is used, because a single web process is shared for all the web views in the
same WebContext
. When using ProcessModelMultipleSecondaryProcesses
process model,
this method should always be used when creating the WebView
in the WebView
::create
signal.
You can also use this method to implement other process models based on ProcessModelMultipleSecondaryProcesses
,
like for example, sharing the same web process for all the views in the same security domain.
The newly created WebView
will also have the same UserContentManager
and Settings
as webView
.
Since: 2.4
newWithSettings
webViewNewWithSettings Source #
:: (HasCallStack, MonadIO m, IsSettings a) | |
=> a |
|
-> m WebView | Returns: The newly created |
Creates a new WebView
with the given Settings
.
See also webViewNewWithContext
, and
webViewNewWithUserContentManager
.
Since: 2.6
newWithUserContentManager
webViewNewWithUserContentManager Source #
:: (HasCallStack, MonadIO m, IsUserContentManager a) | |
=> a |
|
-> m WebView | Returns: The newly created |
Creates a new WebView
with the given UserContentManager
.
The content loaded in the view may be affected by the content injected
in the view by the user content manager.
Since: 2.6
reload
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Reloads the current contents of webView
.
See also webViewReloadBypassCache
.
reloadBypassCache
webViewReloadBypassCache Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Reloads the current contents of webView
without
using any cached data.
restoreSessionState
webViewRestoreSessionState Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> WebViewSessionState |
|
-> m () |
Restore the webView
session state from state
Since: 2.12
runJavascript
:: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously run script
in the context of the current page in webView
. If
WebKitSettings:enable-javascript is FALSE, this method will do nothing.
When the operation is finished, callback
will be called. You can then call
webViewRunJavascriptFinish
to get the result of the operation.
runJavascriptFinish
webViewRunJavascriptFinish Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m JavascriptResult | Returns: a |
Finish an asynchronous operation started with webViewRunJavascript
.
This is an example of using webViewRunJavascript
with a script returning
a string:
<informalexample><programlisting> static void web_view_javascript_finished (GObject *object, GAsyncResult *result, gpointer user_data) { WebKitJavascriptResult *js_result; JSValueRef value; JSGlobalContextRef context; GError *error = NULL;
js_result = webkit_web_view_run_javascript_finish (WEBKIT_WEB_VIEW (object), result, &error);
if (!js_result) {
g_warning ("Error running javascript: s
", error->message);
g_error_free (error);
return;
}
context = webkit_javascript_result_get_global_context (js_result); value = webkit_javascript_result_get_value (js_result); if (JSValueIsString (context, value)) { JSStringRef js_str_value; gchar *str_value; gsize str_length;
js_str_value = JSValueToStringCopy (context, value, NULL);
str_length = JSStringGetMaximumUTF8CStringSize (js_str_value);
str_value = (gchar *)g_malloc (str_length);
JSStringGetUTF8CString (js_str_value, str_value, str_length);
JSStringRelease (js_str_value);
g_print ("Script result: s
\n", str_value);
g_free (str_value);
} else {
g_warning ("Error running javascript: unexpected return value");
}
webkit_javascript_result_unref (js_result);
}
static void web_view_get_link_url (WebKitWebView *web_view, const gchar *link_id) { gchar *script;
script = g_strdup_printf ("window.document.getElementById('s
').href;", link_id);
webkit_web_view_run_javascript (web_view, script, NULL, web_view_javascript_finished, NULL);
g_free (script);
}
</programlisting></informalexample>
runJavascriptFromGresource
webViewRunJavascriptFromGresource Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously run the script from resource
in the context of the
current page in webView
.
When the operation is finished, callback
will be called. You can
then call webViewRunJavascriptFromGresourceFinish
to get the result
of the operation.
runJavascriptFromGresourceFinish
webViewRunJavascriptFromGresourceFinish Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m JavascriptResult | Returns: a |
Finish an asynchronous operation started with webViewRunJavascriptFromGresource
.
Check webViewRunJavascriptFinish
for a usage example.
save
:: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) | |
=> a |
|
-> SaveMode |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously save the current web page associated to the
WebView
into a self-contained format using the mode
specified in saveMode
.
When the operation is finished, callback
will be called. You can
then call webViewSaveFinish
to get the result of the
operation.
saveFinish
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m InputStream | Returns: a |
Finish an asynchronous operation started with webViewSave
.
saveToFile
:: (HasCallStack, MonadIO m, IsWebView a, IsFile b, IsCancellable c) | |
=> a |
|
-> b |
|
-> SaveMode |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously save the current web page associated to the
WebView
into a self-contained format using the mode
specified in saveMode
and writing it to file
.
When the operation is finished, callback
will be called. You can
then call webViewSaveToFileFinish
to get the result of the
operation.
saveToFileFinish
webViewSaveToFileFinish Source #
:: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with webViewSaveToFile
.
setBackgroundColor
webViewSetBackgroundColor Source #
Sets the color that will be used to draw the webView
background before
the actual contents are rendered. Note that if the web page loaded in webView
specifies a background color, it will take precedence over the rgba
color.
By default the webView
background color is opaque white.
Note that the parent window must have a RGBA visual and
Widget
:app-paintable
property set to True
for backgrounds colors to work.
<informalexample><programlisting> static void browser_window_set_background_color (BrowserWindow *window, const GdkRGBA *rgba) { WebKitWebView *web_view; GdkScreen *screen = gtk_window_get_screen (GTK_WINDOW (window)); GdkVisual *rgba_visual = gdk_screen_get_rgba_visual (screen);
if (!rgba_visual) return;
gtk_widget_set_visual (GTK_WIDGET (window), rgba_visual); gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
web_view = browser_window_get_web_view (window); webkit_web_view_set_background_color (web_view, rgba); } </programlisting></informalexample>
Since: 2.8
setCustomCharset
webViewSetCustomCharset Source #
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the current custom character encoding override of webView
. The custom
character encoding will override any text encoding detected via HTTP headers or
META tags. Calling this method will stop any current load operation and reload the
current page. Setting the custom character encoding to Nothing
removes the character
encoding override.
setEditable
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the user is allowed to edit the HTML document.
If editable
is True
, webView
allows the user to edit the HTML document. If
editable
is False
, an element in webView
's document can only be edited if the
CONTENTEDITABLE attribute has been set on the element or one of its parent
elements. By default a WebView
is not editable.
Normally, a HTML document is not editable unless the elements within the
document are editable. This function provides a way to make the contents
of a WebView
editable without altering the document or DOM structure.
Since: 2.8
setSettings
:: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) | |
=> a |
|
-> b |
|
-> m () |
setZoomLevel
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> Double |
|
-> m () |
Set the zoom level of webView
, i.e. the factor by which the
view contents are scaled with respect to their original size.
stopLoading
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Stops any ongoing loading operation in webView
.
This method does nothing if no content is being loaded.
If there is a loading operation in progress, it will be cancelled and
WebView
::load-failed
signal will be emitted with
NetworkErrorCancelled
error.
tryClose
:: (HasCallStack, MonadIO m, IsWebView a) | |
=> a |
|
-> m () |
Tries to close the webView
. This will fire the onbeforeunload event
to ask the user for confirmation to close the page. If there isn't an
onbeforeunload event handler or the user confirms to close the page,
the WebView
::close
signal is emitted, otherwise nothing happens.
Since: 2.12
Properties
editable
constructWebViewEditable :: IsWebView o => Bool -> IO (GValueConstruct o) Source #
estimatedLoadProgress
favicon
isEphemeral
constructWebViewIsEphemeral :: IsWebView o => Bool -> IO (GValueConstruct o) Source #
isLoading
isPlayingAudio
relatedView
constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o) Source #
settings
constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o) Source #
setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m () Source #
title
uri
userContentManager
constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o) Source #
getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager Source #
webContext
constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o) Source #
getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext) Source #
zoomLevel
constructWebViewZoomLevel :: IsWebView o => Double -> IO (GValueConstruct o) Source #
Signals
authenticate
type C_WebViewAuthenticateCallback = Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt Source #
afterWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId Source #
mk_WebViewAuthenticateCallback :: C_WebViewAuthenticateCallback -> IO (FunPtr C_WebViewAuthenticateCallback) Source #
onWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId Source #
wrap_WebViewAuthenticateCallback :: WebViewAuthenticateCallback -> Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt Source #
close
type WebViewCloseCallback = IO () Source #
afterWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId Source #
onWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId Source #
wrap_WebViewCloseCallback :: WebViewCloseCallback -> Ptr () -> Ptr () -> IO () Source #
contextMenu
type C_WebViewContextMenuCallback = Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt Source #
type WebViewContextMenuCallback = ContextMenu -> Event -> HitTestResult -> IO Bool Source #
afterWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId Source #
mk_WebViewContextMenuCallback :: C_WebViewContextMenuCallback -> IO (FunPtr C_WebViewContextMenuCallback) Source #
onWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId Source #
wrap_WebViewContextMenuCallback :: WebViewContextMenuCallback -> Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt Source #
contextMenuDismissed
type WebViewContextMenuDismissedCallback = IO () Source #
afterWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId Source #
genClosure_WebViewContextMenuDismissed :: WebViewContextMenuDismissedCallback -> IO Closure Source #
mk_WebViewContextMenuDismissedCallback :: C_WebViewContextMenuDismissedCallback -> IO (FunPtr C_WebViewContextMenuDismissedCallback) Source #
onWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId Source #
wrap_WebViewContextMenuDismissedCallback :: WebViewContextMenuDismissedCallback -> Ptr () -> Ptr () -> IO () Source #
create
type C_WebViewCreateCallback = Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget) Source #
type WebViewCreateCallback = NavigationAction -> IO Widget Source #
afterWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId Source #
onWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId Source #
wrap_WebViewCreateCallback :: WebViewCreateCallback -> Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget) Source #
decidePolicy
type C_WebViewDecidePolicyCallback = Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt Source #
type WebViewDecidePolicyCallback = PolicyDecision -> PolicyDecisionType -> IO Bool Source #
afterWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId Source #
mk_WebViewDecidePolicyCallback :: C_WebViewDecidePolicyCallback -> IO (FunPtr C_WebViewDecidePolicyCallback) Source #
onWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId Source #
wrap_WebViewDecidePolicyCallback :: WebViewDecidePolicyCallback -> Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt Source #
enterFullscreen
type WebViewEnterFullscreenCallback = IO Bool Source #
afterWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId Source #
mk_WebViewEnterFullscreenCallback :: C_WebViewEnterFullscreenCallback -> IO (FunPtr C_WebViewEnterFullscreenCallback) Source #
onWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId Source #
wrap_WebViewEnterFullscreenCallback :: WebViewEnterFullscreenCallback -> Ptr () -> Ptr () -> IO CInt Source #
insecureContentDetected
type WebViewInsecureContentDetectedCallback = InsecureContentEvent -> IO () Source #
afterWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId Source #
genClosure_WebViewInsecureContentDetected :: WebViewInsecureContentDetectedCallback -> IO Closure Source #
mk_WebViewInsecureContentDetectedCallback :: C_WebViewInsecureContentDetectedCallback -> IO (FunPtr C_WebViewInsecureContentDetectedCallback) Source #
onWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId Source #
wrap_WebViewInsecureContentDetectedCallback :: WebViewInsecureContentDetectedCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
leaveFullscreen
type WebViewLeaveFullscreenCallback = IO Bool Source #
afterWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId Source #
mk_WebViewLeaveFullscreenCallback :: C_WebViewLeaveFullscreenCallback -> IO (FunPtr C_WebViewLeaveFullscreenCallback) Source #
onWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId Source #
wrap_WebViewLeaveFullscreenCallback :: WebViewLeaveFullscreenCallback -> Ptr () -> Ptr () -> IO CInt Source #
loadChanged
type WebViewLoadChangedCallback = LoadEvent -> IO () Source #
afterWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId Source #
mk_WebViewLoadChangedCallback :: C_WebViewLoadChangedCallback -> IO (FunPtr C_WebViewLoadChangedCallback) Source #
onWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId Source #
wrap_WebViewLoadChangedCallback :: WebViewLoadChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
loadFailed
type C_WebViewLoadFailedCallback = Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt Source #
afterWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId Source #
mk_WebViewLoadFailedCallback :: C_WebViewLoadFailedCallback -> IO (FunPtr C_WebViewLoadFailedCallback) Source #
onWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId Source #
wrap_WebViewLoadFailedCallback :: WebViewLoadFailedCallback -> Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt Source #
loadFailedWithTlsErrors
type C_WebViewLoadFailedWithTlsErrorsCallback = Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt Source #
type WebViewLoadFailedWithTlsErrorsCallback = Text -> TlsCertificate -> [TlsCertificateFlags] -> IO Bool Source #
afterWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId Source #
genClosure_WebViewLoadFailedWithTlsErrors :: WebViewLoadFailedWithTlsErrorsCallback -> IO Closure Source #
mk_WebViewLoadFailedWithTlsErrorsCallback :: C_WebViewLoadFailedWithTlsErrorsCallback -> IO (FunPtr C_WebViewLoadFailedWithTlsErrorsCallback) Source #
onWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId Source #
wrap_WebViewLoadFailedWithTlsErrorsCallback :: WebViewLoadFailedWithTlsErrorsCallback -> Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt Source #
mouseTargetChanged
type C_WebViewMouseTargetChangedCallback = Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO () Source #
type WebViewMouseTargetChangedCallback = HitTestResult -> Word32 -> IO () Source #
afterWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId Source #
mk_WebViewMouseTargetChangedCallback :: C_WebViewMouseTargetChangedCallback -> IO (FunPtr C_WebViewMouseTargetChangedCallback) Source #
onWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId Source #
wrap_WebViewMouseTargetChangedCallback :: WebViewMouseTargetChangedCallback -> Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO () Source #
permissionRequest
type C_WebViewPermissionRequestCallback = Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt Source #
afterWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId Source #
mk_WebViewPermissionRequestCallback :: C_WebViewPermissionRequestCallback -> IO (FunPtr C_WebViewPermissionRequestCallback) Source #
onWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId Source #
wrap_WebViewPermissionRequestCallback :: WebViewPermissionRequestCallback -> Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt Source #
type C_WebViewPrintCallback = Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt Source #
type WebViewPrintCallback = PrintOperation -> IO Bool Source #
afterWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId Source #
onWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId Source #
wrap_WebViewPrintCallback :: WebViewPrintCallback -> Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt Source #
readyToShow
type WebViewReadyToShowCallback = IO () Source #
afterWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId Source #
mk_WebViewReadyToShowCallback :: C_WebViewReadyToShowCallback -> IO (FunPtr C_WebViewReadyToShowCallback) Source #
onWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId Source #
wrap_WebViewReadyToShowCallback :: WebViewReadyToShowCallback -> Ptr () -> Ptr () -> IO () Source #
resourceLoadStarted
type C_WebViewResourceLoadStartedCallback = Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO () Source #
type WebViewResourceLoadStartedCallback = WebResource -> URIRequest -> IO () Source #
afterWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId Source #
mk_WebViewResourceLoadStartedCallback :: C_WebViewResourceLoadStartedCallback -> IO (FunPtr C_WebViewResourceLoadStartedCallback) Source #
onWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId Source #
wrap_WebViewResourceLoadStartedCallback :: WebViewResourceLoadStartedCallback -> Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO () Source #
runAsModal
type WebViewRunAsModalCallback = IO () Source #
afterWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId Source #
mk_WebViewRunAsModalCallback :: C_WebViewRunAsModalCallback -> IO (FunPtr C_WebViewRunAsModalCallback) Source #
onWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId Source #
wrap_WebViewRunAsModalCallback :: WebViewRunAsModalCallback -> Ptr () -> Ptr () -> IO () Source #
runColorChooser
type C_WebViewRunColorChooserCallback = Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt Source #
afterWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId Source #
mk_WebViewRunColorChooserCallback :: C_WebViewRunColorChooserCallback -> IO (FunPtr C_WebViewRunColorChooserCallback) Source #
onWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId Source #
wrap_WebViewRunColorChooserCallback :: WebViewRunColorChooserCallback -> Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt Source #
runFileChooser
type C_WebViewRunFileChooserCallback = Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt Source #
type WebViewRunFileChooserCallback = FileChooserRequest -> IO Bool Source #
afterWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId Source #
mk_WebViewRunFileChooserCallback :: C_WebViewRunFileChooserCallback -> IO (FunPtr C_WebViewRunFileChooserCallback) Source #
onWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId Source #
wrap_WebViewRunFileChooserCallback :: WebViewRunFileChooserCallback -> Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt Source #
scriptDialog
type C_WebViewScriptDialogCallback = Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt Source #
type WebViewScriptDialogCallback = ScriptDialog -> IO Bool Source #
afterWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId Source #
mk_WebViewScriptDialogCallback :: C_WebViewScriptDialogCallback -> IO (FunPtr C_WebViewScriptDialogCallback) Source #
onWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId Source #
wrap_WebViewScriptDialogCallback :: WebViewScriptDialogCallback -> Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt Source #
showNotification
type C_WebViewShowNotificationCallback = Ptr () -> Ptr Notification -> Ptr () -> IO CInt Source #
type WebViewShowNotificationCallback = Notification -> IO Bool Source #
afterWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId Source #
mk_WebViewShowNotificationCallback :: C_WebViewShowNotificationCallback -> IO (FunPtr C_WebViewShowNotificationCallback) Source #
onWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId Source #
wrap_WebViewShowNotificationCallback :: WebViewShowNotificationCallback -> Ptr () -> Ptr Notification -> Ptr () -> IO CInt Source #
submitForm
type C_WebViewSubmitFormCallback = Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO () Source #
type WebViewSubmitFormCallback = FormSubmissionRequest -> IO () Source #
afterWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId Source #
mk_WebViewSubmitFormCallback :: C_WebViewSubmitFormCallback -> IO (FunPtr C_WebViewSubmitFormCallback) Source #
onWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId Source #
wrap_WebViewSubmitFormCallback :: WebViewSubmitFormCallback -> Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO () Source #
webProcessCrashed
afterWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId Source #
mk_WebViewWebProcessCrashedCallback :: C_WebViewWebProcessCrashedCallback -> IO (FunPtr C_WebViewWebProcessCrashedCallback) Source #
onWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId Source #
wrap_WebViewWebProcessCrashedCallback :: WebViewWebProcessCrashedCallback -> Ptr () -> Ptr () -> IO CInt Source #