| 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 |
GI.WebKit2.Objects.WebView
Contents
- 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
Description
- newtype WebView = WebView (ManagedPtr WebView)
- class GObject o => IsWebView o
- toWebView :: IsWebView o => o -> IO WebView
- noWebView :: Maybe WebView
- data WebViewCanExecuteEditingCommandMethodInfo
- webViewCanExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data WebViewCanExecuteEditingCommandFinishMethodInfo
- webViewCanExecuteEditingCommandFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
- data WebViewCanGoBackMethodInfo
- webViewCanGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewCanGoForwardMethodInfo
- webViewCanGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewCanShowMimeTypeMethodInfo
- webViewCanShowMimeType :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Bool
- data WebViewDownloadUriMethodInfo
- webViewDownloadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Download
- data WebViewExecuteEditingCommandMethodInfo
- webViewExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- data WebViewExecuteEditingCommandWithArgumentMethodInfo
- webViewExecuteEditingCommandWithArgument :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> m ()
- data WebViewGetBackForwardListMethodInfo
- webViewGetBackForwardList :: (HasCallStack, MonadIO m, IsWebView a) => a -> m BackForwardList
- data WebViewGetBackgroundColorMethodInfo
- webViewGetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> m RGBA
- data WebViewGetContextMethodInfo
- webViewGetContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebContext
- data WebViewGetCustomCharsetMethodInfo
- webViewGetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
- data WebViewGetEditorStateMethodInfo
- webViewGetEditorState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m EditorState
- data WebViewGetEstimatedLoadProgressMethodInfo
- webViewGetEstimatedLoadProgress :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
- data WebViewGetFaviconMethodInfo
- webViewGetFavicon :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Surface
- data WebViewGetFindControllerMethodInfo
- webViewGetFindController :: (HasCallStack, MonadIO m, IsWebView a) => a -> m FindController
- data WebViewGetInspectorMethodInfo
- webViewGetInspector :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebInspector
- data WebViewGetJavascriptGlobalContextMethodInfo
- webViewGetJavascriptGlobalContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m GlobalContext
- data WebViewGetMainResourceMethodInfo
- webViewGetMainResource :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebResource
- data WebViewGetPageIdMethodInfo
- webViewGetPageId :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Word64
- data WebViewGetSessionStateMethodInfo
- webViewGetSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebViewSessionState
- data WebViewGetSettingsMethodInfo
- webViewGetSettings :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Settings
- data WebViewGetSnapshotMethodInfo
- webViewGetSnapshot :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SnapshotRegion -> [SnapshotOptions] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data WebViewGetSnapshotFinishMethodInfo
- webViewGetSnapshotFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Surface
- data WebViewGetTitleMethodInfo
- webViewGetTitle :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
- data WebViewGetTlsInfoMethodInfo
- webViewGetTlsInfo :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Bool, TlsCertificate, [TlsCertificateFlags])
- data WebViewGetUriMethodInfo
- webViewGetUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe Text)
- data WebViewGetUserContentManagerMethodInfo
- webViewGetUserContentManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m UserContentManager
- data WebViewGetWebsiteDataManagerMethodInfo
- webViewGetWebsiteDataManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebsiteDataManager
- data WebViewGetWindowPropertiesMethodInfo
- webViewGetWindowProperties :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WindowProperties
- data WebViewGetZoomLevelMethodInfo
- webViewGetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
- data WebViewGoBackMethodInfo
- webViewGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewGoForwardMethodInfo
- webViewGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewGoToBackForwardListItemMethodInfo
- webViewGoToBackForwardListItem :: (HasCallStack, MonadIO m, IsWebView a, IsBackForwardListItem b) => a -> b -> m ()
- data WebViewIsEditableMethodInfo
- webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewIsEphemeralMethodInfo
- webViewIsEphemeral :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewIsLoadingMethodInfo
- webViewIsLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewIsPlayingAudioMethodInfo
- webViewIsPlayingAudio :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
- data WebViewLoadAlternateHtmlMethodInfo
- webViewLoadAlternateHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> Maybe Text -> m ()
- data WebViewLoadBytesMethodInfo
- webViewLoadBytes :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bytes -> Maybe Text -> Maybe Text -> Maybe Text -> m ()
- data WebViewLoadHtmlMethodInfo
- webViewLoadHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Maybe Text -> m ()
- data WebViewLoadPlainTextMethodInfo
- webViewLoadPlainText :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- data WebViewLoadRequestMethodInfo
- webViewLoadRequest :: (HasCallStack, MonadIO m, IsWebView a, IsURIRequest b) => a -> b -> m ()
- data WebViewLoadUriMethodInfo
- webViewLoadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
- webViewNew :: (HasCallStack, MonadIO m) => m WebView
- webViewNewWithContext :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m WebView
- data WebViewNewWithRelatedViewMethodInfo
- 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
- data WebViewReloadMethodInfo
- webViewReload :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewReloadBypassCacheMethodInfo
- webViewReloadBypassCache :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewRestoreSessionStateMethodInfo
- webViewRestoreSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> WebViewSessionState -> m ()
- data WebViewRunJavascriptMethodInfo
- webViewRunJavascript :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data WebViewRunJavascriptFinishMethodInfo
- webViewRunJavascriptFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
- data WebViewRunJavascriptFromGresourceMethodInfo
- webViewRunJavascriptFromGresource :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data WebViewRunJavascriptFromGresourceFinishMethodInfo
- webViewRunJavascriptFromGresourceFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
- data WebViewSaveMethodInfo
- webViewSave :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SaveMode -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data WebViewSaveFinishMethodInfo
- webViewSaveFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m InputStream
- data WebViewSaveToFileMethodInfo
- webViewSaveToFile :: (HasCallStack, MonadIO m, IsWebView a, IsFile b, IsCancellable c) => a -> b -> SaveMode -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data WebViewSaveToFileFinishMethodInfo
- webViewSaveToFileFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
- data WebViewSetBackgroundColorMethodInfo
- webViewSetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> RGBA -> m ()
- data WebViewSetCustomCharsetMethodInfo
- webViewSetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> Maybe Text -> m ()
- data WebViewSetEditableMethodInfo
- webViewSetEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bool -> m ()
- data WebViewSetSettingsMethodInfo
- webViewSetSettings :: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) => a -> b -> m ()
- data WebViewSetZoomLevelMethodInfo
- webViewSetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> Double -> m ()
- data WebViewStopLoadingMethodInfo
- webViewStopLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewTryCloseMethodInfo
- webViewTryClose :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
- data WebViewEditablePropertyInfo
- constructWebViewEditable :: IsWebView o => Bool -> IO (GValueConstruct o)
- getWebViewEditable :: (MonadIO m, IsWebView o) => o -> m Bool
- setWebViewEditable :: (MonadIO m, IsWebView o) => o -> Bool -> m ()
- webViewEditable :: AttrLabelProxy "editable"
- data WebViewEstimatedLoadProgressPropertyInfo
- getWebViewEstimatedLoadProgress :: (MonadIO m, IsWebView o) => o -> m Double
- webViewEstimatedLoadProgress :: AttrLabelProxy "estimatedLoadProgress"
- data WebViewFaviconPropertyInfo
- getWebViewFavicon :: (MonadIO m, IsWebView o) => o -> m (Ptr ())
- webViewFavicon :: AttrLabelProxy "favicon"
- data WebViewIsEphemeralPropertyInfo
- constructWebViewIsEphemeral :: IsWebView o => Bool -> IO (GValueConstruct o)
- getWebViewIsEphemeral :: (MonadIO m, IsWebView o) => o -> m Bool
- data WebViewIsLoadingPropertyInfo
- getWebViewIsLoading :: (MonadIO m, IsWebView o) => o -> m Bool
- data WebViewIsPlayingAudioPropertyInfo
- getWebViewIsPlayingAudio :: (MonadIO m, IsWebView o) => o -> m Bool
- data WebViewRelatedViewPropertyInfo
- constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o)
- webViewRelatedView :: AttrLabelProxy "relatedView"
- data WebViewSettingsPropertyInfo
- constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o)
- setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m ()
- webViewSettings :: AttrLabelProxy "settings"
- data WebViewTitlePropertyInfo
- getWebViewTitle :: (MonadIO m, IsWebView o) => o -> m Text
- webViewTitle :: AttrLabelProxy "title"
- data WebViewUriPropertyInfo
- getWebViewUri :: (MonadIO m, IsWebView o) => o -> m (Maybe Text)
- webViewUri :: AttrLabelProxy "uri"
- data WebViewUserContentManagerPropertyInfo
- constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o)
- getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager
- webViewUserContentManager :: AttrLabelProxy "userContentManager"
- data WebViewWebContextPropertyInfo
- constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o)
- getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext)
- webViewWebContext :: AttrLabelProxy "webContext"
- data WebViewZoomLevelPropertyInfo
- constructWebViewZoomLevel :: IsWebView o => Double -> IO (GValueConstruct o)
- getWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> m Double
- setWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> Double -> m ()
- webViewZoomLevel :: AttrLabelProxy "zoomLevel"
- type C_WebViewAuthenticateCallback = Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt
- type WebViewAuthenticateCallback = AuthenticationRequest -> IO Bool
- data WebViewAuthenticateSignalInfo
- 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 ()
- data WebViewCloseSignalInfo
- 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
- data WebViewContextMenuSignalInfo
- 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 ()
- data WebViewContextMenuDismissedSignalInfo
- 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
- data WebViewCreateSignalInfo
- 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
- data WebViewDecidePolicySignalInfo
- 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
- data WebViewEnterFullscreenSignalInfo
- 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 ()
- data WebViewInsecureContentDetectedSignalInfo
- 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
- data WebViewLeaveFullscreenSignalInfo
- 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 ()
- data WebViewLoadChangedSignalInfo
- 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
- data WebViewLoadFailedSignalInfo
- 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
- data WebViewLoadFailedWithTlsErrorsSignalInfo
- 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 ()
- data WebViewMouseTargetChangedSignalInfo
- 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
- data WebViewPermissionRequestSignalInfo
- 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
- data WebViewPrintSignalInfo
- 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 ()
- data WebViewReadyToShowSignalInfo
- 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 ()
- data WebViewResourceLoadStartedSignalInfo
- 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 ()
- data WebViewRunAsModalSignalInfo
- 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
- data WebViewRunColorChooserSignalInfo
- 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
- data WebViewRunFileChooserSignalInfo
- 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
- data WebViewScriptDialogSignalInfo
- 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
- data WebViewShowNotificationSignalInfo
- 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 ()
- data WebViewSubmitFormSignalInfo
- 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
- data WebViewWebProcessCrashedSignalInfo
- 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
Constructors
| WebView (ManagedPtr WebView) |
Instances
| GObject WebView Source # | |
| IsImplementorIface WebView Source # | |
| IsObject WebView Source # | |
| IsBuildable WebView Source # | |
| IsContainer WebView Source # | |
| IsWidget WebView Source # | |
| IsWebViewBase WebView Source # | |
| IsWebView WebView Source # | |
| ((~) * info (ResolveWebViewMethod t WebView), MethodInfo * info WebView p) => IsLabel t (WebView -> p) Source # | |
| ((~) * info (ResolveWebViewMethod t WebView), MethodInfo * info WebView p) => IsLabelProxy t (WebView -> p) Source # | |
| HasAttributeList * WebView Source # | |
| type AttributeList WebView Source # | |
| type SignalList WebView Source # | |
Methods
canExecuteEditingCommand
data WebViewCanExecuteEditingCommandMethodInfo Source #
Instances
| ((~) * signature (Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsCancellable b) => MethodInfo * WebViewCanExecuteEditingCommandMethodInfo a signature Source # | |
webViewCanExecuteEditingCommand Source #
Arguments
| :: (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
data WebViewCanExecuteEditingCommandFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewCanExecuteEditingCommandFinishMethodInfo a signature Source # | |
webViewCanExecuteEditingCommandFinish Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m () | (Can throw |
Finish an asynchronous operation started with webViewCanExecuteEditingCommand.
canGoBack
data WebViewCanGoBackMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewCanGoBackMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m Bool |
Determines whether webView has a previous history item.
canGoForward
data WebViewCanGoForwardMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewCanGoForwardMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m Bool |
Determines whether webView has a next history item.
canShowMimeType
data WebViewCanShowMimeTypeMethodInfo Source #
Instances
| ((~) * signature (Text -> m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewCanShowMimeTypeMethodInfo a signature Source # | |
webViewCanShowMimeType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> Text |
|
| -> m Bool | Returns: |
Whether or not a MIME type can be displayed in webView.
downloadUri
data WebViewDownloadUriMethodInfo Source #
Instances
| ((~) * signature (Text -> m Download), MonadIO m, IsWebView a) => MethodInfo * WebViewDownloadUriMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> Text |
|
| -> m Download | Returns: a new |
Requests downloading of the specified URI string for webView.
executeEditingCommand
data WebViewExecuteEditingCommandMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewExecuteEditingCommandMethodInfo a signature Source # | |
webViewExecuteEditingCommand Source #
Arguments
| :: (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
data WebViewExecuteEditingCommandWithArgumentMethodInfo Source #
Instances
| ((~) * signature (Text -> Text -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewExecuteEditingCommandWithArgumentMethodInfo a signature Source # | |
webViewExecuteEditingCommandWithArgument Source #
Arguments
| :: (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
data WebViewGetBackForwardListMethodInfo Source #
Instances
| ((~) * signature (m BackForwardList), MonadIO m, IsWebView a) => MethodInfo * WebViewGetBackForwardListMethodInfo a signature Source # | |
webViewGetBackForwardList Source #
Arguments
| :: (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
data WebViewGetBackgroundColorMethodInfo Source #
Instances
| ((~) * signature (m RGBA), MonadIO m, IsWebView a) => MethodInfo * WebViewGetBackgroundColorMethodInfo a signature Source # | |
webViewGetBackgroundColor Source #
Arguments
| :: (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
data WebViewGetContextMethodInfo Source #
Instances
| ((~) * signature (m WebContext), MonadIO m, IsWebView a) => MethodInfo * WebViewGetContextMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m WebContext | Returns: the |
Gets the web context of webView.
getCustomCharset
data WebViewGetCustomCharsetMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsWebView a) => MethodInfo * WebViewGetCustomCharsetMethodInfo a signature Source # | |
webViewGetCustomCharset Source #
Arguments
| :: (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
data WebViewGetEditorStateMethodInfo Source #
Instances
| ((~) * signature (m EditorState), MonadIO m, IsWebView a) => MethodInfo * WebViewGetEditorStateMethodInfo a signature Source # | |
webViewGetEditorState Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m EditorState | Returns: the |
Gets the web editor state of webView.
Since: 2.10
getEstimatedLoadProgress
data WebViewGetEstimatedLoadProgressMethodInfo Source #
Instances
| ((~) * signature (m Double), MonadIO m, IsWebView a) => MethodInfo * WebViewGetEstimatedLoadProgressMethodInfo a signature Source # | |
webViewGetEstimatedLoadProgress Source #
Arguments
| :: (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
data WebViewGetFaviconMethodInfo Source #
Instances
| ((~) * signature (m Surface), MonadIO m, IsWebView a) => MethodInfo * WebViewGetFaviconMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetFindControllerMethodInfo Source #
Instances
| ((~) * signature (m FindController), MonadIO m, IsWebView a) => MethodInfo * WebViewGetFindControllerMethodInfo a signature Source # | |
webViewGetFindController Source #
Arguments
| :: (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
data WebViewGetInspectorMethodInfo Source #
Instances
| ((~) * signature (m WebInspector), MonadIO m, IsWebView a) => MethodInfo * WebViewGetInspectorMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m WebInspector | Returns: the |
Get the WebInspector associated to webView
getJavascriptGlobalContext
data WebViewGetJavascriptGlobalContextMethodInfo Source #
Instances
| ((~) * signature (m GlobalContext), MonadIO m, IsWebView a) => MethodInfo * WebViewGetJavascriptGlobalContextMethodInfo a signature Source # | |
webViewGetJavascriptGlobalContext Source #
Arguments
| :: (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
data WebViewGetMainResourceMethodInfo Source #
Instances
| ((~) * signature (m WebResource), MonadIO m, IsWebView a) => MethodInfo * WebViewGetMainResourceMethodInfo a signature Source # | |
webViewGetMainResource Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m WebResource | Returns: the main |
Return the main resource of webView.
getPageId
data WebViewGetPageIdMethodInfo Source #
Instances
| ((~) * signature (m Word64), MonadIO m, IsWebView a) => MethodInfo * WebViewGetPageIdMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m Word64 | Returns: the page ID of |
Get the identifier of the WebKitWebPage corresponding to
the WebView
getSessionState
data WebViewGetSessionStateMethodInfo Source #
Instances
| ((~) * signature (m WebViewSessionState), MonadIO m, IsWebView a) => MethodInfo * WebViewGetSessionStateMethodInfo a signature Source # | |
webViewGetSessionState Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m WebViewSessionState | Returns: a |
Gets the current session state of webView
Since: 2.12
getSettings
data WebViewGetSettingsMethodInfo Source #
Instances
| ((~) * signature (m Settings), MonadIO m, IsWebView a) => MethodInfo * WebViewGetSettingsMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetSnapshotMethodInfo Source #
Instances
| ((~) * signature (SnapshotRegion -> [SnapshotOptions] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsCancellable b) => MethodInfo * WebViewGetSnapshotMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetSnapshotFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m Surface), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewGetSnapshotFinishMethodInfo a signature Source # | |
webViewGetSnapshotFinish Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m Surface | Returns: a |
Finishes an asynchronous operation started with webViewGetSnapshot.
getTitle
data WebViewGetTitleMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsWebView a) => MethodInfo * WebViewGetTitleMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetTlsInfoMethodInfo Source #
Instances
| ((~) * signature (m (Bool, TlsCertificate, [TlsCertificateFlags])), MonadIO m, IsWebView a) => MethodInfo * WebViewGetTlsInfoMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetUriMethodInfo Source #
Instances
| ((~) * signature (m (Maybe Text)), MonadIO m, IsWebView a) => MethodInfo * WebViewGetUriMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGetUserContentManagerMethodInfo Source #
Instances
| ((~) * signature (m UserContentManager), MonadIO m, IsWebView a) => MethodInfo * WebViewGetUserContentManagerMethodInfo a signature Source # | |
webViewGetUserContentManager Source #
Arguments
| :: (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
data WebViewGetWebsiteDataManagerMethodInfo Source #
Instances
| ((~) * signature (m WebsiteDataManager), MonadIO m, IsWebView a) => MethodInfo * WebViewGetWebsiteDataManagerMethodInfo a signature Source # | |
webViewGetWebsiteDataManager Source #
Arguments
| :: (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
data WebViewGetWindowPropertiesMethodInfo Source #
Instances
| ((~) * signature (m WindowProperties), MonadIO m, IsWebView a) => MethodInfo * WebViewGetWindowPropertiesMethodInfo a signature Source # | |
webViewGetWindowProperties Source #
Arguments
| :: (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
data WebViewGetZoomLevelMethodInfo Source #
Instances
| ((~) * signature (m Double), MonadIO m, IsWebView a) => MethodInfo * WebViewGetZoomLevelMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGoBackMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewGoBackMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGoForwardMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewGoForwardMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewGoToBackForwardListItemMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsWebView a, IsBackForwardListItem b) => MethodInfo * WebViewGoToBackForwardListItemMethodInfo a signature Source # | |
webViewGoToBackForwardListItem Source #
Arguments
| :: (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
data WebViewIsEditableMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewIsEditableMethodInfo a signature Source # | |
webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool Source #
No description available in the introspection data.
isEphemeral
data WebViewIsEphemeralMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewIsEphemeralMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewIsLoadingMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewIsLoadingMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewIsPlayingAudioMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsWebView a) => MethodInfo * WebViewIsPlayingAudioMethodInfo a signature Source # | |
loadAlternateHtml
webViewLoadAlternateHtml Source #
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (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
data WebViewLoadPlainTextMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewLoadPlainTextMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewLoadRequestMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsWebView a, IsURIRequest b) => MethodInfo * WebViewLoadRequestMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewLoadUriMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewLoadUriMethodInfo a signature Source # | |
Arguments
| :: (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
Arguments
| :: (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 #
Arguments
| :: (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
data WebViewNewWithRelatedViewMethodInfo Source #
Instances
| ((~) * signature (m Widget), MonadIO m, IsWebView a) => MethodInfo * WebViewNewWithRelatedViewMethodInfo a signature Source # | |
webViewNewWithRelatedView Source #
Arguments
| :: (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 #
Arguments
| :: (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 #
Arguments
| :: (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
data WebViewReloadMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewReloadMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m () |
Reloads the current contents of webView.
See also webViewReloadBypassCache.
reloadBypassCache
data WebViewReloadBypassCacheMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewReloadBypassCacheMethodInfo a signature Source # | |
webViewReloadBypassCache Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> m () |
Reloads the current contents of webView without
using any cached data.
restoreSessionState
data WebViewRestoreSessionStateMethodInfo Source #
Instances
| ((~) * signature (WebViewSessionState -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewRestoreSessionStateMethodInfo a signature Source # | |
webViewRestoreSessionState Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> WebViewSessionState |
|
| -> m () |
Restore the webView session state from state
Since: 2.12
runJavascript
data WebViewRunJavascriptMethodInfo Source #
Instances
| ((~) * signature (Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsCancellable b) => MethodInfo * WebViewRunJavascriptMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewRunJavascriptFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m JavascriptResult), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewRunJavascriptFinishMethodInfo a signature Source # | |
webViewRunJavascriptFinish Source #
Arguments
| :: (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
data WebViewRunJavascriptFromGresourceMethodInfo Source #
Instances
| ((~) * signature (Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsCancellable b) => MethodInfo * WebViewRunJavascriptFromGresourceMethodInfo a signature Source # | |
webViewRunJavascriptFromGresource Source #
Arguments
| :: (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
data WebViewRunJavascriptFromGresourceFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m JavascriptResult), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewRunJavascriptFromGresourceFinishMethodInfo a signature Source # | |
webViewRunJavascriptFromGresourceFinish Source #
Arguments
| :: (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
data WebViewSaveMethodInfo Source #
Instances
| ((~) * signature (SaveMode -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsCancellable b) => MethodInfo * WebViewSaveMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewSaveFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m InputStream), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewSaveFinishMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m InputStream | Returns: a |
Finish an asynchronous operation started with webViewSave.
saveToFile
data WebViewSaveToFileMethodInfo Source #
Instances
| ((~) * signature (b -> SaveMode -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsWebView a, IsFile b, IsCancellable c) => MethodInfo * WebViewSaveToFileMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewSaveToFileFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsWebView a, IsAsyncResult b) => MethodInfo * WebViewSaveToFileFinishMethodInfo a signature Source # | |
webViewSaveToFileFinish Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m () | (Can throw |
Finish an asynchronous operation started with webViewSaveToFile.
setBackgroundColor
data WebViewSetBackgroundColorMethodInfo Source #
Instances
| ((~) * signature (RGBA -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewSetBackgroundColorMethodInfo a signature Source # | |
webViewSetBackgroundColor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a) | |
| => a |
|
| -> RGBA |
|
| -> m () |
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
data WebViewSetCustomCharsetMethodInfo Source #
Instances
| ((~) * signature (Maybe Text -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewSetCustomCharsetMethodInfo a signature Source # | |
webViewSetCustomCharset Source #
Arguments
| :: (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
data WebViewSetEditableMethodInfo Source #
Instances
| ((~) * signature (Bool -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewSetEditableMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewSetSettingsMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsWebView a, IsSettings b) => MethodInfo * WebViewSetSettingsMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) | |
| => a |
|
| -> b |
|
| -> m () |
setZoomLevel
data WebViewSetZoomLevelMethodInfo Source #
Instances
| ((~) * signature (Double -> m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewSetZoomLevelMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewStopLoadingMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewStopLoadingMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewTryCloseMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsWebView a) => MethodInfo * WebViewTryCloseMethodInfo a signature Source # | |
Arguments
| :: (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
data WebViewEditablePropertyInfo Source #
Instances
constructWebViewEditable :: IsWebView o => Bool -> IO (GValueConstruct o) Source #
webViewEditable :: AttrLabelProxy "editable" Source #
estimatedLoadProgress
data WebViewEstimatedLoadProgressPropertyInfo Source #
Instances
webViewEstimatedLoadProgress :: AttrLabelProxy "estimatedLoadProgress" Source #
favicon
data WebViewFaviconPropertyInfo Source #
Instances
webViewFavicon :: AttrLabelProxy "favicon" Source #
isEphemeral
data WebViewIsEphemeralPropertyInfo Source #
Instances
constructWebViewIsEphemeral :: IsWebView o => Bool -> IO (GValueConstruct o) Source #
isLoading
data WebViewIsLoadingPropertyInfo Source #
Instances
isPlayingAudio
data WebViewIsPlayingAudioPropertyInfo Source #
Instances
relatedView
data WebViewRelatedViewPropertyInfo Source #
Instances
constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o) Source #
webViewRelatedView :: AttrLabelProxy "relatedView" Source #
settings
data WebViewSettingsPropertyInfo Source #
Instances
constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o) Source #
setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m () Source #
webViewSettings :: AttrLabelProxy "settings" Source #
title
data WebViewTitlePropertyInfo Source #
Instances
webViewTitle :: AttrLabelProxy "title" Source #
uri
data WebViewUriPropertyInfo Source #
Instances
webViewUri :: AttrLabelProxy "uri" Source #
userContentManager
data WebViewUserContentManagerPropertyInfo Source #
Instances
constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o) Source #
getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager Source #
webViewUserContentManager :: AttrLabelProxy "userContentManager" Source #
webContext
data WebViewWebContextPropertyInfo Source #
Instances
constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o) Source #
getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext) Source #
webViewWebContext :: AttrLabelProxy "webContext" Source #
zoomLevel
data WebViewZoomLevelPropertyInfo Source #
Instances
constructWebViewZoomLevel :: IsWebView o => Double -> IO (GValueConstruct o) Source #
webViewZoomLevel :: AttrLabelProxy "zoomLevel" 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 #
data WebViewCloseSignalInfo Source #
Instances
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 #
data WebViewPrintSignalInfo Source #
Instances
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 #