-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | WebKit bindings -- -- Bindings for WebKit, autogenerated by haskell-gi. @package gi-webkit @version 6.0.2 -- | Build time configuration used during code generation. module GI.WebKit.Config -- | Overrides used when generating these bindings. overrides :: Text module GI.WebKit.Constants -- | Like getMinorVersion, but from the headers used at application -- compile time, rather than from the library linked against at -- application run time. pattern MINOR_VERSION :: Int32 -- | Like getMicroVersion, but from the headers used at application -- compile time, rather than from the library linked against at -- application run time. pattern MICRO_VERSION :: Int32 -- | Like getMajorVersion, but from the headers used at application -- compile time, rather than from the library linked against at -- application run time. pattern MAJOR_VERSION :: Int32 -- | The undo command. Undoes the last editing command in a WebView. -- You can check whether it's possible to execute the command with -- webViewCanExecuteEditingCommand. It's only possible to undo a -- command after a previously executed editing operation. pattern EDITING_COMMAND_UNDO :: Text -- | The select all command. Selects all the content of the current text -- field in a WebView. It is always possible to select all text, -- no matter whether the WebView content is editable or not. You -- can still check it with webViewCanExecuteEditingCommand. pattern EDITING_COMMAND_SELECT_ALL :: Text -- | The redo command. Redoes a previously undone editing command in a -- WebView. You can check whether it's possible to execute the -- command with webViewCanExecuteEditingCommand. It's only -- possible to redo a command when it has been previously undone. pattern EDITING_COMMAND_REDO :: Text -- | The paste as plaintext clipboard command. Pastes the contents of the -- clipboard to a WebView, with formatting removed. You can check -- whether it's possible to execute the command with -- webViewCanExecuteEditingCommand. In general it's possible to -- paste from the clipboard when the WebView content is editable -- and clipboard is not empty. -- -- Since: 2.30 pattern EDITING_COMMAND_PASTE_AS_PLAIN_TEXT :: Text -- | The paste clipboard command. Pastes the contents of the clipboard to a -- WebView. You can check whether it's possible to execute the -- command with webViewCanExecuteEditingCommand. In general it's -- possible to paste from the clipboard when the WebView content -- is editable and clipboard is not empty. pattern EDITING_COMMAND_PASTE :: Text -- | The insert image command. Creates an image element that is inserted at -- the current cursor position. It receives an URI as argument, that is -- used as the image source. This command should be executed with -- webViewExecuteEditingCommandWithArgument. -- -- Since: 2.10 pattern EDITING_COMMAND_INSERT_IMAGE :: Text -- | The cut clipboard command. Copies the current selection inside a -- WebView to the clipboard and deletes the selected content. You -- can check whether it's possible to execute the command with -- webViewCanExecuteEditingCommand. In general it's possible to -- cut to the clipboard when the WebView content is editable and -- there is an active selection. pattern EDITING_COMMAND_CUT :: Text -- | The create link command. Creates a link element that is inserted at -- the current cursor position. If there's a selection, the selected text -- will be used as the link text, otherwise the URL itself will be used. -- It receives the link URL as argument. This command should be executed -- with webViewExecuteEditingCommandWithArgument -- -- Since: 2.10 pattern EDITING_COMMAND_CREATE_LINK :: Text -- | The copy clipboard command. Copies the current selection inside a -- WebView to the clipboard. You can check whether it's possible -- to execute the command with webViewCanExecuteEditingCommand. In -- general it's possible to copy to the clipboard when there is an active -- selection inside the WebView. pattern EDITING_COMMAND_COPY :: Text module GI.WebKit.Enums -- | Enum values representing the authentication scheme. -- -- Since: 2.2 data AuthenticationScheme -- | The default authentication scheme of WebKit. AuthenticationSchemeDefault :: AuthenticationScheme -- | Basic authentication scheme as defined in RFC 2617. AuthenticationSchemeHttpBasic :: AuthenticationScheme -- | Digest authentication scheme as defined in RFC 2617. AuthenticationSchemeHttpDigest :: AuthenticationScheme -- | HTML Form authentication. AuthenticationSchemeHtmlForm :: AuthenticationScheme -- | NTLM Microsoft proprietary authentication scheme. AuthenticationSchemeNtlm :: AuthenticationScheme -- | Negotiate (or SPNEGO) authentication scheme as defined in RFC 4559. AuthenticationSchemeNegotiate :: AuthenticationScheme -- | Client Certificate Authentication (see RFC 2246). AuthenticationSchemeClientCertificateRequested :: AuthenticationScheme -- | Server Trust Authentication. AuthenticationSchemeServerTrustEvaluationRequested :: AuthenticationScheme -- | Client certificate PIN required for use. Since: 2.34 AuthenticationSchemeClientCertificatePinRequested :: AuthenticationScheme -- | Authentication scheme unknown. AuthenticationSchemeUnknown :: AuthenticationScheme -- | Catch-all for unknown values AnotherAuthenticationScheme :: Int -> AuthenticationScheme -- | Enum values used for determining the automation browsing context -- presentation. -- -- Since: 2.28 data AutomationBrowsingContextPresentation -- | a window AutomationBrowsingContextPresentationWindow :: AutomationBrowsingContextPresentation -- | a tab AutomationBrowsingContextPresentationTab :: AutomationBrowsingContextPresentation -- | Catch-all for unknown values AnotherAutomationBrowsingContextPresentation :: Int -> AutomationBrowsingContextPresentation -- | Enum values used to specify autoplay policies. -- -- Since: 2.30 data AutoplayPolicy -- | Do not restrict autoplay. AutoplayPolicyAllow :: AutoplayPolicy -- | Allow videos to autoplay if they have no audio track, or if their -- audio track is muted. AutoplayPolicyAllowWithoutSound :: AutoplayPolicy -- | Never allow autoplay. AutoplayPolicyDeny :: AutoplayPolicy -- | Catch-all for unknown values AnotherAutoplayPolicy :: Int -> AutoplayPolicy -- | Enum values used for determining the WebContext cache model. data CacheModel -- | Disable the cache completely, which substantially reduces memory -- usage. Useful for applications that only access a single local file, -- with no navigation to other pages. No remote resources will be cached. CacheModelDocumentViewer :: CacheModel -- | Improve document load speed substantially by caching a very large -- number of resources and previously viewed content. CacheModelWebBrowser :: CacheModel -- | A cache model optimized for viewing a series of local files -- for -- example, a documentation viewer or a website designer. WebKit will -- cache a moderate number of resources. CacheModelDocumentBrowser :: CacheModel -- | Catch-all for unknown values AnotherCacheModel :: Int -> CacheModel -- | Enum values used to denote the stock actions for -- ContextMenuItems data ContextMenuAction -- | No action, used by separator menu items. ContextMenuActionNoAction :: ContextMenuAction -- | Open current link. ContextMenuActionOpenLink :: ContextMenuAction -- | Open current link in a new window. ContextMenuActionOpenLinkInNewWindow :: ContextMenuAction -- | Download link destination. ContextMenuActionDownloadLinkToDisk :: ContextMenuAction -- | Copy link location to the clipboard. ContextMenuActionCopyLinkToClipboard :: ContextMenuAction -- | Open current image in a new window. ContextMenuActionOpenImageInNewWindow :: ContextMenuAction -- | Download current image. ContextMenuActionDownloadImageToDisk :: ContextMenuAction -- | Copy current image to the clipboard. ContextMenuActionCopyImageToClipboard :: ContextMenuAction -- | Copy current image location to the clipboard. ContextMenuActionCopyImageUrlToClipboard :: ContextMenuAction -- | Open current frame in a new window. ContextMenuActionOpenFrameInNewWindow :: ContextMenuAction -- | Load the previous history item. ContextMenuActionGoBack :: ContextMenuAction -- | Load the next history item. ContextMenuActionGoForward :: ContextMenuAction -- | Stop any ongoing loading operation. ContextMenuActionStop :: ContextMenuAction -- | Reload the contents of current view. ContextMenuActionReload :: ContextMenuAction -- | Copy current selection the clipboard. ContextMenuActionCopy :: ContextMenuAction -- | Cut current selection to the clipboard. ContextMenuActionCut :: ContextMenuAction -- | Paste clipboard contents. ContextMenuActionPaste :: ContextMenuAction -- | Delete current selection. ContextMenuActionDelete :: ContextMenuAction -- | Select all text. ContextMenuActionSelectAll :: ContextMenuAction -- | Input methods menu. ContextMenuActionInputMethods :: ContextMenuAction -- | Unicode menu. ContextMenuActionUnicode :: ContextMenuAction -- | A proposed replacement for a misspelled word. ContextMenuActionSpellingGuess :: ContextMenuAction -- | An indicator that spellchecking found no proposed replacements. ContextMenuActionNoGuessesFound :: ContextMenuAction -- | Causes the spellchecker to ignore the word for this session. ContextMenuActionIgnoreSpelling :: ContextMenuAction -- | Causes the spellchecker to add the word to the dictionary. ContextMenuActionLearnSpelling :: ContextMenuAction -- | Ignore grammar. ContextMenuActionIgnoreGrammar :: ContextMenuAction -- | Font options menu. ContextMenuActionFontMenu :: ContextMenuAction -- | Bold. ContextMenuActionBold :: ContextMenuAction -- | Italic. ContextMenuActionItalic :: ContextMenuAction -- | Underline. ContextMenuActionUnderline :: ContextMenuAction -- | Outline. ContextMenuActionOutline :: ContextMenuAction -- | Open current element in the inspector. ContextMenuActionInspectElement :: ContextMenuAction -- | Open current video element in a new window. ContextMenuActionOpenVideoInNewWindow :: ContextMenuAction -- | Open current audio element in a new window. ContextMenuActionOpenAudioInNewWindow :: ContextMenuAction -- | Copy video link location in to the clipboard. ContextMenuActionCopyVideoLinkToClipboard :: ContextMenuAction -- | Copy audio link location in to the clipboard. ContextMenuActionCopyAudioLinkToClipboard :: ContextMenuAction -- | Enable or disable media controls. ContextMenuActionToggleMediaControls :: ContextMenuAction -- | Enable or disable media loop. ContextMenuActionToggleMediaLoop :: ContextMenuAction -- | Show current video element in fullscreen mode. ContextMenuActionEnterVideoFullscreen :: ContextMenuAction -- | Play current media element. ContextMenuActionMediaPlay :: ContextMenuAction -- | Pause current media element. ContextMenuActionMediaPause :: ContextMenuAction -- | Mute current media element. ContextMenuActionMediaMute :: ContextMenuAction -- | Download video to disk. Since 2.2 ContextMenuActionDownloadVideoToDisk :: ContextMenuAction -- | Download audio to disk. Since 2.2 ContextMenuActionDownloadAudioToDisk :: ContextMenuAction -- | Insert an emoji. Since 2.26 ContextMenuActionInsertEmoji :: ContextMenuAction -- | Paste clipboard contents as plain text. Since 2.30 ContextMenuActionPasteAsPlainText :: ContextMenuAction -- | Custom action defined by applications. ContextMenuActionCustom :: ContextMenuAction -- | Catch-all for unknown values AnotherContextMenuAction :: Int -> ContextMenuAction -- | Enum values used to denote the cookie acceptance policies. data CookieAcceptPolicy -- | Accept all cookies unconditionally. CookieAcceptPolicyAlways :: CookieAcceptPolicy -- | Reject all cookies unconditionally. CookieAcceptPolicyNever :: CookieAcceptPolicy -- | Accept only cookies set by the main document loaded. CookieAcceptPolicyNoThirdParty :: CookieAcceptPolicy -- | Catch-all for unknown values AnotherCookieAcceptPolicy :: Int -> CookieAcceptPolicy -- | Enum values used to denote the cookie persistent storage types. data CookiePersistentStorage -- | Cookies are stored in a text file in the Mozilla "cookies.txt" format. CookiePersistentStorageText :: CookiePersistentStorage -- | Cookies are stored in a SQLite file in the current Mozilla format. CookiePersistentStorageSqlite :: CookiePersistentStorage -- | Catch-all for unknown values AnotherCookiePersistentStorage :: Int -> CookiePersistentStorage -- | Enum values representing the duration for which a credential persists. -- -- Since: 2.2 data CredentialPersistence -- | Credential does not persist CredentialPersistenceNone :: CredentialPersistence -- | Credential persists for session only CredentialPersistenceForSession :: CredentialPersistence -- | Credential persists permanently CredentialPersistencePermanent :: CredentialPersistence -- | Catch-all for unknown values AnotherCredentialPersistence :: Int -> CredentialPersistence -- | Enum values used to denote the various download errors. data DownloadError -- | Download failure due to network error DownloadErrorNetwork :: DownloadError -- | Download was cancelled by user DownloadErrorCancelledByUser :: DownloadError -- | Download failure due to destination error DownloadErrorDestination :: DownloadError -- | Catch-all for unknown values AnotherDownloadError :: Int -> DownloadError -- | Catch exceptions of type DownloadError. This is a specialized -- version of catchGErrorJustDomain. catchDownloadError :: IO a -> (DownloadError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type DownloadError. This is a specialized -- version of handleGErrorJustDomain. handleDownloadError :: (DownloadError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to denote the various errors related to the -- FaviconDatabase. data FaviconDatabaseError -- | The FaviconDatabase is closed FaviconDatabaseErrorNotInitialized :: FaviconDatabaseError -- | There is not an icon available for the requested URL FaviconDatabaseErrorFaviconNotFound :: FaviconDatabaseError -- | There might be an icon for the requested URL, but its data is unknown -- at the moment FaviconDatabaseErrorFaviconUnknown :: FaviconDatabaseError -- | Catch-all for unknown values AnotherFaviconDatabaseError :: Int -> FaviconDatabaseError -- | Catch exceptions of type FaviconDatabaseError. This is a -- specialized version of catchGErrorJustDomain. catchFaviconDatabaseError :: IO a -> (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type FaviconDatabaseError. This is a -- specialized version of handleGErrorJustDomain. handleFaviconDatabaseError :: (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used for determining the hardware acceleration policy. -- -- Since: 2.16 data HardwareAccelerationPolicy -- | Hardware acceleration is always enabled, even for websites not -- requesting it. HardwareAccelerationPolicyAlways :: HardwareAccelerationPolicy -- | Hardware acceleration is always disabled, even for websites requesting -- it. HardwareAccelerationPolicyNever :: HardwareAccelerationPolicy -- | Catch-all for unknown values AnotherHardwareAccelerationPolicy :: Int -> HardwareAccelerationPolicy -- | Enum values used to describe the primary purpose of the active -- editable element. -- -- Since: 2.28 data InputPurpose -- | Editable element expects any characters InputPurposeFreeForm :: InputPurpose -- | Editable element expects digits InputPurposeDigits :: InputPurpose -- | Editable element expects a number InputPurposeNumber :: InputPurpose -- | Editable element expects a telephone InputPurposePhone :: InputPurpose -- | Editable element expects a URL InputPurposeUrl :: InputPurpose -- | Editable element expects an email InputPurposeEmail :: InputPurpose -- | Editable element expects a password InputPurposePassword :: InputPurpose -- | Catch-all for unknown values AnotherInputPurpose :: Int -> InputPurpose -- | Enum values used to denote the different events which can trigger the -- detection of insecure content. data InsecureContentEvent -- | Insecure content has been detected by trying to execute any kind of -- logic (e.g. a script) from an untrusted source. InsecureContentEventRun :: InsecureContentEvent -- | Insecure content has been detected by trying to display any kind of -- resource (e.g. an image) from an untrusted source. InsecureContentEventDisplayed :: InsecureContentEvent -- | Catch-all for unknown values AnotherInsecureContentEvent :: Int -> InsecureContentEvent -- | Enum values used to denote errors happening when executing JavaScript data JavascriptError -- | An exception was raised in JavaScript execution JavascriptErrorScriptFailed :: JavascriptError -- | An unsupported parameter has been used to call and async function from -- API. Since 2.40 JavascriptErrorInvalidParameter :: JavascriptError -- | The result of JavaScript execution could not be returned. Since 2.40 JavascriptErrorInvalidResult :: JavascriptError -- | Catch-all for unknown values AnotherJavascriptError :: Int -> JavascriptError -- | Catch exceptions of type JavascriptError. This is a specialized -- version of catchGErrorJustDomain. catchJavascriptError :: IO a -> (JavascriptError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type JavascriptError. This is a -- specialized version of handleGErrorJustDomain. handleJavascriptError :: (JavascriptError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to denote the different events that happen during a -- WebView load operation. data LoadEvent -- | A new load request has been made. No data has been received yet, empty -- structures have been allocated to perform the load; the load may still -- fail due to transport issues such as not being able to resolve a name, -- or connect to a port. LoadEventStarted :: LoadEvent -- | A provisional data source received a server redirect. LoadEventRedirected :: LoadEvent -- | The content started arriving for a page load. The necessary transport -- requirements are established, and the load is being performed. LoadEventCommitted :: LoadEvent -- | Load completed. All resources are done loading or there was an error -- during the load operation. LoadEventFinished :: LoadEvent -- | Catch-all for unknown values AnotherLoadEvent :: Int -> LoadEvent -- | Enum values used to specify the capture state of a media device. -- -- Since: 2.34 data MediaCaptureState -- | Media capture is disabled. MediaCaptureStateNone :: MediaCaptureState -- | Media capture is active. MediaCaptureStateActive :: MediaCaptureState -- | Media capture is muted. MediaCaptureStateMuted :: MediaCaptureState -- | Catch-all for unknown values AnotherMediaCaptureState :: Int -> MediaCaptureState -- | Enum values used to denote the various media errors. -- -- Since: 2.40 data MediaError -- | Preliminary load failure for media content types. A new load will be -- started to perform the media load. Since: 2.40 MediaErrorLoad :: MediaError -- | Catch-all for unknown values AnotherMediaError :: Int -> MediaError -- | Catch exceptions of type MediaError. This is a specialized -- version of catchGErrorJustDomain. catchMediaError :: IO a -> (MediaError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type MediaError. This is a specialized -- version of handleGErrorJustDomain. handleMediaError :: (MediaError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to denote the various navigation types. data NavigationType -- | The navigation was triggered by clicking a link. NavigationTypeLinkClicked :: NavigationType -- | The navigation was triggered by submitting a form. NavigationTypeFormSubmitted :: NavigationType -- | The navigation was triggered by navigating forward or backward. NavigationTypeBackForward :: NavigationType -- | The navigation was triggered by reloading. NavigationTypeReload :: NavigationType -- | The navigation was triggered by resubmitting a form. NavigationTypeFormResubmitted :: NavigationType -- | The navigation was triggered by some other action. NavigationTypeOther :: NavigationType -- | Catch-all for unknown values AnotherNavigationType :: Int -> NavigationType -- | Enum values used to denote the various network errors. data NetworkError -- | Generic load failure NetworkErrorFailed :: NetworkError -- | Load failure due to transport error NetworkErrorTransport :: NetworkError -- | Load failure due to unknown protocol NetworkErrorUnknownProtocol :: NetworkError -- | Load failure due to cancellation NetworkErrorCancelled :: NetworkError -- | Load failure due to missing file NetworkErrorFileDoesNotExist :: NetworkError -- | Catch-all for unknown values AnotherNetworkError :: Int -> NetworkError -- | Catch exceptions of type NetworkError. This is a specialized -- version of catchGErrorJustDomain. catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type NetworkError. This is a specialized -- version of handleGErrorJustDomain. handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to set the network proxy mode. -- -- Since: 2.16 data NetworkProxyMode -- | Use the default proxy of the system. NetworkProxyModeDefault :: NetworkProxyMode -- | Do not use any proxy. NetworkProxyModeNoProxy :: NetworkProxyMode -- | Use custom proxy settings. NetworkProxyModeCustom :: NetworkProxyMode -- | Catch-all for unknown values AnotherNetworkProxyMode :: Int -> NetworkProxyMode -- | Enum values representing query permission results. -- -- Since: 2.40 data PermissionState -- | Access to the feature is granted. PermissionStateGranted :: PermissionState -- | Access to the feature is denied. PermissionStateDenied :: PermissionState -- | Access to the feature has to be requested via user prompt. PermissionStatePrompt :: PermissionState -- | Catch-all for unknown values AnotherPermissionState :: Int -> PermissionState -- | Enum values used for determining the type of a policy decision during -- WebView::decidePolicy. data PolicyDecisionType -- | This type of policy decision is requested when WebKit is about to -- navigate to a new page in either the main frame or a subframe. -- Acceptable policy decisions are either policyDecisionUse or -- policyDecisionIgnore. This type of policy decision is always a -- NavigationPolicyDecision. PolicyDecisionTypeNavigationAction :: PolicyDecisionType -- | This type of policy decision is requested when WebKit is about to -- create a new window. Acceptable policy decisions are either -- policyDecisionUse or policyDecisionIgnore. This type of -- policy decision is always a NavigationPolicyDecision. These -- decisions are useful for implementing special actions for new windows, -- such as forcing the new window to open in a tab when a keyboard -- modifier is active or handling a special target attribute on <a> -- elements. PolicyDecisionTypeNewWindowAction :: PolicyDecisionType -- | This type of decision is used when WebKit has received a response for -- a network resource and is about to start the load. Note that these -- resources include all subresources of a page such as images and -- stylesheets as well as main documents. Appropriate policy responses to -- this decision are policyDecisionUse, -- policyDecisionIgnore, or policyDecisionDownload. This -- type of policy decision is always a ResponsePolicyDecision. -- This decision is useful for forcing some types of resources to be -- downloaded rather than rendered in the WebView or to block the -- transfer of resources entirely. PolicyDecisionTypeResponse :: PolicyDecisionType -- | Catch-all for unknown values AnotherPolicyDecisionType :: Int -> PolicyDecisionType -- | Enum values used to denote the various policy errors. data PolicyError -- | Generic load failure due to policy error PolicyErrorFailed :: PolicyError -- | Load failure due to unsupported mime type PolicyErrorCannotShowMimeType :: PolicyError -- | Load failure due to URI that can not be shown PolicyErrorCannotShowUri :: PolicyError -- | Load failure due to frame load interruption by policy change PolicyErrorFrameLoadInterruptedByPolicyChange :: PolicyError -- | Load failure due to port restriction PolicyErrorCannotUseRestrictedPort :: PolicyError -- | Catch-all for unknown values AnotherPolicyError :: Int -> PolicyError -- | Catch exceptions of type PolicyError. This is a specialized -- version of catchGErrorJustDomain. catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type PolicyError. This is a specialized -- version of handleGErrorJustDomain. handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to denote the various print errors. data PrintError -- | Unspecified error during a print operation PrintErrorGeneral :: PrintError -- | Selected printer cannot be found PrintErrorPrinterNotFound :: PrintError -- | Invalid page range PrintErrorInvalidPageRange :: PrintError -- | Catch-all for unknown values AnotherPrintError :: Int -> PrintError -- | Catch exceptions of type PrintError. This is a specialized -- version of catchGErrorJustDomain. catchPrintError :: IO a -> (PrintError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type PrintError. This is a specialized -- version of handleGErrorJustDomain. handlePrintError :: (PrintError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values representing the response of the print dialog shown with -- printOperationRunDialog. data PrintOperationResponse -- | Print button was clicked in print dialog PrintOperationResponsePrint :: PrintOperationResponse -- | Print dialog was cancelled PrintOperationResponseCancel :: PrintOperationResponse -- | Catch-all for unknown values AnotherPrintOperationResponse :: Int -> PrintOperationResponse -- | Enum values to specify the different ways in which a WebView -- can save its current web page into a self-contained file. data SaveMode -- | Save the current page using the MHTML format. SaveModeMhtml :: SaveMode -- | Catch-all for unknown values AnotherSaveMode :: Int -> SaveMode -- | Enum values used for determining the type of ScriptDialog data ScriptDialogType -- | Alert script dialog, used to show a message to the user. ScriptDialogTypeAlert :: ScriptDialogType -- | Confirm script dialog, used to ask confirmation to the user. ScriptDialogTypeConfirm :: ScriptDialogType -- | Prompt script dialog, used to ask information to the user. ScriptDialogTypePrompt :: ScriptDialogType -- | Before unload confirm dialog, used to ask confirmation to leave the -- current page to the user. Since 2.12 ScriptDialogTypeBeforeUnloadConfirm :: ScriptDialogType -- | Catch-all for unknown values AnotherScriptDialogType :: Int -> ScriptDialogType -- | Enum values used to denote errors happening when creating snapshots of -- WebView data SnapshotError -- | An error occurred when creating a webpage snapshot. SnapshotErrorCreate :: SnapshotError -- | Catch-all for unknown values AnotherSnapshotError :: Int -> SnapshotError -- | Catch exceptions of type SnapshotError. This is a specialized -- version of catchGErrorJustDomain. catchSnapshotError :: IO a -> (SnapshotError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type SnapshotError. This is a specialized -- version of handleGErrorJustDomain. handleSnapshotError :: (SnapshotError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to specify the region from which to get a -- WebView snapshot data SnapshotRegion -- | Specifies a snapshot only for the area that is visible in the webview SnapshotRegionVisible :: SnapshotRegion -- | A snapshot of the entire document. SnapshotRegionFullDocument :: SnapshotRegion -- | Catch-all for unknown values AnotherSnapshotRegion :: Int -> SnapshotRegion -- | Enum values used to denote the TLS errors policy. data TLSErrorsPolicy -- | Ignore TLS errors. TLSErrorsPolicyIgnore :: TLSErrorsPolicy -- | TLS errors will emit WebView::loadFailedWithTlsErrors and, if -- the signal is handled, finish the load. In case the signal is not -- handled, WebView::loadFailed is emitted before the load -- finishes. TLSErrorsPolicyFail :: TLSErrorsPolicy -- | Catch-all for unknown values AnotherTLSErrorsPolicy :: Int -> TLSErrorsPolicy -- | Errors that can occur while compiling content filters. -- -- Since: 2.24 data UserContentFilterError -- | The JSON source for a content filter is invalid. UserContentFilterErrorInvalidSource :: UserContentFilterError -- | The requested content filter could not be found. UserContentFilterErrorNotFound :: UserContentFilterError -- | Catch-all for unknown values AnotherUserContentFilterError :: Int -> UserContentFilterError -- | Catch exceptions of type UserContentFilterError. This is a -- specialized version of catchGErrorJustDomain. catchUserContentFilterError :: IO a -> (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type UserContentFilterError. This is a -- specialized version of handleGErrorJustDomain. handleUserContentFilterError :: (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Specifies in which frames user style sheets are to be inserted in. -- -- Since: 2.6 data UserContentInjectedFrames -- | Insert the user style sheet in all the frames loaded by the web view, -- including nested frames. This is the default. UserContentInjectedFramesAllFrames :: UserContentInjectedFrames -- | Insert the user style sheet *only* in the top-level frame loaded by -- the web view, and *not* in the nested frames. UserContentInjectedFramesTopFrame :: UserContentInjectedFrames -- | Catch-all for unknown values AnotherUserContentInjectedFrames :: Int -> UserContentInjectedFrames -- | Enum values used to denote errors happening when sending user -- messages. -- -- Since: 2.28 data UserMessageError -- | The message was not handled by the receiver. UserMessageErrorMessage :: UserMessageError -- | Catch-all for unknown values AnotherUserMessageError :: Int -> UserMessageError -- | Catch exceptions of type UserMessageError. This is a -- specialized version of catchGErrorJustDomain. catchUserMessageError :: IO a -> (UserMessageError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type UserMessageError. This is a -- specialized version of handleGErrorJustDomain. handleUserMessageError :: (UserMessageError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Specifies at which place of documents an user script will be inserted. -- -- Since: 2.6 data UserScriptInjectionTime -- | Insert the code of the user script at the beginning of loaded -- documents. This is the default. UserScriptInjectionTimeStart :: UserScriptInjectionTime -- | Insert the code of the user script at the end of the loaded documents. UserScriptInjectionTimeEnd :: UserScriptInjectionTime -- | Catch-all for unknown values AnotherUserScriptInjectionTime :: Int -> UserScriptInjectionTime -- | Specifies how to treat an user style sheet. -- -- Since: 2.6 data UserStyleLevel -- | The style sheet is an user style sheet, its contents always override -- other style sheets. This is the default. UserStyleLevelUser :: UserStyleLevel -- | The style sheet will be treated as if it was provided by the loaded -- documents. That means other user style sheets may still override it. UserStyleLevelAuthor :: UserStyleLevel -- | Catch-all for unknown values AnotherUserStyleLevel :: Int -> UserStyleLevel -- | Enum values used for setting if a WebView is intended for -- WebExtensions. -- -- Since: 2.38 data WebExtensionMode -- | Not for an extension. WebExtensionModeNone :: WebExtensionMode -- | For a ManifestV2 extension. WebExtensionModeManifestv2 :: WebExtensionMode -- | For a ManifestV3 extension. WebExtensionModeManifestv3 :: WebExtensionMode -- | Catch-all for unknown values AnotherWebExtensionMode :: Int -> WebExtensionMode -- | Enum values used to specify the reason why the web process terminated -- abnormally. -- -- Since: 2.20 data WebProcessTerminationReason -- | the web process crashed. WebProcessTerminationReasonCrashed :: WebProcessTerminationReason -- | the web process exceeded the memory limit. WebProcessTerminationReasonExceededMemoryLimit :: WebProcessTerminationReason -- | the web process termination was requested by an API call. Since: 2.34 WebProcessTerminationReasonTerminatedByApi :: WebProcessTerminationReason -- | Catch-all for unknown values AnotherWebProcessTerminationReason :: Int -> WebProcessTerminationReason instance GHC.Classes.Eq GI.WebKit.Enums.WebProcessTerminationReason instance GHC.Show.Show GI.WebKit.Enums.WebProcessTerminationReason instance GHC.Classes.Eq GI.WebKit.Enums.WebExtensionMode instance GHC.Show.Show GI.WebKit.Enums.WebExtensionMode instance GHC.Classes.Eq GI.WebKit.Enums.UserStyleLevel instance GHC.Show.Show GI.WebKit.Enums.UserStyleLevel instance GHC.Classes.Eq GI.WebKit.Enums.UserScriptInjectionTime instance GHC.Show.Show GI.WebKit.Enums.UserScriptInjectionTime instance GHC.Classes.Eq GI.WebKit.Enums.UserMessageError instance GHC.Show.Show GI.WebKit.Enums.UserMessageError instance GHC.Classes.Eq GI.WebKit.Enums.UserContentInjectedFrames instance GHC.Show.Show GI.WebKit.Enums.UserContentInjectedFrames instance GHC.Classes.Eq GI.WebKit.Enums.UserContentFilterError instance GHC.Show.Show GI.WebKit.Enums.UserContentFilterError instance GHC.Classes.Eq GI.WebKit.Enums.TLSErrorsPolicy instance GHC.Show.Show GI.WebKit.Enums.TLSErrorsPolicy instance GHC.Classes.Eq GI.WebKit.Enums.SnapshotRegion instance GHC.Show.Show GI.WebKit.Enums.SnapshotRegion instance GHC.Classes.Eq GI.WebKit.Enums.SnapshotError instance GHC.Show.Show GI.WebKit.Enums.SnapshotError instance GHC.Classes.Eq GI.WebKit.Enums.ScriptDialogType instance GHC.Show.Show GI.WebKit.Enums.ScriptDialogType instance GHC.Classes.Eq GI.WebKit.Enums.SaveMode instance GHC.Show.Show GI.WebKit.Enums.SaveMode instance GHC.Classes.Eq GI.WebKit.Enums.PrintOperationResponse instance GHC.Show.Show GI.WebKit.Enums.PrintOperationResponse instance GHC.Classes.Eq GI.WebKit.Enums.PrintError instance GHC.Show.Show GI.WebKit.Enums.PrintError instance GHC.Classes.Eq GI.WebKit.Enums.PolicyError instance GHC.Show.Show GI.WebKit.Enums.PolicyError instance GHC.Classes.Eq GI.WebKit.Enums.PolicyDecisionType instance GHC.Show.Show GI.WebKit.Enums.PolicyDecisionType instance GHC.Classes.Eq GI.WebKit.Enums.PermissionState instance GHC.Show.Show GI.WebKit.Enums.PermissionState instance GHC.Classes.Eq GI.WebKit.Enums.NetworkProxyMode instance GHC.Show.Show GI.WebKit.Enums.NetworkProxyMode instance GHC.Classes.Eq GI.WebKit.Enums.NetworkError instance GHC.Show.Show GI.WebKit.Enums.NetworkError instance GHC.Classes.Eq GI.WebKit.Enums.NavigationType instance GHC.Show.Show GI.WebKit.Enums.NavigationType instance GHC.Classes.Eq GI.WebKit.Enums.MediaError instance GHC.Show.Show GI.WebKit.Enums.MediaError instance GHC.Classes.Eq GI.WebKit.Enums.MediaCaptureState instance GHC.Show.Show GI.WebKit.Enums.MediaCaptureState instance GHC.Classes.Eq GI.WebKit.Enums.LoadEvent instance GHC.Show.Show GI.WebKit.Enums.LoadEvent instance GHC.Classes.Eq GI.WebKit.Enums.JavascriptError instance GHC.Show.Show GI.WebKit.Enums.JavascriptError instance GHC.Classes.Eq GI.WebKit.Enums.InsecureContentEvent instance GHC.Show.Show GI.WebKit.Enums.InsecureContentEvent instance GHC.Classes.Eq GI.WebKit.Enums.InputPurpose instance GHC.Show.Show GI.WebKit.Enums.InputPurpose instance GHC.Classes.Eq GI.WebKit.Enums.HardwareAccelerationPolicy instance GHC.Show.Show GI.WebKit.Enums.HardwareAccelerationPolicy instance GHC.Classes.Eq GI.WebKit.Enums.FaviconDatabaseError instance GHC.Show.Show GI.WebKit.Enums.FaviconDatabaseError instance GHC.Classes.Eq GI.WebKit.Enums.DownloadError instance GHC.Show.Show GI.WebKit.Enums.DownloadError instance GHC.Classes.Eq GI.WebKit.Enums.CredentialPersistence instance GHC.Show.Show GI.WebKit.Enums.CredentialPersistence instance GHC.Classes.Eq GI.WebKit.Enums.CookiePersistentStorage instance GHC.Show.Show GI.WebKit.Enums.CookiePersistentStorage instance GHC.Classes.Eq GI.WebKit.Enums.CookieAcceptPolicy instance GHC.Show.Show GI.WebKit.Enums.CookieAcceptPolicy instance GHC.Classes.Eq GI.WebKit.Enums.ContextMenuAction instance GHC.Show.Show GI.WebKit.Enums.ContextMenuAction instance GHC.Classes.Eq GI.WebKit.Enums.CacheModel instance GHC.Show.Show GI.WebKit.Enums.CacheModel instance GHC.Classes.Eq GI.WebKit.Enums.AutoplayPolicy instance GHC.Show.Show GI.WebKit.Enums.AutoplayPolicy instance GHC.Classes.Eq GI.WebKit.Enums.AutomationBrowsingContextPresentation instance GHC.Show.Show GI.WebKit.Enums.AutomationBrowsingContextPresentation instance GHC.Classes.Eq GI.WebKit.Enums.AuthenticationScheme instance GHC.Show.Show GI.WebKit.Enums.AuthenticationScheme instance GHC.Enum.Enum GI.WebKit.Enums.AuthenticationScheme instance GHC.Classes.Ord GI.WebKit.Enums.AuthenticationScheme instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.AuthenticationScheme instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.AuthenticationScheme instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.AuthenticationScheme instance GHC.Enum.Enum GI.WebKit.Enums.AutomationBrowsingContextPresentation instance GHC.Classes.Ord GI.WebKit.Enums.AutomationBrowsingContextPresentation instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.AutomationBrowsingContextPresentation instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.AutomationBrowsingContextPresentation instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.AutomationBrowsingContextPresentation instance GHC.Enum.Enum GI.WebKit.Enums.AutoplayPolicy instance GHC.Classes.Ord GI.WebKit.Enums.AutoplayPolicy instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.AutoplayPolicy instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.AutoplayPolicy instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.AutoplayPolicy instance GHC.Enum.Enum GI.WebKit.Enums.CacheModel instance GHC.Classes.Ord GI.WebKit.Enums.CacheModel instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.CacheModel instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.CacheModel instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.CacheModel instance GHC.Enum.Enum GI.WebKit.Enums.ContextMenuAction instance GHC.Classes.Ord GI.WebKit.Enums.ContextMenuAction instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.ContextMenuAction instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.ContextMenuAction instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.ContextMenuAction instance GHC.Enum.Enum GI.WebKit.Enums.CookieAcceptPolicy instance GHC.Classes.Ord GI.WebKit.Enums.CookieAcceptPolicy instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.CookieAcceptPolicy instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.CookieAcceptPolicy instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.CookieAcceptPolicy instance GHC.Enum.Enum GI.WebKit.Enums.CookiePersistentStorage instance GHC.Classes.Ord GI.WebKit.Enums.CookiePersistentStorage instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.CookiePersistentStorage instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.CookiePersistentStorage instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.CookiePersistentStorage instance GHC.Enum.Enum GI.WebKit.Enums.CredentialPersistence instance GHC.Classes.Ord GI.WebKit.Enums.CredentialPersistence instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.CredentialPersistence instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.CredentialPersistence instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.CredentialPersistence instance GHC.Enum.Enum GI.WebKit.Enums.DownloadError instance GHC.Classes.Ord GI.WebKit.Enums.DownloadError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.DownloadError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.DownloadError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.DownloadError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.DownloadError instance GHC.Enum.Enum GI.WebKit.Enums.FaviconDatabaseError instance GHC.Classes.Ord GI.WebKit.Enums.FaviconDatabaseError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.FaviconDatabaseError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.FaviconDatabaseError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.FaviconDatabaseError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.FaviconDatabaseError instance GHC.Enum.Enum GI.WebKit.Enums.HardwareAccelerationPolicy instance GHC.Classes.Ord GI.WebKit.Enums.HardwareAccelerationPolicy instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.HardwareAccelerationPolicy instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.HardwareAccelerationPolicy instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.HardwareAccelerationPolicy instance GHC.Enum.Enum GI.WebKit.Enums.InputPurpose instance GHC.Classes.Ord GI.WebKit.Enums.InputPurpose instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.InputPurpose instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.InputPurpose instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.InputPurpose instance GHC.Enum.Enum GI.WebKit.Enums.InsecureContentEvent instance GHC.Classes.Ord GI.WebKit.Enums.InsecureContentEvent instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.InsecureContentEvent instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.InsecureContentEvent instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.InsecureContentEvent instance GHC.Enum.Enum GI.WebKit.Enums.JavascriptError instance GHC.Classes.Ord GI.WebKit.Enums.JavascriptError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.JavascriptError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.JavascriptError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.JavascriptError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.JavascriptError instance GHC.Enum.Enum GI.WebKit.Enums.LoadEvent instance GHC.Classes.Ord GI.WebKit.Enums.LoadEvent instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.LoadEvent instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.LoadEvent instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.LoadEvent instance GHC.Enum.Enum GI.WebKit.Enums.MediaCaptureState instance GHC.Classes.Ord GI.WebKit.Enums.MediaCaptureState instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.MediaCaptureState instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.MediaCaptureState instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.MediaCaptureState instance GHC.Enum.Enum GI.WebKit.Enums.MediaError instance GHC.Classes.Ord GI.WebKit.Enums.MediaError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.MediaError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.MediaError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.MediaError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.MediaError instance GHC.Enum.Enum GI.WebKit.Enums.NavigationType instance GHC.Classes.Ord GI.WebKit.Enums.NavigationType instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.NavigationType instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.NavigationType instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.NavigationType instance GHC.Enum.Enum GI.WebKit.Enums.NetworkError instance GHC.Classes.Ord GI.WebKit.Enums.NetworkError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.NetworkError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.NetworkError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.NetworkError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.NetworkError instance GHC.Enum.Enum GI.WebKit.Enums.NetworkProxyMode instance GHC.Classes.Ord GI.WebKit.Enums.NetworkProxyMode instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.NetworkProxyMode instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.NetworkProxyMode instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.NetworkProxyMode instance GHC.Enum.Enum GI.WebKit.Enums.PermissionState instance GHC.Classes.Ord GI.WebKit.Enums.PermissionState instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.PermissionState instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.PermissionState instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.PermissionState instance GHC.Enum.Enum GI.WebKit.Enums.PolicyDecisionType instance GHC.Classes.Ord GI.WebKit.Enums.PolicyDecisionType instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.PolicyDecisionType instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.PolicyDecisionType instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.PolicyDecisionType instance GHC.Enum.Enum GI.WebKit.Enums.PolicyError instance GHC.Classes.Ord GI.WebKit.Enums.PolicyError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.PolicyError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.PolicyError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.PolicyError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.PolicyError instance GHC.Enum.Enum GI.WebKit.Enums.PrintError instance GHC.Classes.Ord GI.WebKit.Enums.PrintError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.PrintError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.PrintError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.PrintError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.PrintError instance GHC.Enum.Enum GI.WebKit.Enums.PrintOperationResponse instance GHC.Classes.Ord GI.WebKit.Enums.PrintOperationResponse instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.PrintOperationResponse instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.PrintOperationResponse instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.PrintOperationResponse instance GHC.Enum.Enum GI.WebKit.Enums.SaveMode instance GHC.Classes.Ord GI.WebKit.Enums.SaveMode instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.SaveMode instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.SaveMode instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.SaveMode instance GHC.Enum.Enum GI.WebKit.Enums.ScriptDialogType instance GHC.Classes.Ord GI.WebKit.Enums.ScriptDialogType instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.ScriptDialogType instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.ScriptDialogType instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.ScriptDialogType instance GHC.Enum.Enum GI.WebKit.Enums.SnapshotError instance GHC.Classes.Ord GI.WebKit.Enums.SnapshotError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.SnapshotError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.SnapshotError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.SnapshotError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.SnapshotError instance GHC.Enum.Enum GI.WebKit.Enums.SnapshotRegion instance GHC.Classes.Ord GI.WebKit.Enums.SnapshotRegion instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.SnapshotRegion instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.SnapshotRegion instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.SnapshotRegion instance GHC.Enum.Enum GI.WebKit.Enums.TLSErrorsPolicy instance GHC.Classes.Ord GI.WebKit.Enums.TLSErrorsPolicy instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.TLSErrorsPolicy instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.TLSErrorsPolicy instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.TLSErrorsPolicy instance GHC.Enum.Enum GI.WebKit.Enums.UserContentFilterError instance GHC.Classes.Ord GI.WebKit.Enums.UserContentFilterError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.UserContentFilterError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.UserContentFilterError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.UserContentFilterError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.UserContentFilterError instance GHC.Enum.Enum GI.WebKit.Enums.UserContentInjectedFrames instance GHC.Classes.Ord GI.WebKit.Enums.UserContentInjectedFrames instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.UserContentInjectedFrames instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.UserContentInjectedFrames instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.UserContentInjectedFrames instance GHC.Enum.Enum GI.WebKit.Enums.UserMessageError instance GHC.Classes.Ord GI.WebKit.Enums.UserMessageError instance Data.GI.Base.GError.GErrorClass GI.WebKit.Enums.UserMessageError instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.UserMessageError instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.UserMessageError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.UserMessageError instance GHC.Enum.Enum GI.WebKit.Enums.UserScriptInjectionTime instance GHC.Classes.Ord GI.WebKit.Enums.UserScriptInjectionTime instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.UserScriptInjectionTime instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.UserScriptInjectionTime instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.UserScriptInjectionTime instance GHC.Enum.Enum GI.WebKit.Enums.UserStyleLevel instance GHC.Classes.Ord GI.WebKit.Enums.UserStyleLevel instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.UserStyleLevel instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.UserStyleLevel instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.UserStyleLevel instance GHC.Enum.Enum GI.WebKit.Enums.WebExtensionMode instance GHC.Classes.Ord GI.WebKit.Enums.WebExtensionMode instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.WebExtensionMode instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.WebExtensionMode instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.WebExtensionMode instance GHC.Enum.Enum GI.WebKit.Enums.WebProcessTerminationReason instance GHC.Classes.Ord GI.WebKit.Enums.WebProcessTerminationReason instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Enums.WebProcessTerminationReason instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Enums.WebProcessTerminationReason instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit.Enums.WebProcessTerminationReason module GI.WebKit.Flags -- | Enum values with flags representing typing attributes. -- -- Since: 2.10 data EditorTypingAttributes -- | No typing attributes. EditorTypingAttributesNone :: EditorTypingAttributes -- | Bold typing attribute. EditorTypingAttributesBold :: EditorTypingAttributes -- | Italic typing attribute. EditorTypingAttributesItalic :: EditorTypingAttributes -- | Underline typing attribute. EditorTypingAttributesUnderline :: EditorTypingAttributes -- | Strikethrough typing attribute. EditorTypingAttributesStrikethrough :: EditorTypingAttributes -- | Catch-all for unknown values AnotherEditorTypingAttributes :: Int -> EditorTypingAttributes -- | Enum values used to specify search options. data FindOptions -- | no search flags, this means a case sensitive, no wrap, forward only -- search. FindOptionsNone :: FindOptions -- | case insensitive search. FindOptionsCaseInsensitive :: FindOptions -- | search text only at the begining of the words. FindOptionsAtWordStarts :: FindOptions -- | treat capital letters in the middle of words as word start. FindOptionsTreatMedialCapitalAsWordStart :: FindOptions -- | search backwards. FindOptionsBackwards :: FindOptions -- | if not present search will stop at the end of the document. FindOptionsWrapAround :: FindOptions -- | Catch-all for unknown values AnotherFindOptions :: Int -> FindOptions -- | Enum values with flags representing the context of a -- HitTestResult. data HitTestResultContext -- | anywhere in the document. HitTestResultContextDocument :: HitTestResultContext -- | a hyperlink element. HitTestResultContextLink :: HitTestResultContext -- | an image element. HitTestResultContextImage :: HitTestResultContext -- | a video or audio element. HitTestResultContextMedia :: HitTestResultContext -- | an editable element HitTestResultContextEditable :: HitTestResultContext -- | a scrollbar element. HitTestResultContextScrollbar :: HitTestResultContext -- | a selected element. Since 2.8 HitTestResultContextSelection :: HitTestResultContext -- | Catch-all for unknown values AnotherHitTestResultContext :: Int -> HitTestResultContext -- | Enum values used to describe hints that might be taken into account by -- input methods. -- -- Since: 2.28 data InputHints -- | No special behavior suggested InputHintsNone :: InputHints -- | Suggest spell checking InputHintsSpellcheck :: InputHints -- | Suggest to not autocapitlize InputHintsLowercase :: InputHints -- | Suggest to capitalize all text InputHintsUppercaseChars :: InputHints -- | Suggest to capitalize the first character of each word InputHintsUppercaseWords :: InputHints -- | Suggest to capitalize the first word of each sentence InputHintsUppercaseSentences :: InputHints -- | Suggest to not show an onscreen keyboard InputHintsInhibitOsk :: InputHints -- | Catch-all for unknown values AnotherInputHints :: Int -> InputHints -- | Enum values used to specify options when taking a snapshot from a -- WebView. data SnapshotOptions -- | Do not include any special options. SnapshotOptionsNone :: SnapshotOptions -- | Whether to include in the snapshot the highlight of the selected -- content. SnapshotOptionsIncludeSelectionHighlighting :: SnapshotOptions -- | Do not fill the background with white before rendering the snapshot. -- Since 2.8 SnapshotOptionsTransparentBackground :: SnapshotOptions -- | Catch-all for unknown values AnotherSnapshotOptions :: Int -> SnapshotOptions -- | Enum values with flags representing types of Website data. -- -- Since: 2.16 data WebsiteDataTypes -- | Memory cache. WebsiteDataTypesMemoryCache :: WebsiteDataTypes -- | HTTP disk cache. WebsiteDataTypesDiskCache :: WebsiteDataTypes -- | Offline web application cache. WebsiteDataTypesOfflineApplicationCache :: WebsiteDataTypes -- | Session storage data. WebsiteDataTypesSessionStorage :: WebsiteDataTypes -- | Local storage data. WebsiteDataTypesLocalStorage :: WebsiteDataTypes -- | IndexedDB databases. WebsiteDataTypesIndexeddbDatabases :: WebsiteDataTypes -- | Cookies. WebsiteDataTypesCookies :: WebsiteDataTypes -- | Hash salt used to generate the device ids used by webpages. WebsiteDataTypesDeviceIdHashSalt :: WebsiteDataTypes -- | HSTS cache. WebsiteDataTypesHstsCache :: WebsiteDataTypes -- | Intelligent Tracking Prevention data. WebsiteDataTypesItp :: WebsiteDataTypes -- | Service worker registrations. WebsiteDataTypesServiceWorkerRegistrations :: WebsiteDataTypes -- | DOM (CacheStorage) cache. WebsiteDataTypesDomCache :: WebsiteDataTypes -- | All types. WebsiteDataTypesAll :: WebsiteDataTypes -- | Catch-all for unknown values AnotherWebsiteDataTypes :: Int -> WebsiteDataTypes instance GHC.Classes.Eq GI.WebKit.Flags.WebsiteDataTypes instance GHC.Show.Show GI.WebKit.Flags.WebsiteDataTypes instance GHC.Classes.Eq GI.WebKit.Flags.SnapshotOptions instance GHC.Show.Show GI.WebKit.Flags.SnapshotOptions instance GHC.Classes.Eq GI.WebKit.Flags.InputHints instance GHC.Show.Show GI.WebKit.Flags.InputHints instance GHC.Classes.Eq GI.WebKit.Flags.HitTestResultContext instance GHC.Show.Show GI.WebKit.Flags.HitTestResultContext instance GHC.Classes.Eq GI.WebKit.Flags.FindOptions instance GHC.Show.Show GI.WebKit.Flags.FindOptions instance GHC.Classes.Eq GI.WebKit.Flags.EditorTypingAttributes instance GHC.Show.Show GI.WebKit.Flags.EditorTypingAttributes instance GHC.Enum.Enum GI.WebKit.Flags.EditorTypingAttributes instance GHC.Classes.Ord GI.WebKit.Flags.EditorTypingAttributes instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.EditorTypingAttributes instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.EditorTypingAttributes instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.EditorTypingAttributes instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.EditorTypingAttributes instance GHC.Enum.Enum GI.WebKit.Flags.FindOptions instance GHC.Classes.Ord GI.WebKit.Flags.FindOptions instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.FindOptions instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.FindOptions instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.FindOptions instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.FindOptions instance GHC.Enum.Enum GI.WebKit.Flags.HitTestResultContext instance GHC.Classes.Ord GI.WebKit.Flags.HitTestResultContext instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.HitTestResultContext instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.HitTestResultContext instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.HitTestResultContext instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.HitTestResultContext instance GHC.Enum.Enum GI.WebKit.Flags.InputHints instance GHC.Classes.Ord GI.WebKit.Flags.InputHints instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.InputHints instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.InputHints instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.InputHints instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.InputHints instance GHC.Enum.Enum GI.WebKit.Flags.SnapshotOptions instance GHC.Classes.Ord GI.WebKit.Flags.SnapshotOptions instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.SnapshotOptions instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.SnapshotOptions instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.SnapshotOptions instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.SnapshotOptions instance GHC.Enum.Enum GI.WebKit.Flags.WebsiteDataTypes instance GHC.Classes.Ord GI.WebKit.Flags.WebsiteDataTypes instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Flags.WebsiteDataTypes instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Flags.WebsiteDataTypes instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit.Flags.WebsiteDataTypes instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit.Flags.WebsiteDataTypes -- | A permission request. -- -- There are situations where an embedder would need to ask the user for -- permission to do certain types of operations, such as switching to -- fullscreen mode or reporting the user's location through the standard -- Geolocation API. In those cases, WebKit will emit a -- WebView::permissionRequest signal with a -- PermissionRequest object attached to it. module GI.WebKit.Interfaces.PermissionRequest -- | Memory-managed wrapper type. newtype PermissionRequest PermissionRequest :: ManagedPtr PermissionRequest -> PermissionRequest -- | Type class for types which can be safely cast to -- PermissionRequest, for instance with -- toPermissionRequest. class (GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o -- | Cast to PermissionRequest, for types for which this is known to -- be safe. For general casts, use castTo. toPermissionRequest :: (MonadIO m, IsPermissionRequest o) => o -> m PermissionRequest -- | Allow the action which triggered this request. permissionRequestAllow :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m () -- | Deny the action which triggered this request. permissionRequestDeny :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m () instance GHC.Classes.Eq GI.WebKit.Interfaces.PermissionRequest.PermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Interfaces.PermissionRequest.PermissionRequest o) => GI.WebKit.Interfaces.PermissionRequest.IsPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Interfaces.PermissionRequest.PermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Interfaces.PermissionRequest.PermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Interfaces.PermissionRequest.PermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Interfaces.PermissionRequest.PermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Interfaces.PermissionRequest.PermissionRequest) module GI.WebKit.Interfaces -- | One item of the BackForwardList. -- -- A history item is part of the BackForwardList and consists out -- of a title and a URI. module GI.WebKit.Objects.BackForwardListItem -- | Memory-managed wrapper type. newtype BackForwardListItem BackForwardListItem :: ManagedPtr BackForwardListItem -> BackForwardListItem -- | Type class for types which can be safely cast to -- BackForwardListItem, for instance with -- toBackForwardListItem. class (GObject o, IsDescendantOf BackForwardListItem o) => IsBackForwardListItem o -- | Cast to BackForwardListItem, for types for which this is known -- to be safe. For general casts, use castTo. toBackForwardListItem :: (MonadIO m, IsBackForwardListItem o) => o -> m BackForwardListItem -- | Obtain the original URI of the item. -- -- See also backForwardListItemGetUri. backForwardListItemGetOriginalUri :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text -- | Obtain the title of the item. backForwardListItemGetTitle :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text -- | Obtain the URI of the item. -- -- This URI may differ from the original URI if the page was, for -- example, redirected to a new location. See also -- backForwardListItemGetOriginalUri. backForwardListItemGetUri :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text instance GHC.Classes.Eq GI.WebKit.Objects.BackForwardListItem.BackForwardListItem instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.BackForwardListItem.BackForwardListItem o) => GI.WebKit.Objects.BackForwardListItem.IsBackForwardListItem o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.BackForwardListItem.BackForwardListItem instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.BackForwardListItem.BackForwardListItem instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.BackForwardListItem.BackForwardListItem instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.BackForwardListItem.BackForwardListItem instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.BackForwardListItem.BackForwardListItem) -- | List of visited pages. -- -- WebKitBackForwardList maintains a list of visited pages used to -- navigate to recent pages. Items are inserted in the list in the order -- they are visited. -- -- WebKitBackForwardList also maintains the notion of the current item -- (which is always at index 0), the preceding item (which is at index -- -1), and the following item (which is at index 1). Methods -- webViewGoBack and webViewGoForward move the current item -- backward or forward by one. Method -- webViewGoToBackForwardListItem sets the current item to the -- specified item. All other methods returning -- BackForwardListItems do not change the value of the current -- item, they just return the requested item or items. module GI.WebKit.Objects.BackForwardList -- | Memory-managed wrapper type. newtype BackForwardList BackForwardList :: ManagedPtr BackForwardList -> BackForwardList -- | Type class for types which can be safely cast to -- BackForwardList, for instance with toBackForwardList. class (GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o -- | Cast to BackForwardList, for types for which this is known to -- be safe. For general casts, use castTo. toBackForwardList :: (MonadIO m, IsBackForwardList o) => o -> m BackForwardList -- | Returns the item that precedes the current item. backForwardListGetBackItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem) -- | Obtain the list of items preceding the current one. backForwardListGetBackList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem] -- | Obtain a list up to some number of items preceding the current one. backForwardListGetBackListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem] -- | Returns the current item in backForwardList. backForwardListGetCurrentItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem) -- | Returns the item that follows the current item. backForwardListGetForwardItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem) -- | Obtain the list of items following the current one. backForwardListGetForwardList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem] -- | Obtain a list up to some number of items following the current one. backForwardListGetForwardListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem] -- | Obtain the amount of items in the list. backForwardListGetLength :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m Word32 -- | Returns the item at a given index relative to the current item. backForwardListGetNthItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Int32 -> m (Maybe BackForwardListItem) -- | This signal is emitted when backForwardList changes. -- This happens when the current item is updated, a new item is added or -- one or more items are removed. Note that both -- itemAdded and itemsRemoved can -- Nothing when only the current item is updated. Items are only -- removed when the list is cleared or the maximum items limit is -- reached. type BackForwardListChangedCallback = -- | /@itemAdded@/: the t'GI.WebKit.Objects.BackForwardListItem.BackForwardListItem' added or 'P.Nothing' Maybe BackForwardListItem -> -- | /@itemsRemoved@/: a t'GI.GLib.Structs.List.List' of t'GI.WebKit.Objects.BackForwardListItem.BackForwardListItem's Ptr () -> IO () -- | Connect a signal handler for the changed signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after backForwardList #changed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: a) => BackForwardListChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the changed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on backForwardList #changed callback --onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: a) => BackForwardListChangedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.BackForwardList.BackForwardList instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.BackForwardList.BackForwardList o) => GI.WebKit.Objects.BackForwardList.IsBackForwardList o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.BackForwardList.BackForwardList instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.BackForwardList.BackForwardList instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.BackForwardList.BackForwardList instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.BackForwardList.BackForwardList instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.BackForwardList.BackForwardList) -- | A request to open a color chooser. -- -- Whenever the user interacts with an <input type='color' /> HTML -- element, WebKit will need to show a dialog to choose a color. For that -- to happen in a general way, instead of just opening a -- ColorChooser (which might be not desirable in some cases, which -- could prefer to use their own color chooser dialog), WebKit will fire -- the WebView::runColorChooser signal with a -- ColorChooserRequest object, which will allow the client -- application to specify the color to be selected, to inspect the -- details of the request (e.g. to get initial color) and to cancel the -- request, in case nothing was selected. -- -- In case the client application does not wish to handle this signal, -- WebKit will provide a default handler which will asynchronously run a -- regular ColorChooserDialog for the user to interact with. module GI.WebKit.Objects.ColorChooserRequest -- | Memory-managed wrapper type. newtype ColorChooserRequest ColorChooserRequest :: ManagedPtr ColorChooserRequest -> ColorChooserRequest -- | Type class for types which can be safely cast to -- ColorChooserRequest, for instance with -- toColorChooserRequest. class (GObject o, IsDescendantOf ColorChooserRequest o) => IsColorChooserRequest o -- | Cast to ColorChooserRequest, for types for which this is known -- to be safe. For general casts, use castTo. toColorChooserRequest :: (MonadIO m, IsColorChooserRequest o) => o -> m ColorChooserRequest -- | Cancels request and the input element changes to use -- the initial color. -- -- Cancels request and the input element changes to use -- the initial color it has before the request started. The signal -- ColorChooserRequest::finished is emitted to notify that the -- request has finished. -- -- Since: 2.8 colorChooserRequestCancel :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m () -- | Finishes request and the input element keeps the -- current value of ColorChooserRequest:rgba. -- -- Finishes request and the input element keeps the -- current value of ColorChooserRequest:rgba. The signal -- ColorChooserRequest::finished is emitted to notify that the -- request has finished. -- -- Since: 2.8 colorChooserRequestFinish :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m () -- | Gets the bounding box of the color input element. -- -- Since: 2.8 colorChooserRequestGetElementRectangle :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m Rectangle -- | Gets the current RGBA color of request -- -- Since: 2.8 colorChooserRequestGetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m RGBA -- | Sets the current RGBA color of request -- -- Since: 2.8 colorChooserRequestSetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> RGBA -> m () -- | Construct a GValueConstruct with valid value for the -- “rgba” property. This is rarely needed directly, but it is -- used by new. constructColorChooserRequestRgba :: (IsColorChooserRequest o, MonadIO m) => RGBA -> m (GValueConstruct o) -- | Get the value of the “rgba” property. When overloading -- is enabled, this is equivalent to -- --
-- get colorChooserRequest #rgba --getColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> m (Maybe RGBA) -- | Set the value of the “rgba” property. When overloading -- is enabled, this is equivalent to -- --
-- set colorChooserRequest [ #rgba := value ] --setColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> RGBA -> m () -- | Emitted when the request finishes. This signal can be -- emitted because the user completed the request calling -- colorChooserRequestFinish, or cancelled it with -- colorChooserRequestCancel or because the color input element is -- removed from the DOM. -- -- Since: 2.8 type ColorChooserRequestFinishedCallback = IO () -- | Connect a signal handler for the finished signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after colorChooserRequest #finished callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ((?self :: a) => ColorChooserRequestFinishedCallback) -> m SignalHandlerId -- | Connect a signal handler for the finished signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on colorChooserRequest #finished callback --onColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ((?self :: a) => ColorChooserRequestFinishedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest o) => GI.WebKit.Objects.ColorChooserRequest.IsColorChooserRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest) -- | One item of a ContextMenu. -- -- The ContextMenu is composed of ContextMenuItems. These -- items can be created from a GtkAction, from a -- ContextMenuAction or from a ContextMenuAction and a -- label. These ContextMenuActions denote stock actions for the -- items. You can also create separators and submenus. module GI.WebKit.Objects.ContextMenuItem -- | Memory-managed wrapper type. newtype ContextMenuItem ContextMenuItem :: ManagedPtr ContextMenuItem -> ContextMenuItem -- | Type class for types which can be safely cast to -- ContextMenuItem, for instance with toContextMenuItem. class (GObject o, IsDescendantOf ContextMenuItem o) => IsContextMenuItem o -- | Cast to ContextMenuItem, for types for which this is known to -- be safe. For general casts, use castTo. toContextMenuItem :: (MonadIO m, IsContextMenuItem o) => o -> m ContextMenuItem -- | Gets the action associated to item as a Action. -- -- Since: 2.18 contextMenuItemGetGaction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m Action -- | Gets the ContextMenuAction of item. -- -- If the ContextMenuItem was not created for a stock action -- ContextMenuActionCustom will be returned. If the -- ContextMenuItem is a separator ContextMenuActionNoAction -- will be returned. contextMenuItemGetStockAction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m ContextMenuAction -- | Gets the submenu of item. contextMenuItemGetSubmenu :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m ContextMenu -- | Checks whether item is a separator. contextMenuItemIsSeparator :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m Bool -- | Creates a new ContextMenuItem for the given -- action and label. -- -- On activation target will be passed as parameter to -- the callback. -- -- Since: 2.18 contextMenuItemNewFromGaction :: (HasCallStack, MonadIO m, IsAction a) => a -> Text -> Maybe GVariant -> m ContextMenuItem -- | Creates a new ContextMenuItem for the given stock action. -- -- Stock actions are handled automatically by WebKit so that, for -- example, when a menu item created with a ContextMenuActionStop -- is activated the action associated will be handled by WebKit and the -- current load operation will be stopped. You can get the Action -- of a ContextMenuItem created with a ContextMenuAction -- with contextMenuItemGetGaction and connect to the -- SimpleAction::activate signal to be notified when the item is -- activated, but you can't prevent the associated action from being -- performed. contextMenuItemNewFromStockAction :: (HasCallStack, MonadIO m) => ContextMenuAction -> m ContextMenuItem -- | Creates a new ContextMenuItem for the given stock action using -- the given label. -- -- Stock actions have a predefined label, this method can be used to -- create a ContextMenuItem for a ContextMenuAction but -- using a custom label. contextMenuItemNewFromStockActionWithLabel :: (HasCallStack, MonadIO m) => ContextMenuAction -> Text -> m ContextMenuItem -- | Creates a new ContextMenuItem representing a separator. contextMenuItemNewSeparator :: (HasCallStack, MonadIO m) => m ContextMenuItem -- | Creates a new ContextMenuItem using the given -- label with a submenu. contextMenuItemNewWithSubmenu :: (HasCallStack, MonadIO m, IsContextMenu a) => Text -> a -> m ContextMenuItem -- | Sets or replaces the item submenu. -- -- If submenu is Nothing the current submenu of -- item is removed. contextMenuItemSetSubmenu :: (HasCallStack, MonadIO m, IsContextMenuItem a, IsContextMenu b) => a -> Maybe b -> m () instance GHC.Classes.Eq GI.WebKit.Objects.ContextMenuItem.ContextMenuItem instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.ContextMenuItem.ContextMenuItem o) => GI.WebKit.Objects.ContextMenuItem.IsContextMenuItem o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.ContextMenuItem.ContextMenuItem instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.ContextMenuItem.ContextMenuItem instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.ContextMenuItem.ContextMenuItem instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.ContextMenuItem.ContextMenuItem instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.ContextMenuItem.ContextMenuItem) -- | Represents the context menu in a WebView. -- -- ContextMenu represents a context menu containing -- ContextMenuItems in a WebView. -- -- When a WebView is about to display the context menu, it emits -- the WebView::contextMenu signal, which has the -- ContextMenu as an argument. You can modify it, adding new -- submenus that you can create with contextMenuNew, adding new -- ContextMenuItems with contextMenuPrepend, -- contextMenuAppend or contextMenuInsert, maybe after -- having removed the existing ones with contextMenuRemoveAll. module GI.WebKit.Objects.ContextMenu -- | Memory-managed wrapper type. newtype ContextMenu ContextMenu :: ManagedPtr ContextMenu -> ContextMenu -- | Type class for types which can be safely cast to ContextMenu, -- for instance with toContextMenu. class (GObject o, IsDescendantOf ContextMenu o) => IsContextMenu o -- | Cast to ContextMenu, for types for which this is known to be -- safe. For general casts, use castTo. toContextMenu :: (MonadIO m, IsContextMenu o) => o -> m ContextMenu -- | Adds item at the end of the menu. contextMenuAppend :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m () -- | Gets the first item in the menu. contextMenuFirst :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m ContextMenuItem -- | Gets the Event that triggered the context menu. This function -- only returns a valid Event when called for a ContextMenu -- passed to WebView::contextMenu signal; in all other cases, -- Nothing is returned. -- -- The returned Event is expected to be one of the following -- types: <itemizedlist> <listitem><para> a -- GdkEventButton of type EventTypeButtonPress -- when the context menu was triggered with mouse. -- </para></listitem> <listitem><para> a -- GdkEventKey of type EventTypeKeyPress if the -- keyboard was used to show the menu. </para></listitem> -- <listitem><para> a generic Event of type -- GDK_NOTHING when the -- Widget::popup-menu signal was used to show the -- context menu. </para></listitem> </itemizedlist> -- -- Since: 2.40 contextMenuGetEvent :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m Event -- | Gets the item at the given position in the menu. contextMenuGetItemAtPosition :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> Word32 -> m ContextMenuItem -- | Returns the item list of menu. contextMenuGetItems :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m [ContextMenuItem] -- | Gets the length of the menu. contextMenuGetNItems :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m Word32 -- | Gets the user data of menu. -- -- This function can be used from the UI Process to get user data -- previously set from the Web Process with -- contextMenuSetUserData. -- -- Since: 2.8 contextMenuGetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m GVariant -- | Inserts item into the menu at the -- given position. -- -- If position is negative, or is larger than the number -- of items in the ContextMenu, the item is added on to the end of -- the menu. The first position is 0. contextMenuInsert :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> Int32 -> m () -- | Gets the last item in the menu. contextMenuLast :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m ContextMenuItem -- | Moves item to the given position in the -- menu. -- -- If position is negative, or is larger than the number -- of items in the ContextMenu, the item is added on to the end of -- the menu. The first position is 0. contextMenuMoveItem :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> Int32 -> m () -- | Creates a new ContextMenu object. -- -- Creates a new ContextMenu object to be used as a submenu of an -- existing ContextMenu. The context menu of a WebView is -- created by the view and passed as an argument of -- WebView::contextMenu signal. To add items to the menu use -- contextMenuPrepend, contextMenuAppend or -- contextMenuInsert. See also contextMenuNewWithItems to -- create a ContextMenu with a list of initial items. contextMenuNew :: (HasCallStack, MonadIO m) => m ContextMenu -- | Creates a new ContextMenu object with the given items. -- -- Creates a new ContextMenu object to be used as a submenu of an -- existing ContextMenu with the given initial items. See also -- contextMenuNew contextMenuNewWithItems :: (HasCallStack, MonadIO m, IsContextMenuItem a) => [a] -> m ContextMenu -- | Adds item at the beginning of the -- menu. contextMenuPrepend :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m () -- | Removes item from the menu. -- -- See also contextMenuRemoveAll to remove all items. contextMenuRemove :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m () -- | Removes all items of the menu. contextMenuRemoveAll :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m () -- | Sets user data to menu. -- -- This function can be used from a Web Process extension to set user -- data that can be retrieved from the UI Process using -- contextMenuGetUserData. If the userData -- GVariant is floating, it is consumed. -- -- Since: 2.8 contextMenuSetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> GVariant -> m () instance GHC.Classes.Eq GI.WebKit.Objects.ContextMenu.ContextMenu instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.ContextMenu.ContextMenu o) => GI.WebKit.Objects.ContextMenu.IsContextMenu o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.ContextMenu.ContextMenu instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.ContextMenu.ContextMenu instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.ContextMenu.ContextMenu instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.ContextMenu.ContextMenu instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.ContextMenu.ContextMenu) -- | Defines how to handle cookies in a WebContext. -- -- The WebKitCookieManager defines how to set up and handle cookies. You -- can get it from a WebsiteDataManager with -- webkit_website_data_manager_get_cookie_manager(), and -- use it to set where to store cookies with -- cookieManagerSetPersistentStorage, or to set the acceptance -- policy, with cookieManagerGetAcceptPolicy. module GI.WebKit.Objects.CookieManager -- | Memory-managed wrapper type. newtype CookieManager CookieManager :: ManagedPtr CookieManager -> CookieManager -- | Type class for types which can be safely cast to CookieManager, -- for instance with toCookieManager. class (GObject o, IsDescendantOf CookieManager o) => IsCookieManager o -- | Cast to CookieManager, for types for which this is known to be -- safe. For general casts, use castTo. toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager -- | Asynchronously add a Cookie to the underlying storage. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerAddCookieFinish to get -- the result of the operation. -- -- Since: 2.20 cookieManagerAddCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerAddCookie. -- -- Since: 2.20 cookieManagerAddCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m () -- | Asynchronously delete a Cookie from the current session. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerDeleteCookieFinish to -- get the result of the operation. -- -- Since: 2.20 cookieManagerDeleteCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerDeleteCookie. -- -- Since: 2.20 cookieManagerDeleteCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m () -- | Asynchronously get the cookie acceptance policy of -- cookieManager. -- -- Note that when policy was set to CookieAcceptPolicyNoThirdParty -- and ITP is enabled, this will return CookieAcceptPolicyAlways. -- See also -- webkit_website_data_manager_set_itp_enabled(). -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerGetAcceptPolicyFinish to -- get the result of the operation. cookieManagerGetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerGetAcceptPolicy. cookieManagerGetAcceptPolicyFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m CookieAcceptPolicy -- | Asynchronously get a list of Cookie from -- cookieManager. -- -- Asynchronously get a list of Cookie from -- cookieManager associated with uri, -- which must be either an HTTP or an HTTPS URL. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerGetCookiesFinish to get -- the result of the operation. -- -- Since: 2.20 cookieManagerGetCookies :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerGetCookies. -- -- The return value is a SList of Cookie instances which -- should be released with g_list_free_full() and -- cookieFree. -- -- Since: 2.20 cookieManagerGetCookiesFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m [Cookie] -- | Set the cookie acceptance policy of cookieManager as -- policy. -- -- Note that ITP has its own way to handle third-party cookies, so when -- it's enabled, and policy is set to -- CookieAcceptPolicyNoThirdParty, CookieAcceptPolicyAlways -- will be used instead. Once disabled, the policy will be set back to -- CookieAcceptPolicyNoThirdParty. See also -- webkit_website_data_manager_set_itp_enabled(). cookieManagerSetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> CookieAcceptPolicy -> m () -- | Set non-session cookies. -- -- Set the filename where non-session cookies are stored -- persistently using storage as the format to read/write -- the cookies. Cookies are initially read from filename -- to create an initial set of cookies. Then, non-session cookies will be -- written to filename when the -- WebKitCookieManagerchanged signal is emitted. By default, -- cookieManager doesn't store the cookies persistently, -- so you need to call this method to keep cookies saved across sessions. -- -- This method should never be called on a CookieManager -- associated to an ephemeral WebsiteDataManager. cookieManagerSetPersistentStorage :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> Text -> CookiePersistentStorage -> m () -- | This signal is emitted when cookies are added, removed or modified. type CookieManagerChangedCallback = IO () -- | Connect a signal handler for the changed signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after cookieManager #changed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> ((?self :: a) => CookieManagerChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the changed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on cookieManager #changed callback --onCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> ((?self :: a) => CookieManagerChangedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.CookieManager.CookieManager instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.CookieManager.CookieManager o) => GI.WebKit.Objects.CookieManager.IsCookieManager o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.CookieManager.CookieManager instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.CookieManager.CookieManager instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.CookieManager.CookieManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.CookieManager.CookieManager instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.CookieManager.CookieManager) -- | A permission request for accessing user's audio/video devices. -- -- WebKitUserMediaPermissionRequest represents a request for permission -- to whether WebKit should be allowed to access the user's devices -- information when requested through the enumerateDevices API. -- -- When a WebKitDeviceInfoPermissionRequest is not handled by the user, -- it is denied by default. -- -- Since: 2.24 module GI.WebKit.Objects.DeviceInfoPermissionRequest -- | Memory-managed wrapper type. newtype DeviceInfoPermissionRequest DeviceInfoPermissionRequest :: ManagedPtr DeviceInfoPermissionRequest -> DeviceInfoPermissionRequest -- | Type class for types which can be safely cast to -- DeviceInfoPermissionRequest, for instance with -- toDeviceInfoPermissionRequest. class (GObject o, IsDescendantOf DeviceInfoPermissionRequest o) => IsDeviceInfoPermissionRequest o -- | Cast to DeviceInfoPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toDeviceInfoPermissionRequest :: (MonadIO m, IsDeviceInfoPermissionRequest o) => o -> m DeviceInfoPermissionRequest instance GHC.Classes.Eq GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest o) => GI.WebKit.Objects.DeviceInfoPermissionRequest.IsDeviceInfoPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest) -- | Web editor state. -- -- WebKitEditorState represents the state of a WebView editor. Use -- webViewGetEditorState to get the WebKitEditorState of a -- WebView. -- -- Since: 2.10 module GI.WebKit.Objects.EditorState -- | Memory-managed wrapper type. newtype EditorState EditorState :: ManagedPtr EditorState -> EditorState -- | Type class for types which can be safely cast to EditorState, -- for instance with toEditorState. class (GObject o, IsDescendantOf EditorState o) => IsEditorState o -- | Cast to EditorState, for types for which this is known to be -- safe. For general casts, use castTo. toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState -- | Gets the typing attributes at the current cursor position. -- -- If there is a selection, this returns the typing attributes of the -- selected text. Note that in case of a selection, typing attributes are -- considered active only when they are present throughout the selection. -- -- Since: 2.10 editorStateGetTypingAttributes :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Word32 -- | Gets whether a copy command can be issued. -- -- Since: 2.20 editorStateIsCopyAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a cut command can be issued. -- -- Since: 2.20 editorStateIsCutAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a paste command can be issued. -- -- Since: 2.20 editorStateIsPasteAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a redo command can be issued. -- -- Since: 2.20 editorStateIsRedoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether an undo command can be issued. -- -- Since: 2.20 editorStateIsUndoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Get the value of the “typing-attributes” property. When -- overloading is enabled, this is equivalent to -- --
-- get editorState #typingAttributes --getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32 instance GHC.Classes.Eq GI.WebKit.Objects.EditorState.EditorState instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.EditorState.EditorState o) => GI.WebKit.Objects.EditorState.IsEditorState o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.EditorState.EditorState instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.EditorState.EditorState instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.EditorState.EditorState instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.EditorState.EditorState instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.EditorState.EditorState) -- | Provides access to the icons associated with web sites. -- -- WebKit will automatically look for available icons in <link> -- elements on opened pages as well as an existing favicon.ico and load -- the images found into a memory cache if possible. That cache is frozen -- to an on-disk database for persistence. -- -- If Settings:enable-private-browsing is -- True, new icons won't be added to the on-disk database and no -- existing icons will be deleted from it. Nevertheless, WebKit will -- still store them in the in-memory cache during the current execution. module GI.WebKit.Objects.FaviconDatabase -- | Memory-managed wrapper type. newtype FaviconDatabase FaviconDatabase :: ManagedPtr FaviconDatabase -> FaviconDatabase -- | Type class for types which can be safely cast to -- FaviconDatabase, for instance with toFaviconDatabase. class (GObject o, IsDescendantOf FaviconDatabase o) => IsFaviconDatabase o -- | Cast to FaviconDatabase, for types for which this is known to -- be safe. For general casts, use castTo. toFaviconDatabase :: (MonadIO m, IsFaviconDatabase o) => o -> m FaviconDatabase -- | Clears all icons from the database. faviconDatabaseClear :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> m () -- | Asynchronously obtains a favicon image. -- -- Asynchronously obtains an image of the favicon for the given page URI. -- It returns the cached icon if it's in the database asynchronously -- waiting for the icon to be read from the database. -- -- This is an asynchronous method. When the operation is finished, -- callback will be invoked. You can then call -- faviconDatabaseGetFaviconFinish to get the result of the -- operation. faviconDatabaseGetFavicon :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an operation started with faviconDatabaseGetFavicon. faviconDatabaseGetFaviconFinish :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsAsyncResult b) => a -> b -> m Texture -- | Obtains the URI of the favicon for the given pageUri. faviconDatabaseGetFaviconUri :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> Text -> m Text -- | This signal is emitted when the favicon URI of pageUri -- has been changed to faviconUri in the database. You -- can connect to this signal and call faviconDatabaseGetFavicon -- to get the favicon. If you are interested in the favicon of a -- WebView it's easier to use the WebView:favicon property. -- See webViewGetFavicon for more details. type FaviconDatabaseFaviconChangedCallback = -- | /@pageUri@/: the URI of the Web page containing the icon Text -> -- | /@faviconUri@/: the URI of the favicon Text -> IO () -- | Connect a signal handler for the faviconChanged signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after faviconDatabase #faviconChanged callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the faviconChanged signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on faviconDatabase #faviconChanged callback --onFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.FaviconDatabase.FaviconDatabase instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.FaviconDatabase.FaviconDatabase o) => GI.WebKit.Objects.FaviconDatabase.IsFaviconDatabase o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.FaviconDatabase.FaviconDatabase instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.FaviconDatabase.FaviconDatabase instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.FaviconDatabase.FaviconDatabase instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.FaviconDatabase.FaviconDatabase instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.FaviconDatabase.FaviconDatabase) -- | A request to open a file chooser. -- -- Whenever the user interacts with an HTML input element with file type, -- WebKit will need to show a dialog to choose one or more files to be -- uploaded to the server along with the rest of the form data. For that -- to happen in a general way, instead of just opening a -- FileChooserDialog (which might be not desirable in some cases, -- which could prefer to use their own file chooser dialog), WebKit will -- fire the WebView::runFileChooser signal with a -- FileChooserRequest object, which will allow the client -- application to specify the files to be selected, to inspect the -- details of the request (e.g. if multiple selection should be allowed) -- and to cancel the request, in case nothing was selected. -- -- In case the client application does not wish to handle this signal, -- WebKit will provide a default handler which will asynchronously run a -- regular FileChooserDialog for the user to interact with. module GI.WebKit.Objects.FileChooserRequest -- | Memory-managed wrapper type. newtype FileChooserRequest FileChooserRequest :: ManagedPtr FileChooserRequest -> FileChooserRequest -- | Type class for types which can be safely cast to -- FileChooserRequest, for instance with -- toFileChooserRequest. class (GObject o, IsDescendantOf FileChooserRequest o) => IsFileChooserRequest o -- | Cast to FileChooserRequest, for types for which this is known -- to be safe. For general casts, use castTo. toFileChooserRequest :: (MonadIO m, IsFileChooserRequest o) => o -> m FileChooserRequest -- | Ask WebKit to cancel the request. -- -- It's important to do this in case no selection has been made in the -- client, otherwise the request won't be properly completed and the -- browser will keep the request pending forever, which might cause the -- browser to hang. fileChooserRequestCancel :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m () -- | Get the list of MIME types the file chooser dialog should handle. -- -- Get the list of MIME types the file chooser dialog should handle, in -- the format specified in RFC 2046 for "media types". Its contents -- depend on the value of the 'accept' attribute for HTML input elements. -- This function should normally be called before presenting the file -- chooser dialog to the user, to decide whether to allow the user to -- select multiple files at once or only one. fileChooserRequestGetMimeTypes :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m [Text] -- | Get the filter currently associated with the request. -- -- Get the filter currently associated with the request, ready to be used -- by FileChooser. This function should normally be called before -- presenting the file chooser dialog to the user, to decide whether to -- apply a filter so the user would not be allowed to select files with -- other MIME types. -- -- See fileChooserRequestGetMimeTypes if you are interested in -- getting the list of accepted MIME types. fileChooserRequestGetMimeTypesFilter :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m FileFilter -- | Whether the file chooser should allow selecting multiple files. -- -- Determine whether the file chooser associated to this -- FileChooserRequest should allow selecting multiple files, which -- depends on the HTML input element having a 'multiple' attribute -- defined. fileChooserRequestGetSelectMultiple :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m Bool -- | Get the list of selected files associated to the request. -- -- Get the list of selected files currently associated to the request. -- Initially, the return value of this method contains any files selected -- in previous file chooser requests for this HTML input element. Once -- webkit_file_chooser_request_select_files, the value will reflect -- whatever files are given. -- -- This function should normally be called only before presenting the -- file chooser dialog to the user, to decide whether to perform some -- extra action, like pre-selecting the files from a previous request. fileChooserRequestGetSelectedFiles :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m [Text] -- | Ask WebKit to select local files for upload and complete the request. fileChooserRequestSelectFiles :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> [Text] -> m () -- | Get the value of the “filter” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #filter --getFileChooserRequestFilter :: (MonadIO m, IsFileChooserRequest o) => o -> m (Maybe FileFilter) -- | Get the value of the “mime-types” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #mimeTypes --getFileChooserRequestMimeTypes :: (MonadIO m, IsFileChooserRequest o) => o -> m [Text] -- | Get the value of the “select-multiple” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #selectMultiple --getFileChooserRequestSelectMultiple :: (MonadIO m, IsFileChooserRequest o) => o -> m Bool -- | Get the value of the “selected-files” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #selectedFiles --getFileChooserRequestSelectedFiles :: (MonadIO m, IsFileChooserRequest o) => o -> m [Text] instance GHC.Classes.Eq GI.WebKit.Objects.FileChooserRequest.FileChooserRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.FileChooserRequest.FileChooserRequest o) => GI.WebKit.Objects.FileChooserRequest.IsFileChooserRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.FileChooserRequest.FileChooserRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.FileChooserRequest.FileChooserRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.FileChooserRequest.FileChooserRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.FileChooserRequest.FileChooserRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.FileChooserRequest.FileChooserRequest) -- | Represents a form submission request. -- -- When a form is about to be submitted in a WebView, the -- WebView::submitForm signal is emitted. Its request argument -- contains information about the text fields of the form, that are -- typically used to store login information, returned as lists by -- formSubmissionRequestListTextFields. You can submit the form -- with formSubmissionRequestSubmit. module GI.WebKit.Objects.FormSubmissionRequest -- | Memory-managed wrapper type. newtype FormSubmissionRequest FormSubmissionRequest :: ManagedPtr FormSubmissionRequest -> FormSubmissionRequest -- | Type class for types which can be safely cast to -- FormSubmissionRequest, for instance with -- toFormSubmissionRequest. class (GObject o, IsDescendantOf FormSubmissionRequest o) => IsFormSubmissionRequest o -- | Cast to FormSubmissionRequest, for types for which this is -- known to be safe. For general casts, use castTo. toFormSubmissionRequest :: (MonadIO m, IsFormSubmissionRequest o) => o -> m FormSubmissionRequest -- | Get lists of the text fields contained in the form associated to -- request. -- -- Get lists with the names and values of the text fields contained in -- the form associated to request. Note that names and -- values may be Nothing. -- -- If this function returns False, then both -- fieldNames and fieldValues will be -- empty. -- -- Since: 2.20 formSubmissionRequestListTextFields :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m (Bool, [Text], [Text]) -- | Continue the form submission. formSubmissionRequestSubmit :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m () instance GHC.Classes.Eq GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest o) => GI.WebKit.Objects.FormSubmissionRequest.IsFormSubmissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest) -- | A permission request for sharing the user's location. -- -- WebKitGeolocationPermissionRequest represents a request for permission -- to decide whether WebKit should provide the user's location to a -- website when requested through the Geolocation API. -- -- When a WebKitGeolocationPermissionRequest is not handled by the user, -- it is denied by default. -- -- When embedding web views in your application, you *must* configure an -- application identifier to allow web content to use geolocation -- services. The identifier *must* match the name of the -- .desktop file which describes the application, sans the -- suffix. -- -- If your application uses Application (or any subclass like -- Application), WebKit will automatically use the identifier -- returned by applicationGetApplicationId. This is the -- recommended approach for enabling geolocation in applications. -- -- If an identifier cannot be obtained through Application, the -- value returned by getPrgname will be used instead as a -- fallback. For programs which cannot use Application, calling -- setPrgname early during initialization is needed when the name -- of the executable on disk does not match the name of a valid -- .desktop file. module GI.WebKit.Objects.GeolocationPermissionRequest -- | Memory-managed wrapper type. newtype GeolocationPermissionRequest GeolocationPermissionRequest :: ManagedPtr GeolocationPermissionRequest -> GeolocationPermissionRequest -- | Type class for types which can be safely cast to -- GeolocationPermissionRequest, for instance with -- toGeolocationPermissionRequest. class (GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o -- | Cast to GeolocationPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toGeolocationPermissionRequest :: (MonadIO m, IsGeolocationPermissionRequest o) => o -> m GeolocationPermissionRequest instance GHC.Classes.Eq GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest o) => GI.WebKit.Objects.GeolocationPermissionRequest.IsGeolocationPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest) -- | Result of a Hit Test. -- -- A Hit Test is an operation to get context information about a given -- point in a WebView. HitTestResult represents the result -- of a Hit Test. It provides context information about what is at the -- coordinates of the Hit Test, such as if there's a link, an image or a -- media. -- -- You can get the context of the HitTestResult with -- hitTestResultGetContext that returns a bitmask of -- HitTestResultContext flags. You can also use -- hitTestResultContextIsLink, hitTestResultContextIsImage -- and hitTestResultContextIsMedia to determine whether there's a -- link, image or a media element at the coordinates of the Hit Test. -- Note that it's possible that several HitTestResultContext flags -- are active at the same time, for example if there's a link containing -- an image. -- -- When the mouse is moved over a WebView a Hit Test is performed -- for the mouse coordinates and WebView::mouseTargetChanged -- signal is emitted with a HitTestResult. module GI.WebKit.Objects.HitTestResult -- | Memory-managed wrapper type. newtype HitTestResult HitTestResult :: ManagedPtr HitTestResult -> HitTestResult -- | Type class for types which can be safely cast to HitTestResult, -- for instance with toHitTestResult. class (GObject o, IsDescendantOf HitTestResult o) => IsHitTestResult o -- | Cast to HitTestResult, for types for which this is known to be -- safe. For general casts, use castTo. toHitTestResult :: (MonadIO m, IsHitTestResult o) => o -> m HitTestResult -- | Gets whether HitTestResultContextEditable flag is present in -- HitTestResult:context. hitTestResultContextIsEditable :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets whether HitTestResultContextImage flag is present in -- HitTestResult:context. hitTestResultContextIsImage :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets whether HitTestResultContextLink flag is present in -- HitTestResult:context. hitTestResultContextIsLink :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets whether HitTestResultContextMedia flag is present in -- HitTestResult:context. hitTestResultContextIsMedia :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets whether HitTestResultContextScrollbar flag is present in -- HitTestResult:context. hitTestResultContextIsScrollbar :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets whether HitTestResultContextSelection flag is present in -- HitTestResult:context. -- -- Since: 2.8 hitTestResultContextIsSelection :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool -- | Gets the value of the HitTestResult:context property. hitTestResultGetContext :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Word32 -- | Gets the value of the HitTestResult:imageUri property. hitTestResultGetImageUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text -- | Gets the value of the HitTestResult:linkLabel property. hitTestResultGetLinkLabel :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text -- | Gets the value of the HitTestResult:linkTitle property. hitTestResultGetLinkTitle :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text -- | Gets the value of the HitTestResult:linkUri property. hitTestResultGetLinkUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text -- | Gets the value of the HitTestResult:mediaUri property. hitTestResultGetMediaUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text -- | Construct a GValueConstruct with valid value for the -- “context” property. This is rarely needed directly, but it is -- used by new. constructHitTestResultContext :: (IsHitTestResult o, MonadIO m) => Word32 -> m (GValueConstruct o) -- | Get the value of the “context” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #context --getHitTestResultContext :: (MonadIO m, IsHitTestResult o) => o -> m Word32 -- | Construct a GValueConstruct with valid value for the -- “image-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultImageUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “image-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #imageUri --getHitTestResultImageUri :: (MonadIO m, IsHitTestResult o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “link-label” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkLabel :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “link-label” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkLabel --getHitTestResultLinkLabel :: (MonadIO m, IsHitTestResult o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “link-title” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkTitle :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “link-title” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkTitle --getHitTestResultLinkTitle :: (MonadIO m, IsHitTestResult o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “link-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “link-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkUri --getHitTestResultLinkUri :: (MonadIO m, IsHitTestResult o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “media-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultMediaUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “media-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #mediaUri --getHitTestResultMediaUri :: (MonadIO m, IsHitTestResult o) => o -> m Text instance GHC.Classes.Eq GI.WebKit.Objects.HitTestResult.HitTestResult instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.HitTestResult.HitTestResult o) => GI.WebKit.Objects.HitTestResult.IsHitTestResult o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.HitTestResult.HitTestResult instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.HitTestResult.HitTestResult instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.HitTestResult.HitTestResult instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.HitTestResult.HitTestResult instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.HitTestResult.HitTestResult) -- | A permission request for using an EME Content Decryption Module. -- -- WebKitMediaKeySystemPermissionRequest represents a request for -- permission to decide whether WebKit should use the given CDM to access -- protected media when requested through the MediaKeySystem API. -- -- When a WebKitMediaKeySystemPermissionRequest is not handled by the -- user, it is denied by default. -- -- When handling this permission request the application may perform -- additional installation of the requested CDM, unless it is already -- present on the host system. module GI.WebKit.Objects.MediaKeySystemPermissionRequest -- | Memory-managed wrapper type. newtype MediaKeySystemPermissionRequest MediaKeySystemPermissionRequest :: ManagedPtr MediaKeySystemPermissionRequest -> MediaKeySystemPermissionRequest -- | Type class for types which can be safely cast to -- MediaKeySystemPermissionRequest, for instance with -- toMediaKeySystemPermissionRequest. class (GObject o, IsDescendantOf MediaKeySystemPermissionRequest o) => IsMediaKeySystemPermissionRequest o -- | Cast to MediaKeySystemPermissionRequest, for types for which -- this is known to be safe. For general casts, use castTo. toMediaKeySystemPermissionRequest :: (MonadIO m, IsMediaKeySystemPermissionRequest o) => o -> m MediaKeySystemPermissionRequest instance GHC.Classes.Eq GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest o) => GI.WebKit.Objects.MediaKeySystemPermissionRequest.IsMediaKeySystemPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequest) -- | Holds information about a notification that should be shown to the -- user. -- -- Since: 2.8 module GI.WebKit.Objects.Notification -- | Memory-managed wrapper type. newtype Notification Notification :: ManagedPtr Notification -> Notification -- | Type class for types which can be safely cast to Notification, -- for instance with toNotification. class (GObject o, IsDescendantOf Notification o) => IsNotification o -- | Cast to Notification, for types for which this is known to be -- safe. For general casts, use castTo. toNotification :: (MonadIO m, IsNotification o) => o -> m Notification -- | Tells WebKit the notification has been clicked. -- -- This will emit the Notification::clicked signal. -- -- Since: 2.12 notificationClicked :: (HasCallStack, MonadIO m, IsNotification a) => a -> m () -- | Closes the notification. -- -- Since: 2.8 notificationClose :: (HasCallStack, MonadIO m, IsNotification a) => a -> m () -- | Obtains the body for the notification. -- -- Since: 2.8 notificationGetBody :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text -- | Obtains the unique id for the notification. -- -- Since: 2.8 notificationGetId :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Word64 -- | Obtains the tag identifier for the notification. -- -- Since: 2.16 notificationGetTag :: (HasCallStack, MonadIO m, IsNotification a) => a -> m (Maybe Text) -- | Obtains the title for the notification. -- -- Since: 2.8 notificationGetTitle :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text -- | Get the value of the “body” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #body --getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text -- | Get the value of the “id” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #id --getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 -- | Get the value of the “tag” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #tag --getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text) -- | Get the value of the “title” property. When -- overloading is enabled, this is equivalent to -- --
-- get notification #title --getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text -- | Emitted when a notification has been clicked. See -- notificationClicked. -- -- Since: 2.12 type NotificationClickedCallback = IO () -- | Connect a signal handler for the clicked signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after notification #clicked callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterNotificationClicked :: (IsNotification a, MonadIO m) => a -> ((?self :: a) => NotificationClickedCallback) -> m SignalHandlerId -- | Connect a signal handler for the clicked signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on notification #clicked callback --onNotificationClicked :: (IsNotification a, MonadIO m) => a -> ((?self :: a) => NotificationClickedCallback) -> m SignalHandlerId -- | Emitted when a notification has been withdrawn. -- -- The default handler will close the notification using libnotify, if -- built with support for it. -- -- Since: 2.8 type NotificationClosedCallback = IO () -- | Connect a signal handler for the closed signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after notification #closed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterNotificationClosed :: (IsNotification a, MonadIO m) => a -> ((?self :: a) => NotificationClosedCallback) -> m SignalHandlerId -- | Connect a signal handler for the closed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on notification #closed callback --onNotificationClosed :: (IsNotification a, MonadIO m) => a -> ((?self :: a) => NotificationClosedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.Notification.Notification instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.Notification.Notification o) => GI.WebKit.Objects.Notification.IsNotification o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.Notification.Notification instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.Notification.Notification instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.Notification.Notification instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.Notification.Notification instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.Notification.Notification) -- | A permission request for displaying web notifications. -- -- WebKitNotificationPermissionRequest represents a request for -- permission to decide whether WebKit should provide the user with -- notifications through the Web Notification API. -- -- When a WebKitNotificationPermissionRequest is not handled by the user, -- it is denied by default. -- -- Since: 2.8 module GI.WebKit.Objects.NotificationPermissionRequest -- | Memory-managed wrapper type. newtype NotificationPermissionRequest NotificationPermissionRequest :: ManagedPtr NotificationPermissionRequest -> NotificationPermissionRequest -- | Type class for types which can be safely cast to -- NotificationPermissionRequest, for instance with -- toNotificationPermissionRequest. class (GObject o, IsDescendantOf NotificationPermissionRequest o) => IsNotificationPermissionRequest o -- | Cast to NotificationPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toNotificationPermissionRequest :: (MonadIO m, IsNotificationPermissionRequest o) => o -> m NotificationPermissionRequest instance GHC.Classes.Eq GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest o) => GI.WebKit.Objects.NotificationPermissionRequest.IsNotificationPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.NotificationPermissionRequest.NotificationPermissionRequest) -- | A permission request for locking the pointer. -- -- WebKitPointerLockPermissionRequest represents a request for permission -- to decide whether WebKit can lock the pointer device when requested by -- web content. -- -- When a WebKitPointerLockPermissionRequest is not handled by the user, -- it is allowed by default. -- -- Since: 2.28 module GI.WebKit.Objects.PointerLockPermissionRequest -- | Memory-managed wrapper type. newtype PointerLockPermissionRequest PointerLockPermissionRequest :: ManagedPtr PointerLockPermissionRequest -> PointerLockPermissionRequest -- | Type class for types which can be safely cast to -- PointerLockPermissionRequest, for instance with -- toPointerLockPermissionRequest. class (GObject o, IsDescendantOf PointerLockPermissionRequest o) => IsPointerLockPermissionRequest o -- | Cast to PointerLockPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toPointerLockPermissionRequest :: (MonadIO m, IsPointerLockPermissionRequest o) => o -> m PointerLockPermissionRequest instance GHC.Classes.Eq GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest o) => GI.WebKit.Objects.PointerLockPermissionRequest.IsPointerLockPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.PointerLockPermissionRequest.PointerLockPermissionRequest) -- | Controls security settings in a WebContext. -- -- The SecurityManager defines security settings for URI schemes -- in a WebContext. Get it from the context with -- webContextGetSecurityManager, and use it to register a URI -- scheme with a certain security level, or to check if it already has -- it. module GI.WebKit.Objects.SecurityManager -- | Memory-managed wrapper type. newtype SecurityManager SecurityManager :: ManagedPtr SecurityManager -> SecurityManager -- | Type class for types which can be safely cast to -- SecurityManager, for instance with toSecurityManager. class (GObject o, IsDescendantOf SecurityManager o) => IsSecurityManager o -- | Cast to SecurityManager, for types for which this is known to -- be safe. For general casts, use castTo. toSecurityManager :: (MonadIO m, IsSecurityManager o) => o -> m SecurityManager -- | Register scheme as a CORS (Cross-origin resource -- sharing) enabled scheme. -- -- This means that CORS requests are allowed. See W3C CORS specification -- http://www.w3.org/TR/cors/. securityManagerRegisterUriSchemeAsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Register scheme as a display isolated scheme. -- -- This means that pages cannot display these URIs unless they are from -- the same scheme. securityManagerRegisterUriSchemeAsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Register scheme as an empty document scheme. -- -- This means that they are allowed to commit synchronously. securityManagerRegisterUriSchemeAsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Register scheme as a local scheme. -- -- This means that other non-local pages cannot link to or access URIs of -- this scheme. securityManagerRegisterUriSchemeAsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Register scheme as a no-access scheme. -- -- This means that pages loaded with this URI scheme cannot access pages -- loaded with any other URI scheme. securityManagerRegisterUriSchemeAsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Register scheme as a secure scheme. -- -- This means that mixed content warnings won't be generated for this -- scheme when included by an HTTPS page. securityManagerRegisterUriSchemeAsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m () -- | Whether scheme is considered as a CORS enabled scheme. -- -- See also securityManagerRegisterUriSchemeAsCorsEnabled. securityManagerUriSchemeIsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool -- | Whether scheme is considered as a display isolated -- scheme. -- -- See also securityManagerRegisterUriSchemeAsDisplayIsolated. securityManagerUriSchemeIsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool -- | Whether scheme is considered as an empty document -- scheme. -- -- See also securityManagerRegisterUriSchemeAsEmptyDocument. securityManagerUriSchemeIsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool -- | Whether scheme is considered as a local scheme. -- -- See also securityManagerRegisterUriSchemeAsLocal. securityManagerUriSchemeIsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool -- | Whether scheme is considered as a no-access scheme. -- -- See also securityManagerRegisterUriSchemeAsNoAccess. securityManagerUriSchemeIsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool -- | Whether scheme is considered as a secure scheme. -- -- See also securityManagerRegisterUriSchemeAsSecure. securityManagerUriSchemeIsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool instance GHC.Classes.Eq GI.WebKit.Objects.SecurityManager.SecurityManager instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.SecurityManager.SecurityManager o) => GI.WebKit.Objects.SecurityManager.IsSecurityManager o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.SecurityManager.SecurityManager instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.SecurityManager.SecurityManager instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.SecurityManager.SecurityManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.SecurityManager.SecurityManager instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.SecurityManager.SecurityManager) -- | Control the behaviour of a WebView. -- -- Settings can be applied to a WebView to control text -- charset, color, font sizes, printing mode, script support, loading of -- images and various other things on a WebView. After creation, a -- Settings object contains default settings. -- --
-- // Disable JavaScript -- WebKitSettings *settings = webkit_web_view_group_get_settings (my_view_group); -- webkit_settings_set_enable_javascript (settings, FALSE); --module GI.WebKit.Objects.Settings -- | Memory-managed wrapper type. newtype Settings Settings :: ManagedPtr Settings -> Settings -- | Type class for types which can be safely cast to Settings, for -- instance with toSettings. class (GObject o, IsDescendantOf Settings o) => IsSettings o -- | Cast to Settings, for types for which this is known to be safe. -- For general casts, use castTo. toSettings :: (MonadIO m, IsSettings o) => o -> m Settings -- | Convert points to the equivalent value in pixels. -- -- Convert points to the equivalent value in pixels, -- based on the current screen DPI. Applications can use this function to -- convert font size values in points to font size values in pixels when -- setting the font size properties of Settings. -- -- Since: 2.20 settingsFontSizeToPixels :: (HasCallStack, MonadIO m) => Word32 -> m Word32 -- | Convert pixels to the equivalent value in points. -- -- Convert pixels to the equivalent value in points, -- based on the current screen DPI. Applications can use this function to -- convert font size values in pixels to font size values in points when -- getting the font size properties of Settings. -- -- Since: 2.20 settingsFontSizeToPoints :: (HasCallStack, MonadIO m) => Word32 -> m Word32 -- | Get the Settings:allowFileAccessFromFileUrls property. -- -- Since: 2.10 settingsGetAllowFileAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:allowModalDialogs property. settingsGetAllowModalDialogs :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:allowTopNavigationToDataUrls property. -- -- Since: 2.28 settingsGetAllowTopNavigationToDataUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:allowUniversalAccessFromFileUrls property. -- -- Since: 2.14 settingsGetAllowUniversalAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:autoLoadImages property. settingsGetAutoLoadImages :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Gets the Settings:cursiveFontFamily property. settingsGetCursiveFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Gets the Settings:defaultCharset property. settingsGetDefaultCharset :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Gets the Settings:defaultFontFamily property. settingsGetDefaultFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Gets the Settings:defaultFontSize property. settingsGetDefaultFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32 -- | Gets the Settings:defaultMonospaceFontSize property. settingsGetDefaultMonospaceFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32 -- | Get the Settings:disableWebSecurity property. -- -- Since: 2.40 settingsGetDisableWebSecurity :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:drawCompositingIndicators property. settingsGetDrawCompositingIndicators :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableBackForwardNavigationGestures property. -- -- Since: 2.24 settingsGetEnableBackForwardNavigationGestures :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableCaretBrowsing property. settingsGetEnableCaretBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableDeveloperExtras property. settingsGetEnableDeveloperExtras :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableDnsPrefetching property. settingsGetEnableDnsPrefetching :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableEncryptedMedia property. -- -- Since: 2.20 settingsGetEnableEncryptedMedia :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableFullscreen property. settingsGetEnableFullscreen :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableHtml5Database property. settingsGetEnableHtml5Database :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableHtml5LocalStorage property. settingsGetEnableHtml5LocalStorage :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableHyperlinkAuditing property. settingsGetEnableHyperlinkAuditing :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableJavascript property. settingsGetEnableJavascript :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableJavascriptMarkup property. -- -- Since: 2.24 settingsGetEnableJavascriptMarkup :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableMedia property. -- -- Since: 2.26 settingsGetEnableMedia :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableMediaCapabilities property. -- -- Since: 2.22 settingsGetEnableMediaCapabilities :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableMediaStream property. -- -- Since: 2.4 settingsGetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableMediasource property. -- -- Since: 2.4 settingsGetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableMockCaptureDevices property. -- -- Since: 2.24 settingsGetEnableMockCaptureDevices :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableOfflineWebApplicationCache property. settingsGetEnableOfflineWebApplicationCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enablePageCache property. settingsGetEnablePageCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableResizableTextAreas property. settingsGetEnableResizableTextAreas :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableSiteSpecificQuirks property. settingsGetEnableSiteSpecificQuirks :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableSmoothScrolling property. settingsGetEnableSmoothScrolling :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableSpatialNavigation property. -- -- Since: 2.2 settingsGetEnableSpatialNavigation :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableTabsToLinks property. settingsGetEnableTabsToLinks :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableWebaudio property. settingsGetEnableWebaudio :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableWebgl property. settingsGetEnableWebgl :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the [propertysettings:enable-webrtc] property. -- -- Since: 2.38 settingsGetEnableWebrtc :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enableWriteConsoleMessagesToStdout property. -- -- Since: 2.2 settingsGetEnableWriteConsoleMessagesToStdout :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Gets the Settings:fantasyFontFamily property. settingsGetFantasyFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Get the Settings:hardwareAccelerationPolicy property. -- -- Since: 2.16 settingsGetHardwareAccelerationPolicy :: (HasCallStack, MonadIO m, IsSettings a) => a -> m HardwareAccelerationPolicy -- | Get the Settings:javascriptCanAccessClipboard property. settingsGetJavascriptCanAccessClipboard :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:javascriptCanOpenWindowsAutomatically -- property. settingsGetJavascriptCanOpenWindowsAutomatically :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:loadIconsIgnoringImageLoadSetting property. settingsGetLoadIconsIgnoringImageLoadSetting :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Gets the Settings:mediaContentTypesRequiringHardwareSupport -- property. -- -- Since: 2.30 settingsGetMediaContentTypesRequiringHardwareSupport :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Get the Settings:mediaPlaybackAllowsInline property. settingsGetMediaPlaybackAllowsInline :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:mediaPlaybackRequiresUserGesture property. settingsGetMediaPlaybackRequiresUserGesture :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Gets the Settings:minimumFontSize property. settingsGetMinimumFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32 -- | Gets the Settings:monospaceFontFamily property. settingsGetMonospaceFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Gets the Settings:pictographFontFamily property. settingsGetPictographFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Get the Settings:printBackgrounds property. settingsGetPrintBackgrounds :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Gets the Settings:sansSerifFontFamily property. settingsGetSansSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Gets the Settings:serifFontFamily property. settingsGetSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Get the Settings:userAgent property. settingsGetUserAgent :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text -- | Get the Settings:zoomTextOnly property. settingsGetZoomTextOnly :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Creates a new Settings instance with default values. -- -- It must be manually attached to a WebView. See also -- webkit_settings_new_with_settings(). settingsNew :: (HasCallStack, MonadIO m) => m Settings -- | Set the Settings:allowFileAccessFromFileUrls property. -- -- Since: 2.10 settingsSetAllowFileAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:allowModalDialogs property. settingsSetAllowModalDialogs :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:allowTopNavigationToDataUrls property. -- -- Since: 2.28 settingsSetAllowTopNavigationToDataUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:allowUniversalAccessFromFileUrls property. -- -- Since: 2.14 settingsSetAllowUniversalAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:autoLoadImages property. settingsSetAutoLoadImages :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:cursiveFontFamily property. settingsSetCursiveFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:defaultCharset property. settingsSetDefaultCharset :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:defaultFontFamily property. settingsSetDefaultFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:defaultFontSize property. settingsSetDefaultFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m () -- | Set the Settings:defaultMonospaceFontSize property. settingsSetDefaultMonospaceFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m () -- | Set the Settings:disableWebSecurity property. -- -- Since: 2.40 settingsSetDisableWebSecurity :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:drawCompositingIndicators property. settingsSetDrawCompositingIndicators :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableBackForwardNavigationGestures property. -- -- Since: 2.24 settingsSetEnableBackForwardNavigationGestures :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableCaretBrowsing property. settingsSetEnableCaretBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableDeveloperExtras property. settingsSetEnableDeveloperExtras :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableDnsPrefetching property. settingsSetEnableDnsPrefetching :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableEncryptedMedia property. -- -- Since: 2.20 settingsSetEnableEncryptedMedia :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableFullscreen property. settingsSetEnableFullscreen :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableHtml5Database property. settingsSetEnableHtml5Database :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableHtml5LocalStorage property. settingsSetEnableHtml5LocalStorage :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableHyperlinkAuditing property. settingsSetEnableHyperlinkAuditing :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableJavascript property. settingsSetEnableJavascript :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableJavascriptMarkup property. -- -- Since: 2.24 settingsSetEnableJavascriptMarkup :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableMedia property. -- -- Since: 2.26 settingsSetEnableMedia :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableMediaCapabilities property. -- -- Since: 2.22 settingsSetEnableMediaCapabilities :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableMediaStream property. -- -- Since: 2.4 settingsSetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableMediasource property. -- -- Since: 2.4 settingsSetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableMockCaptureDevices property. -- -- Since: 2.4 settingsSetEnableMockCaptureDevices :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableOfflineWebApplicationCache property. settingsSetEnableOfflineWebApplicationCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enablePageCache property. settingsSetEnablePageCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableResizableTextAreas property. settingsSetEnableResizableTextAreas :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableSiteSpecificQuirks property. settingsSetEnableSiteSpecificQuirks :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableSmoothScrolling property. settingsSetEnableSmoothScrolling :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableSpatialNavigation property. -- -- Since: 2.2 settingsSetEnableSpatialNavigation :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableTabsToLinks property. settingsSetEnableTabsToLinks :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableWebaudio property. settingsSetEnableWebaudio :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableWebgl property. settingsSetEnableWebgl :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the [propertysettings:enable-webrtc] property. -- -- Setting this property to True implies the media-stream -- web-setting will also be enabled. -- -- Since: 2.38 settingsSetEnableWebrtc :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enableWriteConsoleMessagesToStdout property. -- -- Since: 2.2 settingsSetEnableWriteConsoleMessagesToStdout :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:fantasyFontFamily property. settingsSetFantasyFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:hardwareAccelerationPolicy property. -- -- Since: 2.16 settingsSetHardwareAccelerationPolicy :: (HasCallStack, MonadIO m, IsSettings a) => a -> HardwareAccelerationPolicy -> m () -- | Set the Settings:javascriptCanAccessClipboard property. settingsSetJavascriptCanAccessClipboard :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:javascriptCanOpenWindowsAutomatically -- property. settingsSetJavascriptCanOpenWindowsAutomatically :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:loadIconsIgnoringImageLoadSetting property. settingsSetLoadIconsIgnoringImageLoadSetting :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:mediaContentTypesRequiringHardwareSupport -- property. -- -- Since: 2.30 settingsSetMediaContentTypesRequiringHardwareSupport :: (HasCallStack, MonadIO m, IsSettings a) => a -> Maybe Text -> m () -- | Set the Settings:mediaPlaybackAllowsInline property. settingsSetMediaPlaybackAllowsInline :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:mediaPlaybackRequiresUserGesture property. settingsSetMediaPlaybackRequiresUserGesture :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:minimumFontSize property. settingsSetMinimumFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m () -- | Set the Settings:monospaceFontFamily property. settingsSetMonospaceFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:pictographFontFamily property. settingsSetPictographFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:printBackgrounds property. settingsSetPrintBackgrounds :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:sansSerifFontFamily property. settingsSetSansSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:serifFontFamily property. settingsSetSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m () -- | Set the Settings:userAgent property. settingsSetUserAgent :: (HasCallStack, MonadIO m, IsSettings a) => a -> Maybe Text -> m () -- | Set the Settings:userAgent property by appending the -- application details. -- -- Set the Settings:userAgent property by appending the -- application details to the default user agent. If no application name -- or version is given, the default user agent used will be used. If only -- the version is given, the default engine version is used with the -- given application name. settingsSetUserAgentWithApplicationDetails :: (HasCallStack, MonadIO m, IsSettings a) => a -> Maybe Text -> Maybe Text -> m () -- | Set the Settings:zoomTextOnly property. settingsSetZoomTextOnly :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-file-access-from-file-urls” property. This is rarely -- needed directly, but it is used by new. constructSettingsAllowFileAccessFromFileUrls :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “allow-file-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #allowFileAccessFromFileUrls --getSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-file-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #allowFileAccessFromFileUrls := value ] --setSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-modal-dialogs” property. This is rarely needed -- directly, but it is used by new. constructSettingsAllowModalDialogs :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “allow-modal-dialogs” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #allowModalDialogs --getSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-modal-dialogs” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #allowModalDialogs := value ] --setSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-top-navigation-to-data-urls” property. This is rarely -- needed directly, but it is used by new. constructSettingsAllowTopNavigationToDataUrls :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “allow-top-navigation-to-data-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #allowTopNavigationToDataUrls --getSettingsAllowTopNavigationToDataUrls :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-top-navigation-to-data-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #allowTopNavigationToDataUrls := value ] --setSettingsAllowTopNavigationToDataUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-universal-access-from-file-urls” property. This is -- rarely needed directly, but it is used by new. constructSettingsAllowUniversalAccessFromFileUrls :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “allow-universal-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #allowUniversalAccessFromFileUrls --getSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-universal-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #allowUniversalAccessFromFileUrls := value ] --setSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “auto-load-images” property. This is rarely needed directly, -- but it is used by new. constructSettingsAutoLoadImages :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “auto-load-images” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #autoLoadImages --getSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “auto-load-images” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #autoLoadImages := value ] --setSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “cursive-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsCursiveFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “cursive-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #cursiveFontFamily --getSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “cursive-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #cursiveFontFamily := value ] --setSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-charset” property. This is rarely needed directly, -- but it is used by new. constructSettingsDefaultCharset :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “default-charset” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultCharset --getSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “default-charset” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultCharset := value ] --setSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsDefaultFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “default-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultFontFamily --getSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “default-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultFontFamily := value ] --setSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-font-size” property. This is rarely needed directly, -- but it is used by new. constructSettingsDefaultFontSize :: (IsSettings o, MonadIO m) => Word32 -> m (GValueConstruct o) -- | Get the value of the “default-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultFontSize --getSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “default-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultFontSize := value ] --setSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “default-monospace-font-size” property. This is rarely needed -- directly, but it is used by new. constructSettingsDefaultMonospaceFontSize :: (IsSettings o, MonadIO m) => Word32 -> m (GValueConstruct o) -- | Get the value of the “default-monospace-font-size” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #defaultMonospaceFontSize --getSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “default-monospace-font-size” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultMonospaceFontSize := value ] --setSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “disable-web-security” property. This is rarely needed -- directly, but it is used by new. constructSettingsDisableWebSecurity :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “disable-web-security” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #disableWebSecurity --getSettingsDisableWebSecurity :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “disable-web-security” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #disableWebSecurity := value ] --setSettingsDisableWebSecurity :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “draw-compositing-indicators” property. This is rarely needed -- directly, but it is used by new. constructSettingsDrawCompositingIndicators :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “draw-compositing-indicators” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #drawCompositingIndicators --getSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “draw-compositing-indicators” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #drawCompositingIndicators := value ] --setSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-back-forward-navigation-gestures” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableBackForwardNavigationGestures :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the -- “enable-back-forward-navigation-gestures” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableBackForwardNavigationGestures --getSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “enable-back-forward-navigation-gestures” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableBackForwardNavigationGestures := value ] --setSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-caret-browsing” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableCaretBrowsing :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-caret-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableCaretBrowsing --getSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-caret-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableCaretBrowsing := value ] --setSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-developer-extras” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableDeveloperExtras :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-developer-extras” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableDeveloperExtras --getSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-developer-extras” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableDeveloperExtras := value ] --setSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-dns-prefetching” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableDnsPrefetching :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-dns-prefetching” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableDnsPrefetching --getSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-dns-prefetching” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableDnsPrefetching := value ] --setSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-encrypted-media” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableEncryptedMedia :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-encrypted-media” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableEncryptedMedia --getSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-encrypted-media” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableEncryptedMedia := value ] --setSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-fullscreen” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableFullscreen :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-fullscreen” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableFullscreen --getSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-fullscreen” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableFullscreen := value ] --setSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-html5-database” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHtml5Database :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-html5-database” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableHtml5Database --getSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-html5-database” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHtml5Database := value ] --setSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-html5-local-storage” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHtml5LocalStorage :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-html5-local-storage” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableHtml5LocalStorage --getSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-html5-local-storage” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHtml5LocalStorage := value ] --setSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-hyperlink-auditing” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHyperlinkAuditing :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-hyperlink-auditing” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableHyperlinkAuditing --getSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-hyperlink-auditing” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHyperlinkAuditing := value ] --setSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-javascript” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableJavascript :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-javascript” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableJavascript --getSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-javascript” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableJavascript := value ] --setSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-javascript-markup” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableJavascriptMarkup :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-javascript-markup” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableJavascriptMarkup --getSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-javascript-markup” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableJavascriptMarkup := value ] --setSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-media” property. This is rarely needed directly, but -- it is used by new. constructSettingsEnableMedia :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-media” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableMedia --getSettingsEnableMedia :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-media” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMedia := value ] --setSettingsEnableMedia :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-media-capabilities” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediaCapabilities :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-media-capabilities” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableMediaCapabilities --getSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-media-capabilities” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediaCapabilities := value ] --setSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-media-stream” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediaStream :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-media-stream” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableMediaStream --getSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-media-stream” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediaStream := value ] --setSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-mediasource” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediasource :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-mediasource” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableMediasource --getSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-mediasource” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediasource := value ] --setSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-mock-capture-devices” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMockCaptureDevices :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-mock-capture-devices” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableMockCaptureDevices --getSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-mock-capture-devices” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMockCaptureDevices := value ] --setSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-offline-web-application-cache” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableOfflineWebApplicationCache :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-offline-web-application-cache” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #enableOfflineWebApplicationCache --getSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-offline-web-application-cache” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableOfflineWebApplicationCache := value ] --setSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-page-cache” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnablePageCache :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-page-cache” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enablePageCache --getSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-page-cache” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enablePageCache := value ] --setSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-resizable-text-areas” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableResizableTextAreas :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-resizable-text-areas” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableResizableTextAreas --getSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-resizable-text-areas” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableResizableTextAreas := value ] --setSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-site-specific-quirks” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSiteSpecificQuirks :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-site-specific-quirks” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableSiteSpecificQuirks --getSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-site-specific-quirks” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSiteSpecificQuirks := value ] --setSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-smooth-scrolling” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSmoothScrolling :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-smooth-scrolling” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableSmoothScrolling --getSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-smooth-scrolling” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSmoothScrolling := value ] --setSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-spatial-navigation” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSpatialNavigation :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-spatial-navigation” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableSpatialNavigation --getSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-spatial-navigation” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSpatialNavigation := value ] --setSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-tabs-to-links” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableTabsToLinks :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-tabs-to-links” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableTabsToLinks --getSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-tabs-to-links” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableTabsToLinks := value ] --setSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-webaudio” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableWebaudio :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-webaudio” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWebaudio --getSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-webaudio” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWebaudio := value ] --setSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-webgl” property. This is rarely needed directly, but -- it is used by new. constructSettingsEnableWebgl :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-webgl” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWebgl --getSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-webgl” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWebgl := value ] --setSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-webrtc” property. This is rarely needed directly, but -- it is used by new. constructSettingsEnableWebrtc :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “enable-webrtc” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWebrtc --getSettingsEnableWebrtc :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-webrtc” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWebrtc := value ] --setSettingsEnableWebrtc :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-write-console-messages-to-stdout” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableWriteConsoleMessagesToStdout :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the -- “enable-write-console-messages-to-stdout” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWriteConsoleMessagesToStdout --getSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “enable-write-console-messages-to-stdout” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWriteConsoleMessagesToStdout := value ] --setSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “fantasy-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsFantasyFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “fantasy-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #fantasyFontFamily --getSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “fantasy-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #fantasyFontFamily := value ] --setSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “hardware-acceleration-policy” property. This is rarely -- needed directly, but it is used by new. constructSettingsHardwareAccelerationPolicy :: (IsSettings o, MonadIO m) => HardwareAccelerationPolicy -> m (GValueConstruct o) -- | Get the value of the “hardware-acceleration-policy” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #hardwareAccelerationPolicy --getSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> m HardwareAccelerationPolicy -- | Set the value of the “hardware-acceleration-policy” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #hardwareAccelerationPolicy := value ] --setSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> HardwareAccelerationPolicy -> m () -- | Construct a GValueConstruct with valid value for the -- “javascript-can-access-clipboard” property. This is rarely -- needed directly, but it is used by new. constructSettingsJavascriptCanAccessClipboard :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “javascript-can-access-clipboard” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #javascriptCanAccessClipboard --getSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “javascript-can-access-clipboard” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #javascriptCanAccessClipboard := value ] --setSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “javascript-can-open-windows-automatically” property. This is -- rarely needed directly, but it is used by new. constructSettingsJavascriptCanOpenWindowsAutomatically :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the -- “javascript-can-open-windows-automatically” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #javascriptCanOpenWindowsAutomatically --getSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “javascript-can-open-windows-automatically” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #javascriptCanOpenWindowsAutomatically := value ] --setSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “load-icons-ignoring-image-load-setting” property. This is -- rarely needed directly, but it is used by new. constructSettingsLoadIconsIgnoringImageLoadSetting :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “load-icons-ignoring-image-load-setting” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #loadIconsIgnoringImageLoadSetting --getSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “load-icons-ignoring-image-load-setting” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #loadIconsIgnoringImageLoadSetting := value ] --setSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Set the value of the -- “media-content-types-requiring-hardware-support” property to -- Nothing. When overloading is enabled, this is equivalent -- to -- --
-- clear #mediaContentTypesRequiringHardwareSupport --clearSettingsMediaContentTypesRequiringHardwareSupport :: (MonadIO m, IsSettings o) => o -> m () -- | Construct a GValueConstruct with valid value for the -- “media-content-types-requiring-hardware-support” property. -- This is rarely needed directly, but it is used by new. constructSettingsMediaContentTypesRequiringHardwareSupport :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the -- “media-content-types-requiring-hardware-support” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #mediaContentTypesRequiringHardwareSupport --getSettingsMediaContentTypesRequiringHardwareSupport :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the -- “media-content-types-requiring-hardware-support” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #mediaContentTypesRequiringHardwareSupport := value ] --setSettingsMediaContentTypesRequiringHardwareSupport :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “media-playback-allows-inline” property. This is rarely -- needed directly, but it is used by new. constructSettingsMediaPlaybackAllowsInline :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “media-playback-allows-inline” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #mediaPlaybackAllowsInline --getSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “media-playback-allows-inline” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #mediaPlaybackAllowsInline := value ] --setSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “media-playback-requires-user-gesture” property. This is -- rarely needed directly, but it is used by new. constructSettingsMediaPlaybackRequiresUserGesture :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “media-playback-requires-user-gesture” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #mediaPlaybackRequiresUserGesture --getSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “media-playback-requires-user-gesture” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #mediaPlaybackRequiresUserGesture := value ] --setSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “minimum-font-size” property. This is rarely needed directly, -- but it is used by new. constructSettingsMinimumFontSize :: (IsSettings o, MonadIO m) => Word32 -> m (GValueConstruct o) -- | Get the value of the “minimum-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #minimumFontSize --getSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “minimum-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #minimumFontSize := value ] --setSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “monospace-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsMonospaceFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “monospace-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #monospaceFontFamily --getSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “monospace-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #monospaceFontFamily := value ] --setSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “pictograph-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsPictographFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “pictograph-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #pictographFontFamily --getSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “pictograph-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #pictographFontFamily := value ] --setSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “print-backgrounds” property. This is rarely needed directly, -- but it is used by new. constructSettingsPrintBackgrounds :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “print-backgrounds” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #printBackgrounds --getSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “print-backgrounds” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #printBackgrounds := value ] --setSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “sans-serif-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsSansSerifFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “sans-serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #sansSerifFontFamily --getSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “sans-serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #sansSerifFontFamily := value ] --setSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “serif-font-family” property. This is rarely needed directly, -- but it is used by new. constructSettingsSerifFontFamily :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #serifFontFamily --getSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #serifFontFamily := value ] --setSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Set the value of the “user-agent” property to Nothing. -- When overloading is enabled, this is equivalent to -- --
-- clear #userAgent --clearSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m () -- | Construct a GValueConstruct with valid value for the -- “user-agent” property. This is rarely needed directly, but it -- is used by new. constructSettingsUserAgent :: (IsSettings o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “user-agent” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #userAgent --getSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “user-agent” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #userAgent := value ] --setSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “zoom-text-only” property. This is rarely needed directly, -- but it is used by new. constructSettingsZoomTextOnly :: (IsSettings o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “zoom-text-only” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #zoomTextOnly --getSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “zoom-text-only” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #zoomTextOnly := value ] --setSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> Bool -> m () instance GHC.Classes.Eq GI.WebKit.Objects.Settings.Settings instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.Settings.Settings o) => GI.WebKit.Objects.Settings.IsSettings o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.Settings.Settings instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.Settings.Settings instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.Settings.Settings instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.Settings.Settings instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.Settings.Settings) -- | Represents a URI request. -- -- A URIRequest can be created with a URI using the -- uRIRequestNew method, and you can get the URI of an existing -- request with the uRIRequestGetUri one. module GI.WebKit.Objects.URIRequest -- | Memory-managed wrapper type. newtype URIRequest URIRequest :: ManagedPtr URIRequest -> URIRequest -- | Type class for types which can be safely cast to URIRequest, -- for instance with toURIRequest. class (GObject o, IsDescendantOf URIRequest o) => IsURIRequest o -- | Cast to URIRequest, for types for which this is known to be -- safe. For general casts, use castTo. toURIRequest :: (MonadIO m, IsURIRequest o) => o -> m URIRequest -- | Get the HTTP headers of a URIRequest as a -- MessageHeaders. uRIRequestGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m MessageHeaders -- | Get the HTTP method of the URIRequest. -- -- Since: 2.12 uRIRequestGetHttpMethod :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text -- | Obtains the request URI. uRIRequestGetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text -- | Creates a new URIRequest for the given URI. uRIRequestNew :: (HasCallStack, MonadIO m) => Text -> m URIRequest -- | Set the URI of request uRIRequestSetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “uri” property. This is rarely needed directly, but it is -- used by new. constructURIRequestUri :: (IsURIRequest o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get uRIRequest #uri --getURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> m Text -- | Set the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- set uRIRequest [ #uri := value ] --setURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> Text -> m () instance GHC.Classes.Eq GI.WebKit.Objects.URIRequest.URIRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.URIRequest.URIRequest o) => GI.WebKit.Objects.URIRequest.IsURIRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.URIRequest.URIRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.URIRequest.URIRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.URIRequest.URIRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.URIRequest.URIRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.URIRequest.URIRequest) -- | Represents an URI response. -- -- A URIResponse contains information such as the URI, the status -- code, the content length, the mime type, the HTTP status or the -- suggested filename. module GI.WebKit.Objects.URIResponse -- | Memory-managed wrapper type. newtype URIResponse URIResponse :: ManagedPtr URIResponse -> URIResponse -- | Type class for types which can be safely cast to URIResponse, -- for instance with toURIResponse. class (GObject o, IsDescendantOf URIResponse o) => IsURIResponse o -- | Cast to URIResponse, for types for which this is known to be -- safe. For general casts, use castTo. toURIResponse :: (MonadIO m, IsURIResponse o) => o -> m URIResponse -- | Get the expected content length of the URIResponse. -- -- It can be 0 if the server provided an incorrect or missing -- Content-Length. uRIResponseGetContentLength :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word64 -- | Get the HTTP headers of a URIResponse as a -- MessageHeaders. -- -- Since: 2.6 uRIResponseGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m MessageHeaders -- | Gets the MIME type of the response. uRIResponseGetMimeType :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text -- | Get the status code of the URIResponse. -- -- Get the status code of the URIResponse as returned by the -- server. It will normally be a SoupKnownStatusCode, for -- example StatusOk, though the server can respond with any -- unsigned integer. uRIResponseGetStatusCode :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word32 -- | Get the suggested filename for response. -- -- Get the suggested filename for response, as specified -- by the 'Content-Disposition' HTTP header, or Nothing if it's -- not present. uRIResponseGetSuggestedFilename :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text -- | Gets the URI which resulted in the response. uRIResponseGetUri :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text -- | Get the value of the “content-length” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #contentLength --getURIResponseContentLength :: (MonadIO m, IsURIResponse o) => o -> m Word64 -- | Get the value of the “http-headers” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #httpHeaders --getURIResponseHttpHeaders :: (MonadIO m, IsURIResponse o) => o -> m MessageHeaders -- | Get the value of the “mime-type” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #mimeType --getURIResponseMimeType :: (MonadIO m, IsURIResponse o) => o -> m Text -- | Get the value of the “status-code” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #statusCode --getURIResponseStatusCode :: (MonadIO m, IsURIResponse o) => o -> m Word32 -- | Get the value of the “suggested-filename” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #suggestedFilename --getURIResponseSuggestedFilename :: (MonadIO m, IsURIResponse o) => o -> m Text -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get uRIResponse #uri --getURIResponseUri :: (MonadIO m, IsURIResponse o) => o -> m Text instance GHC.Classes.Eq GI.WebKit.Objects.URIResponse.URIResponse instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.URIResponse.URIResponse o) => GI.WebKit.Objects.URIResponse.IsURIResponse o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.URIResponse.URIResponse instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.URIResponse.URIResponse instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.URIResponse.URIResponse instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.URIResponse.URIResponse instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.URIResponse.URIResponse) -- | A policy decision for resource responses. -- -- WebKitResponsePolicyDecision represents a policy decision for a -- resource response, whether from the network or the local system. A -- very common use case for these types of decision is deciding whether -- or not to download a particular resource or to load it normally. module GI.WebKit.Objects.ResponsePolicyDecision -- | Memory-managed wrapper type. newtype ResponsePolicyDecision ResponsePolicyDecision :: ManagedPtr ResponsePolicyDecision -> ResponsePolicyDecision -- | Type class for types which can be safely cast to -- ResponsePolicyDecision, for instance with -- toResponsePolicyDecision. class (GObject o, IsDescendantOf ResponsePolicyDecision o) => IsResponsePolicyDecision o -- | Cast to ResponsePolicyDecision, for types for which this is -- known to be safe. For general casts, use castTo. toResponsePolicyDecision :: (MonadIO m, IsResponsePolicyDecision o) => o -> m ResponsePolicyDecision -- | Return the URIRequest associated with the response decision. -- -- Modifications to the returned object are -- <emphasis>not</emphasis> taken into account when the -- request is sent over the network, and is intended only to aid in -- evaluating whether a response decision should be taken or not. To -- modify requests before they are sent over the network the -- WebKitPage::send-request signal can be used instead. responsePolicyDecisionGetRequest :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m URIRequest -- | Gets the value of the ResponsePolicyDecision:response property. responsePolicyDecisionGetResponse :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m URIResponse -- | Gets whether the request is the main frame main resource -- -- Since: 2.40 responsePolicyDecisionIsMainFrameMainResource :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m Bool -- | Gets whether the MIME type of the response can be displayed in the -- WebView. -- -- Gets whether the MIME type of the response can be displayed in the -- WebView that triggered this policy decision request. See also -- webViewCanShowMimeType. -- -- Since: 2.4 responsePolicyDecisionIsMimeTypeSupported :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m Bool -- | Get the value of the “request” property. When -- overloading is enabled, this is equivalent to -- --
-- get responsePolicyDecision #request --getResponsePolicyDecisionRequest :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIRequest -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get responsePolicyDecision #response --getResponsePolicyDecisionResponse :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIResponse instance GHC.Classes.Eq GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision o) => GI.WebKit.Objects.ResponsePolicyDecision.IsResponsePolicyDecision o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.ResponsePolicyDecision.ResponsePolicyDecision) module GI.WebKit.Callbacks -- | Type for the callback on the (unwrapped) C side. type C_URISchemeRequestCallback = Ptr URISchemeRequest -> Ptr () -> IO () -- | Type definition for a function that will be called back when an URI -- request is made for a user registered URI scheme. type URISchemeRequestCallback = -- | /@request@/: the t'GI.WebKit.Objects.URISchemeRequest.URISchemeRequest' URISchemeRequest -> IO () -- | Type definition for a function that will be called back when an URI -- request is made for a user registered URI scheme. type URISchemeRequestCallback_WithClosures = -- | /@request@/: the t'GI.WebKit.Objects.URISchemeRequest.URISchemeRequest' URISchemeRequest -> -- | /@userData@/: user data passed to the callback Ptr () -> IO () -- | A simple wrapper that ignores the closure arguments. drop_closures_URISchemeRequestCallback :: URISchemeRequestCallback -> URISchemeRequestCallback_WithClosures -- | Given a pointer to a foreign C function, wrap it into a function -- callable from Haskell. dynamic_URISchemeRequestCallback :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => FunPtr C_URISchemeRequestCallback -> a -> Ptr () -> m () -- | Wrap the callback into a GClosure. genClosure_URISchemeRequestCallback :: MonadIO m => URISchemeRequestCallback -> m (GClosure C_URISchemeRequestCallback) -- | Generate a function pointer callable from C code, from a -- C_URISchemeRequestCallback. mk_URISchemeRequestCallback :: C_URISchemeRequestCallback -> IO (FunPtr C_URISchemeRequestCallback) -- | A convenience synonym for Nothing :: Maybe -- URISchemeRequestCallback. noURISchemeRequestCallback :: Maybe URISchemeRequestCallback -- | A convenience synonym for Nothing :: Maybe -- URISchemeRequestCallback_WithClosures. noURISchemeRequestCallback_WithClosures :: Maybe URISchemeRequestCallback_WithClosures -- | Wrap a URISchemeRequestCallback into a -- C_URISchemeRequestCallback. wrap_URISchemeRequestCallback :: Maybe (Ptr (FunPtr C_URISchemeRequestCallback)) -> URISchemeRequestCallback_WithClosures -> C_URISchemeRequestCallback -- | Represents a URI scheme response. -- -- If you register a particular URI scheme in a WebContext, using -- webContextRegisterUriScheme, you have to provide a -- URISchemeRequestCallback. After that, when a URI response is -- made with that particular scheme, your callback will be called. There -- you will be able to provide more response parameters when the methods -- and properties of a URISchemeRequest is not enough. -- -- When you finished setting up your URISchemeResponse, call -- webkit_uri_request_finish_with_response() with it to -- return the response. module GI.WebKit.Objects.URISchemeResponse -- | Memory-managed wrapper type. newtype URISchemeResponse URISchemeResponse :: ManagedPtr URISchemeResponse -> URISchemeResponse -- | Type class for types which can be safely cast to -- URISchemeResponse, for instance with -- toURISchemeResponse. class (GObject o, IsDescendantOf URISchemeResponse o) => IsURISchemeResponse o -- | Cast to URISchemeResponse, for types for which this is known to -- be safe. For general casts, use castTo. toURISchemeResponse :: (MonadIO m, IsURISchemeResponse o) => o -> m URISchemeResponse -- | Create a new URISchemeResponse -- -- Since: 2.36 uRISchemeResponseNew :: (HasCallStack, MonadIO m, IsInputStream a) => a -> Int64 -> m URISchemeResponse -- | Sets the content type for the response -- -- Since: 2.36 uRISchemeResponseSetContentType :: (HasCallStack, MonadIO m, IsURISchemeResponse a) => a -> Text -> m () -- | Assign the provided MessageHeaders to the response. -- -- headers need to be of the type -- MessageHeadersTypeResponse. Any existing headers will be -- overwritten. -- -- Since: 2.36 uRISchemeResponseSetHttpHeaders :: (HasCallStack, MonadIO m, IsURISchemeResponse a) => a -> MessageHeaders -> m () -- | Sets the status code and reason phrase for the -- response. -- -- If statusCode is a known value and -- reasonPhrase is Nothing, the -- reasonPhrase will be set automatically. -- -- Since: 2.36 uRISchemeResponseSetStatus :: (HasCallStack, MonadIO m, IsURISchemeResponse a) => a -> Word32 -> Maybe Text -> m () -- | Construct a GValueConstruct with valid value for the -- “stream” property. This is rarely needed directly, but it is -- used by new. constructURISchemeResponseStream :: (IsURISchemeResponse o, MonadIO m, IsInputStream a) => a -> m (GValueConstruct o) -- | Construct a GValueConstruct with valid value for the -- “stream-length” property. This is rarely needed directly, but -- it is used by new. constructURISchemeResponseStreamLength :: (IsURISchemeResponse o, MonadIO m) => Int64 -> m (GValueConstruct o) instance GHC.Classes.Eq GI.WebKit.Objects.URISchemeResponse.URISchemeResponse instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.URISchemeResponse.URISchemeResponse o) => GI.WebKit.Objects.URISchemeResponse.IsURISchemeResponse o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.URISchemeResponse.URISchemeResponse instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.URISchemeResponse.URISchemeResponse instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.URISchemeResponse.URISchemeResponse instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.URISchemeResponse.URISchemeResponse instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.URISchemeResponse.URISchemeResponse) -- | A permission request for accessing user's audio/video devices. -- -- WebKitUserMediaPermissionRequest represents a request for permission -- to decide whether WebKit should be allowed to access the user's audio -- and video source devices when requested through the getUserMedia API. -- -- When a WebKitUserMediaPermissionRequest is not handled by the user, it -- is denied by default. -- -- Since: 2.8 module GI.WebKit.Objects.UserMediaPermissionRequest -- | Memory-managed wrapper type. newtype UserMediaPermissionRequest UserMediaPermissionRequest :: ManagedPtr UserMediaPermissionRequest -> UserMediaPermissionRequest -- | Type class for types which can be safely cast to -- UserMediaPermissionRequest, for instance with -- toUserMediaPermissionRequest. class (GObject o, IsDescendantOf UserMediaPermissionRequest o) => IsUserMediaPermissionRequest o -- | Cast to UserMediaPermissionRequest, for types for which this is -- known to be safe. For general casts, use castTo. toUserMediaPermissionRequest :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m UserMediaPermissionRequest -- | Get the value of the “is-for-audio-device” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMediaPermissionRequest #isForAudioDevice --getUserMediaPermissionRequestIsForAudioDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool -- | Get the value of the “is-for-video-device” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMediaPermissionRequest #isForVideoDevice --getUserMediaPermissionRequestIsForVideoDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool instance GHC.Classes.Eq GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest o) => GI.WebKit.Objects.UserMediaPermissionRequest.IsUserMediaPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest) module GI.WebKit.Functions -- | Returns the major version number of the WebKit library. -- -- (e.g. in WebKit version 1.8.3 this is 1.) -- -- This function is in the library, so it represents the WebKit library -- your code is running against. Contrast with the MAJOR_VERSION -- macro, which represents the major version of the WebKit headers you -- have included when compiling your code. getMajorVersion :: (HasCallStack, MonadIO m) => m Word32 -- | Returns the micro version number of the WebKit library. -- -- (e.g. in WebKit version 1.8.3 this is 3.) -- -- This function is in the library, so it represents the WebKit library -- your code is running against. Contrast with the MICRO_VERSION -- macro, which represents the micro version of the WebKit headers you -- have included when compiling your code. getMicroVersion :: (HasCallStack, MonadIO m) => m Word32 -- | Returns the minor version number of the WebKit library. -- -- (e.g. in WebKit version 1.8.3 this is 8.) -- -- This function is in the library, so it represents the WebKit library -- your code is running against. Contrast with the MINOR_VERSION -- macro, which represents the minor version of the WebKit headers you -- have included when compiling your code. getMinorVersion :: (HasCallStack, MonadIO m) => m Word32 -- | Get the key system for which access permission is being requested. -- -- Since: 2.32 mediaKeySystemPermissionGetName :: (HasCallStack, MonadIO m, IsMediaKeySystemPermissionRequest a) => a -> m Text -- | Use this function to format a URI for display. -- -- The URIs used internally by WebKit may contain percent-encoded -- characters or Punycode, which are not generally suitable to display to -- users. This function provides protection against IDN homograph -- attacks, so in some cases the host part of the returned URI may be in -- Punycode if the safety check fails. -- -- Since: 2.24 uriForDisplay :: (HasCallStack, MonadIO m) => Text -> m (Maybe Text) -- | Check whether the permission request is for an audio device. -- -- Since: 2.8 userMediaPermissionIsForAudioDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool -- | Check whether the permission request is for a display device. -- -- Since: 2.34 userMediaPermissionIsForDisplayDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool -- | Check whether the permission request is for a video device. -- -- Since: 2.8 userMediaPermissionIsForVideoDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool -- | Message that can be sent between the UI process and web process -- extensions. -- -- A WebKitUserMessage is a message that can be used for the -- communication between the UI process and web process extensions. A -- WebKitUserMessage always has a name, and it can also include -- parameters and UNIX file descriptors. Messages can be sent from a -- WebContext to all web process extensions, from a web process -- extension to its corresponding WebContext, and from a -- WebView to its corresponding WebKitWebPage (and -- vice versa). One to one messages can be replied to directly with -- userMessageSendReply. -- -- Since: 2.28 module GI.WebKit.Objects.UserMessage -- | Memory-managed wrapper type. newtype UserMessage UserMessage :: ManagedPtr UserMessage -> UserMessage -- | Type class for types which can be safely cast to UserMessage, -- for instance with toUserMessage. class (GObject o, IsDescendantOf UserMessage o) => IsUserMessage o -- | Cast to UserMessage, for types for which this is known to be -- safe. For general casts, use castTo. toUserMessage :: (MonadIO m, IsUserMessage o) => o -> m UserMessage -- | Get the message list of file descritpor. -- -- Since: 2.28 userMessageGetFdList :: (HasCallStack, MonadIO m, IsUserMessage a) => a -> m (Maybe UnixFDList) -- | Get the message name. -- -- Since: 2.28 userMessageGetName :: (HasCallStack, MonadIO m, IsUserMessage a) => a -> m Text -- | Get the message parameters. -- -- Since: 2.28 userMessageGetParameters :: (HasCallStack, MonadIO m, IsUserMessage a) => a -> m (Maybe GVariant) -- | Create a new UserMessage with name. -- -- Since: 2.28 userMessageNew :: (HasCallStack, MonadIO m) => Text -> Maybe GVariant -> m UserMessage -- | Create a new UserMessage including also a list of UNIX file -- descriptors to be sent. -- -- Since: 2.28 userMessageNewWithFdList :: (HasCallStack, MonadIO m, IsUnixFDList a) => Text -> Maybe GVariant -> Maybe a -> m UserMessage -- | Send a reply to an user message. -- -- If reply is floating, it's consumed. You can only send -- a reply to a UserMessage that has been received. -- -- Since: 2.28 userMessageSendReply :: (HasCallStack, MonadIO m, IsUserMessage a, IsUserMessage b) => a -> b -> m () -- | Construct a GValueConstruct with valid value for the -- “fd-list” property. This is rarely needed directly, but it is -- used by new. constructUserMessageFdList :: (IsUserMessage o, MonadIO m, IsUnixFDList a) => a -> m (GValueConstruct o) -- | Get the value of the “fd-list” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMessage #fdList --getUserMessageFdList :: (MonadIO m, IsUserMessage o) => o -> m (Maybe UnixFDList) -- | Construct a GValueConstruct with valid value for the -- “name” property. This is rarely needed directly, but it is -- used by new. constructUserMessageName :: (IsUserMessage o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “name” property. When overloading -- is enabled, this is equivalent to -- --
-- get userMessage #name --getUserMessageName :: (MonadIO m, IsUserMessage o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “parameters” property. This is rarely needed directly, but it -- is used by new. constructUserMessageParameters :: (IsUserMessage o, MonadIO m) => GVariant -> m (GValueConstruct o) -- | Get the value of the “parameters” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMessage #parameters --getUserMessageParameters :: (MonadIO m, IsUserMessage o) => o -> m (Maybe GVariant) instance GHC.Classes.Eq GI.WebKit.Objects.UserMessage.UserMessage instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.UserMessage.UserMessage o) => GI.WebKit.Objects.UserMessage.IsUserMessage o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.UserMessage.UserMessage instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.UserMessage.UserMessage instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.UserMessage.UserMessage instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.UserMessage.UserMessage instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.UserMessage.UserMessage) -- | Represents a resource at the end of a URI. -- -- A WebResource encapsulates content for each resource at the end -- of a particular URI. For example, one WebResource will be -- created for each separate image and stylesheet when a page is loaded. -- -- You can access the response and the URI for a given -- WebResource, using webResourceGetUri and -- webResourceGetResponse, as well as the raw data, using -- webResourceGetData. module GI.WebKit.Objects.WebResource -- | Memory-managed wrapper type. newtype WebResource WebResource :: ManagedPtr WebResource -> WebResource -- | Type class for types which can be safely cast to WebResource, -- for instance with toWebResource. class (GObject o, IsDescendantOf WebResource o) => IsWebResource o -- | Cast to WebResource, for types for which this is known to be -- safe. For general casts, use castTo. toWebResource :: (MonadIO m, IsWebResource o) => o -> m WebResource -- | Asynchronously get the raw data for resource. -- -- When the operation is finished, callback will be -- called. You can then call webResourceGetDataFinish to get the -- result of the operation. webResourceGetData :: (HasCallStack, MonadIO m, IsWebResource a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- webResourceGetData. webResourceGetDataFinish :: (HasCallStack, MonadIO m, IsWebResource a, IsAsyncResult b) => a -> b -> m ByteString -- | Retrieves the URIResponse of the resource load operation. -- -- This method returns Nothing if called before the response is -- received from the server. You can connect to notifyresponse -- signal to be notified when the response is received. webResourceGetResponse :: (HasCallStack, MonadIO m, IsWebResource a) => a -> m URIResponse -- | Returns the current active URI of resource. -- -- The active URI might change during a load operation: -- -- <orderedlist> <listitem><para> When the resource -- load starts, the active URI is the requested URI -- </para></listitem> <listitem><para> When the -- initial request is sent to the server, WebResource::sentRequest -- signal is emitted without a redirected response, the active URI is the -- URI of the request sent to the server. </para></listitem> -- <listitem><para> In case of a server redirection, -- WebResource::sentRequest signal is emitted again with a -- redirected response, the active URI is the URI the request was -- redirected to. </para></listitem> -- <listitem><para> When the response is received from the -- server, the active URI is the final one and it will not change again. -- </para></listitem> </orderedlist> -- -- You can monitor the active URI by connecting to the notifyuri -- signal of resource. webResourceGetUri :: (HasCallStack, MonadIO m, IsWebResource a) => a -> m Text -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get webResource #response --getWebResourceResponse :: (MonadIO m, IsWebResource o) => o -> m URIResponse -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get webResource #uri --getWebResourceUri :: (MonadIO m, IsWebResource o) => o -> m Text -- | This signal is emitted when an error occurs during the resource load -- operation. type WebResourceFailedCallback = -- | /@error@/: the t'GError' that was triggered GError -> IO () -- | Connect a signal handler for the failed signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webResource #failed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFailedCallback) -> m SignalHandlerId -- | Connect a signal handler for the failed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webResource #failed callback --onWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFailedCallback) -> m SignalHandlerId -- | This signal is emitted when a TLS error occurs during the resource -- load operation. -- -- Since: 2.8 type WebResourceFailedWithTlsErrorsCallback = -- | /@certificate@/: a t'GI.Gio.Objects.TlsCertificate.TlsCertificate' TlsCertificate -> -- | /@errors@/: a t'GI.Gio.Flags.TlsCertificateFlags' with the verification status of /@certificate@/ [TlsCertificateFlags] -> IO () -- | Connect a signal handler for the failedWithTlsErrors signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webResource #failedWithTlsErrors callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFailedWithTlsErrorsCallback) -> m SignalHandlerId -- | Connect a signal handler for the failedWithTlsErrors signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webResource #failedWithTlsErrors callback --onWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFailedWithTlsErrorsCallback) -> m SignalHandlerId -- | This signal is emitted when the resource load finishes successfully or -- due to an error. In case of errors WebResource::failed signal -- is emitted before this one. type WebResourceFinishedCallback = IO () -- | Connect a signal handler for the finished signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webResource #finished callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFinishedCallback) -> m SignalHandlerId -- | Connect a signal handler for the finished signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webResource #finished callback --onWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceFinishedCallback) -> m SignalHandlerId -- | This signal is emitted when request has been sent to -- the server. In case of a server redirection this signal is emitted -- again with the request argument containing the new -- request sent to the server due to the redirection and the -- redirectedResponse parameter containing the response -- received by the server for the initial request. type WebResourceSentRequestCallback = -- | /@request@/: a t'GI.WebKit.Objects.URIRequest.URIRequest' URIRequest -> -- | /@redirectedResponse@/: a t'GI.WebKit.Objects.URIResponse.URIResponse', or 'P.Nothing' URIResponse -> IO () -- | Connect a signal handler for the sentRequest signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webResource #sentRequest callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceSentRequestCallback) -> m SignalHandlerId -- | Connect a signal handler for the sentRequest signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webResource #sentRequest callback --onWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> ((?self :: a) => WebResourceSentRequestCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.WebResource.WebResource instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebResource.WebResource o) => GI.WebKit.Objects.WebResource.IsWebResource o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebResource.WebResource instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebResource.WebResource instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebResource.WebResource instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebResource.WebResource instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebResource.WebResource) -- | Represents a URI scheme request. -- -- If you register a particular URI scheme in a WebContext, using -- webContextRegisterUriScheme, you have to provide a -- URISchemeRequestCallback. After that, when a URI request is -- made with that particular scheme, your callback will be called. There -- you will be able to access properties such as the scheme, the URI and -- path, and the WebView that initiated the request, and also -- finish the request with uRISchemeRequestFinish. module GI.WebKit.Objects.URISchemeRequest -- | Memory-managed wrapper type. newtype URISchemeRequest URISchemeRequest :: ManagedPtr URISchemeRequest -> URISchemeRequest -- | Type class for types which can be safely cast to -- URISchemeRequest, for instance with toURISchemeRequest. class (GObject o, IsDescendantOf URISchemeRequest o) => IsURISchemeRequest o -- | Cast to URISchemeRequest, for types for which this is known to -- be safe. For general casts, use castTo. toURISchemeRequest :: (MonadIO m, IsURISchemeRequest o) => o -> m URISchemeRequest -- | Finish a URISchemeRequest by setting the contents of the -- request and its mime type. uRISchemeRequestFinish :: (HasCallStack, MonadIO m, IsURISchemeRequest a, IsInputStream b) => a -> b -> Int64 -> Maybe Text -> m () -- | Finish a URISchemeRequest with a GError. -- -- Since: 2.2 uRISchemeRequestFinishError :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> GError -> m () -- | Finish a URISchemeRequest by returning a -- URISchemeResponse -- -- Since: 2.36 uRISchemeRequestFinishWithResponse :: (HasCallStack, MonadIO m, IsURISchemeRequest a, IsURISchemeResponse b) => a -> b -> m () -- | Get the request body. -- -- Since: 2.40 uRISchemeRequestGetHttpBody :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m InputStream -- | Get the MessageHeaders of the request. -- -- Since: 2.36 uRISchemeRequestGetHttpHeaders :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m MessageHeaders -- | Get the HTTP method of the request. -- -- Since: 2.36 uRISchemeRequestGetHttpMethod :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text -- | Get the URI path of request. uRISchemeRequestGetPath :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text -- | Get the URI scheme of request. uRISchemeRequestGetScheme :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text -- | Get the URI of request. uRISchemeRequestGetUri :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text -- | Get the WebView that initiated the request. uRISchemeRequestGetWebView :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m WebView instance GHC.Classes.Eq GI.WebKit.Objects.URISchemeRequest.URISchemeRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.URISchemeRequest.URISchemeRequest o) => GI.WebKit.Objects.URISchemeRequest.IsURISchemeRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.URISchemeRequest.URISchemeRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.URISchemeRequest.URISchemeRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.URISchemeRequest.URISchemeRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.URISchemeRequest.URISchemeRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.URISchemeRequest.URISchemeRequest) -- | Controls a print operation. -- -- A PrintOperation controls a print operation in WebKit. With a -- similar API to PrintOperation, it lets you set the print -- settings with printOperationSetPrintSettings or display the -- print dialog with printOperationRunDialog. module GI.WebKit.Objects.PrintOperation -- | Memory-managed wrapper type. newtype PrintOperation PrintOperation :: ManagedPtr PrintOperation -> PrintOperation -- | Type class for types which can be safely cast to -- PrintOperation, for instance with toPrintOperation. class (GObject o, IsDescendantOf PrintOperation o) => IsPrintOperation o -- | Cast to PrintOperation, for types for which this is known to be -- safe. For general casts, use castTo. toPrintOperation :: (MonadIO m, IsPrintOperation o) => o -> m PrintOperation -- | Return the current page setup of printOperation. -- -- It returns Nothing until either -- printOperationSetPageSetup or printOperationRunDialog -- have been called. printOperationGetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PageSetup -- | Return the current print settings of printOperation. -- -- It returns Nothing until either -- printOperationSetPrintSettings or -- printOperationRunDialog have been called. printOperationGetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PrintSettings -- | Create a new PrintOperation to print webView -- contents. printOperationNew :: (HasCallStack, MonadIO m, IsWebView a) => a -> m PrintOperation -- | Start a print operation using current print settings and page setup. -- -- Start a print operation using current print settings and page setup -- without showing the print dialog. If either print settings or page -- setup are not set with printOperationSetPrintSettings and -- printOperationSetPageSetup, the default options will be used -- and the print job will be sent to the default printer. The -- PrintOperation::finished signal is emitted when the printing -- operation finishes. If an error occurs while printing the signal -- PrintOperation::failed is emitted before -- PrintOperation::finished. printOperationPrint :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m () -- | Run the print dialog and start printing. -- -- Run the print dialog and start printing using the options selected by -- the user. This method returns when the print dialog is closed. If the -- print dialog is cancelled PrintOperationResponseCancel is -- returned. If the user clicks on the print button, -- PrintOperationResponsePrint is returned and the print operation -- starts. In this case, the PrintOperation::finished signal is -- emitted when the operation finishes. If an error occurs while -- printing, the signal PrintOperation::failed is emitted before -- PrintOperation::finished. If the print dialog is not cancelled -- current print settings and page setup of -- printOperation are updated with options selected by -- the user when Print button is pressed in print dialog. You can get the -- updated print settings and page setup by calling -- printOperationGetPrintSettings and -- printOperationGetPageSetup after this method. printOperationRunDialog :: (HasCallStack, MonadIO m, IsPrintOperation a, IsWindow b) => a -> Maybe b -> m PrintOperationResponse -- | Set the current page setup of printOperation. -- -- Current page setup is used for the initial values of the print dialog -- when printOperationRunDialog is called. printOperationSetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPageSetup b) => a -> b -> m () -- | Set the current print settings of printOperation. -- -- Set the current print settings of printOperation. -- Current print settings are used for the initial values of the print -- dialog when printOperationRunDialog is called. printOperationSetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPrintSettings b) => a -> b -> m () -- | Construct a GValueConstruct with valid value for the -- “page-setup” property. This is rarely needed directly, but it -- is used by new. constructPrintOperationPageSetup :: (IsPrintOperation o, MonadIO m, IsPageSetup a) => a -> m (GValueConstruct o) -- | Get the value of the “page-setup” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #pageSetup --getPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m PageSetup -- | Set the value of the “page-setup” property. When -- overloading is enabled, this is equivalent to -- --
-- set printOperation [ #pageSetup := value ] --setPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o, IsPageSetup a) => o -> a -> m () -- | Construct a GValueConstruct with valid value for the -- “print-settings” property. This is rarely needed directly, -- but it is used by new. constructPrintOperationPrintSettings :: (IsPrintOperation o, MonadIO m, IsPrintSettings a) => a -> m (GValueConstruct o) -- | Get the value of the “print-settings” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #printSettings --getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m PrintSettings -- | Set the value of the “print-settings” property. When -- overloading is enabled, this is equivalent to -- --
-- set printOperation [ #printSettings := value ] --setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, IsPrintSettings a) => o -> a -> m () -- | Construct a GValueConstruct with valid value for the -- “web-view” property. This is rarely needed directly, but it -- is used by new. constructPrintOperationWebView :: (IsPrintOperation o, MonadIO m, IsWebView a) => a -> m (GValueConstruct o) -- | Get the value of the “web-view” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #webView --getPrintOperationWebView :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe WebView) -- | Emitted when an error occurs while printing. The given -- error, of the domain -- WEBKIT_PRINT_ERROR, contains further details of the -- failure. The PrintOperation::finished signal is emitted after -- this one. type PrintOperationFailedCallback = -- | /@error@/: the t'GError' that was triggered GError -> IO () -- | Connect a signal handler for the failed signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printOperation #failed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> ((?self :: a) => PrintOperationFailedCallback) -> m SignalHandlerId -- | Connect a signal handler for the failed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printOperation #failed callback --onPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> ((?self :: a) => PrintOperationFailedCallback) -> m SignalHandlerId -- | Emitted when the print operation has finished doing everything -- required for printing. type PrintOperationFinishedCallback = IO () -- | Connect a signal handler for the finished signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printOperation #finished callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> ((?self :: a) => PrintOperationFinishedCallback) -> m SignalHandlerId -- | Connect a signal handler for the finished signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printOperation #finished callback --onPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> ((?self :: a) => PrintOperationFinishedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.PrintOperation.PrintOperation instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.PrintOperation.PrintOperation o) => GI.WebKit.Objects.PrintOperation.IsPrintOperation o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.PrintOperation.PrintOperation instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.PrintOperation.PrintOperation instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.PrintOperation.PrintOperation instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.PrintOperation.PrintOperation instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.PrintOperation.PrintOperation) -- | Controls text search in a WebView. -- -- A FindController is used to search text in a WebView. -- You can get a WebView's FindController with -- webViewGetFindController, and later use it to search for text -- using findControllerSearch, or get the number of matches using -- findControllerCountMatches. The operations are asynchronous and -- trigger signals when ready, such as FindController::foundText, -- FindController::failedToFindText or -- FindController::countedMatches. module GI.WebKit.Objects.FindController -- | Memory-managed wrapper type. newtype FindController FindController :: ManagedPtr FindController -> FindController -- | Type class for types which can be safely cast to -- FindController, for instance with toFindController. class (GObject o, IsDescendantOf FindController o) => IsFindController o -- | Cast to FindController, for types for which this is known to be -- safe. For general casts, use castTo. toFindController :: (MonadIO m, IsFindController o) => o -> m FindController -- | Counts the number of matches for searchText. -- -- Counts the number of matches for searchText found in -- the WebView with the provided findOptions. The -- number of matches will be provided by the -- FindController::countedMatches signal. findControllerCountMatches :: (HasCallStack, MonadIO m, IsFindController a) => a -> Text -> Word32 -> Word32 -> m () -- | Gets the maximum number of matches to report. -- -- Gets the maximum number of matches to report during a text lookup. -- This number is passed as the last argument of -- findControllerSearch or findControllerCountMatches. findControllerGetMaxMatchCount :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Word32 -- | Gets the FindOptions for the current search. -- -- Gets a bitmask containing the FindOptions associated with the -- current search. findControllerGetOptions :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Word32 -- | Gets the text that findController is searching for. -- -- Gets the text that findController is currently -- searching for. This text is passed to either -- findControllerSearch or findControllerCountMatches. findControllerGetSearchText :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Text -- | Gets the WebView this find controller is associated to. -- -- Do not dereference the returned instance as it belongs to the -- FindController. findControllerGetWebView :: (HasCallStack, MonadIO m, IsFindController a) => a -> m WebView -- | Looks for searchText associated with -- findController. -- -- Looks for searchText in the WebView associated -- with findController since the beginning of the -- document highlighting up to maxMatchCount matches. The -- outcome of the search will be asynchronously provided by the -- FindController::foundText and -- FindController::failedToFindText signals. -- -- To look for the next or previous occurrences of the same text with the -- same find options use findControllerSearchNext and/or -- findControllerSearchPrevious. The FindController will -- use the same text and options for the following searches unless they -- are modified by another call to this method. -- -- Note that if the number of matches is higher than -- maxMatchCount then FindController::foundText -- will report G_MAXUINT matches instead of the actual -- number. -- -- Callers should call findControllerSearchFinish to finish the -- current search operation. findControllerSearch :: (HasCallStack, MonadIO m, IsFindController a) => a -> Text -> Word32 -> Word32 -> m () -- | Finishes a find operation. -- -- Finishes a find operation started by findControllerSearch. It -- will basically unhighlight every text match found. -- -- This method will be typically called when the search UI is -- closed/hidden by the client application. findControllerSearchFinish :: (HasCallStack, MonadIO m, IsFindController a) => a -> m () -- | Looks for the next occurrence of the search text. -- -- Calling this method before findControllerSearch or -- findControllerCountMatches is a programming error. findControllerSearchNext :: (HasCallStack, MonadIO m, IsFindController a) => a -> m () -- | Looks for the previous occurrence of the search text. -- -- Calling this method before findControllerSearch or -- findControllerCountMatches is a programming error. findControllerSearchPrevious :: (HasCallStack, MonadIO m, IsFindController a) => a -> m () -- | Get the value of the “max-match-count” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #maxMatchCount --getFindControllerMaxMatchCount :: (MonadIO m, IsFindController o) => o -> m Word32 -- | Get the value of the “options” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #options --getFindControllerOptions :: (MonadIO m, IsFindController o) => o -> m [FindOptions] -- | Get the value of the “text” property. When overloading -- is enabled, this is equivalent to -- --
-- get findController #text --getFindControllerText :: (MonadIO m, IsFindController o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “web-view” property. This is rarely needed directly, but it -- is used by new. constructFindControllerWebView :: (IsFindController o, MonadIO m, IsWebView a) => a -> m (GValueConstruct o) -- | Get the value of the “web-view” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #webView --getFindControllerWebView :: (MonadIO m, IsFindController o) => o -> m WebView -- | This signal is emitted when the FindController has counted the -- number of matches for a given text after a call to -- findControllerCountMatches. type FindControllerCountedMatchesCallback = -- | /@matchCount@/: the number of matches of the search text Word32 -> IO () -- | Connect a signal handler for the countedMatches signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after findController #countedMatches callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerCountedMatchesCallback) -> m SignalHandlerId -- | Connect a signal handler for the countedMatches signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on findController #countedMatches callback --onFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerCountedMatchesCallback) -> m SignalHandlerId -- | This signal is emitted when a search operation does not find any -- result for the given text. It will be issued if the text is not found -- asynchronously after a call to findControllerSearch, -- findControllerSearchNext or -- findControllerSearchPrevious. type FindControllerFailedToFindTextCallback = IO () -- | Connect a signal handler for the failedToFindText signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after findController #failedToFindText callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerFailedToFindTextCallback) -> m SignalHandlerId -- | Connect a signal handler for the failedToFindText signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on findController #failedToFindText callback --onFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerFailedToFindTextCallback) -> m SignalHandlerId -- | This signal is emitted when a given text is found in the web page -- text. It will be issued if the text is found asynchronously after a -- call to findControllerSearch, findControllerSearchNext -- or findControllerSearchPrevious. type FindControllerFoundTextCallback = -- | /@matchCount@/: the number of matches found of the search text Word32 -> IO () -- | Connect a signal handler for the foundText signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after findController #foundText callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerFoundTextCallback) -> m SignalHandlerId -- | Connect a signal handler for the foundText signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on findController #foundText callback --onFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> ((?self :: a) => FindControllerFoundTextCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.FindController.FindController instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.FindController.FindController o) => GI.WebKit.Objects.FindController.IsFindController o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.FindController.FindController instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.FindController.FindController instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.FindController.FindController instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.FindController.FindController instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.FindController.FindController) -- | Object used to communicate with the application when downloading. -- -- Download carries information about a download request and -- response, including a URIRequest and a URIResponse -- objects. The application may use this object to control the download -- process, or to simply figure out what is to be downloaded, and handle -- the download process itself. module GI.WebKit.Objects.Download -- | Memory-managed wrapper type. newtype Download Download :: ManagedPtr Download -> Download -- | Type class for types which can be safely cast to Download, for -- instance with toDownload. class (GObject o, IsDescendantOf Download o) => IsDownload o -- | Cast to Download, for types for which this is known to be safe. -- For general casts, use castTo. toDownload :: (MonadIO m, IsDownload o) => o -> m Download -- | Cancels the download. -- -- When the ongoing download operation is effectively cancelled the -- signal Download::failed is emitted with -- DownloadErrorCancelledByUser error. downloadCancel :: (HasCallStack, MonadIO m, IsDownload a) => a -> m () -- | Returns the current value of the Download:allowOverwrite -- property. -- -- Returns the current value of the Download:allowOverwrite -- property, which determines whether the download will overwrite an -- existing file on disk, or if it will fail if the destination already -- exists. -- -- Since: 2.6 downloadGetAllowOverwrite :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Bool -- | Obtains the destination to which the downloaded file will be written. -- -- You can connect to Download::createdDestination to make sure -- this method returns a valid destination. downloadGetDestination :: (HasCallStack, MonadIO m, IsDownload a) => a -> m (Maybe Text) -- | Gets the elapsed time in seconds, including any fractional part. -- -- If the download finished, had an error or was cancelled this is the -- time between its start and the event. downloadGetElapsedTime :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Double -- | Gets the value of the Download:estimatedProgress property. Gets -- the value of the Download:estimatedProgress property. You can -- monitor the estimated progress of the download operation by connecting -- to the notifyestimatedProgress signal of -- download. downloadGetEstimatedProgress :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Double -- | Gets the length of the data already downloaded for -- download. -- -- Gets the length of the data already downloaded for -- download in bytes. downloadGetReceivedDataLength :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Word64 -- | Retrieves the URIRequest object that backs the download -- process. downloadGetRequest :: (HasCallStack, MonadIO m, IsDownload a) => a -> m URIRequest -- | Retrieves the URIResponse object that backs the download -- process. -- -- Retrieves the URIResponse object that backs the download -- process. This method returns Nothing if called before the -- response is received from the server. You can connect to -- notifyresponse signal to be notified when the response is -- received. downloadGetResponse :: (HasCallStack, MonadIO m, IsDownload a) => a -> m URIResponse -- | Get the WebView that initiated the download. downloadGetWebView :: (HasCallStack, MonadIO m, IsDownload a) => a -> m WebView -- | Sets the Download:allowOverwrite property. -- -- Sets the Download:allowOverwrite property, which determines -- whether the download may overwrite an existing file on disk, or if it -- will fail if the destination already exists. -- -- Since: 2.6 downloadSetAllowOverwrite :: (HasCallStack, MonadIO m, IsDownload a) => a -> Bool -> m () -- | Sets the destination to which the downloaded file will be written. -- -- This method should be called before the download transfer starts or it -- will not have any effect on the ongoing download operation. To set the -- destination using the filename suggested by the server connect to -- Download::decideDestination signal and call -- downloadSetDestination. If you want to set a fixed destination -- that doesn't depend on the suggested filename you can connect to -- notifyresponse signal and call downloadSetDestination. -- -- If Download::decideDestination signal is not handled and -- destination is not set when the download transfer starts, the file -- will be saved with the filename suggested by the server in -- UserDirectoryDirectoryDownload directory. downloadSetDestination :: (HasCallStack, MonadIO m, IsDownload a) => a -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-overwrite” property. This is rarely needed directly, -- but it is used by new. constructDownloadAllowOverwrite :: (IsDownload o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “allow-overwrite” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #allowOverwrite --getDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> m Bool -- | Set the value of the “allow-overwrite” property. When -- overloading is enabled, this is equivalent to -- --
-- set download [ #allowOverwrite := value ] --setDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> Bool -> m () -- | Get the value of the “destination” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #destination --getDownloadDestination :: (MonadIO m, IsDownload o) => o -> m (Maybe Text) -- | Get the value of the “estimated-progress” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #estimatedProgress --getDownloadEstimatedProgress :: (MonadIO m, IsDownload o) => o -> m Double -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #response --getDownloadResponse :: (MonadIO m, IsDownload o) => o -> m URIResponse -- | This signal is emitted after Download::decideDestination and -- before Download::receivedData to notify that destination file -- has been created successfully at destination. type DownloadCreatedDestinationCallback = -- | /@destination@/: the destination Text -> IO () -- | Connect a signal handler for the createdDestination signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after download #createdDestination callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadCreatedDestinationCallback) -> m SignalHandlerId -- | Connect a signal handler for the createdDestination signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on download #createdDestination callback --onDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadCreatedDestinationCallback) -> m SignalHandlerId -- | This signal is emitted after response is received to decide a -- destination for the download using downloadSetDestination. If -- this signal is not handled, the file will be downloaded to -- UserDirectoryDirectoryDownload directory using -- suggestedFilename. -- -- Since 2.40, you may handle this signal asynchronously by returning -- True without calling downloadSetDestination. This -- indicates intent to eventually call downloadSetDestination. In -- this case, the download will not proceed until the destination is set -- or cancelled with downloadCancel. type DownloadDecideDestinationCallback = -- | /@suggestedFilename@/: the filename suggested for the download Text -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event, -- or 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the decideDestination signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after download #decideDestination callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadDecideDestinationCallback) -> m SignalHandlerId -- | Connect a signal handler for the decideDestination signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on download #decideDestination callback --onDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadDecideDestinationCallback) -> m SignalHandlerId -- | This signal is emitted when an error occurs during the download -- operation. The given error, of the domain -- WEBKIT_DOWNLOAD_ERROR, contains further details of the -- failure. If the download is cancelled with downloadCancel, this -- signal is emitted with error DownloadErrorCancelledByUser. The -- download operation finishes after an error and -- Download::finished signal is emitted after this one. type DownloadFailedCallback = -- | /@error@/: the t'GError' that was triggered GError -> IO () -- | Connect a signal handler for the failed signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after download #failed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterDownloadFailed :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadFailedCallback) -> m SignalHandlerId -- | Connect a signal handler for the failed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on download #failed callback --onDownloadFailed :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadFailedCallback) -> m SignalHandlerId -- | This signal is emitted when download finishes successfully or due to -- an error. In case of errors Download::failed signal is emitted -- before this one. type DownloadFinishedCallback = IO () -- | Connect a signal handler for the finished signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after download #finished callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterDownloadFinished :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadFinishedCallback) -> m SignalHandlerId -- | Connect a signal handler for the finished signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on download #finished callback --onDownloadFinished :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadFinishedCallback) -> m SignalHandlerId -- | This signal is emitted after response is received, every time new data -- has been written to the destination. It's useful to know the progress -- of the download operation. type DownloadReceivedDataCallback = -- | /@dataLength@/: the length of data received in bytes Word64 -> IO () -- | Connect a signal handler for the receivedData signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after download #receivedData callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadReceivedDataCallback) -> m SignalHandlerId -- | Connect a signal handler for the receivedData signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on download #receivedData callback --onDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> ((?self :: a) => DownloadReceivedDataCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.Download.Download instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.Download.Download o) => GI.WebKit.Objects.Download.IsDownload o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.Download.Download instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.Download.Download instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.Download.Download instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.Download.Download instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.Download.Download) -- | No description available in the introspection data. module GI.WebKit.Objects.WebViewBase -- | Memory-managed wrapper type. newtype WebViewBase WebViewBase :: ManagedPtr WebViewBase -> WebViewBase -- | Type class for types which can be safely cast to WebViewBase, -- for instance with toWebViewBase. class (GObject o, IsDescendantOf WebViewBase o) => IsWebViewBase o -- | Cast to WebViewBase, for types for which this is known to be -- safe. For general casts, use castTo. toWebViewBase :: (MonadIO m, IsWebViewBase o) => o -> m WebViewBase instance GHC.Classes.Eq GI.WebKit.Objects.WebViewBase.WebViewBase instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebViewBase.WebViewBase o) => GI.WebKit.Objects.WebViewBase.IsWebViewBase o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebViewBase.WebViewBase instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebViewBase.WebViewBase instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebViewBase.WebViewBase instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebViewBase.WebViewBase instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebViewBase.WebViewBase) -- | Access to the WebKit inspector. -- -- The WebKit Inspector is a graphical tool to inspect and change the -- content of a WebView. It also includes an interactive -- JavaScript debugger. Using this class one can get a Widget -- which can be embedded into an application to show the inspector. -- -- The inspector is available when the Settings of the -- WebView has set the Settings:enableDeveloperExtras to -- true, otherwise no inspector is available. -- --
-- // Enable the developer extras -- WebKitSettings *settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW(my_webview)); -- g_object_set (G_OBJECT(settings), "enable-developer-extras", TRUE, NULL); -- -- // Load some data or reload to be able to inspect the page -- webkit_web_view_load_uri (WEBKIT_WEB_VIEW(my_webview), "http://www.gnome.org"); -- -- // Show the inspector -- WebKitWebInspector *inspector = webkit_web_view_get_inspector (WEBKIT_WEB_VIEW(my_webview)); -- webkit_web_inspector_show (WEBKIT_WEB_INSPECTOR(inspector)); --module GI.WebKit.Objects.WebInspector -- | Memory-managed wrapper type. newtype WebInspector WebInspector :: ManagedPtr WebInspector -> WebInspector -- | Type class for types which can be safely cast to WebInspector, -- for instance with toWebInspector. class (GObject o, IsDescendantOf WebInspector o) => IsWebInspector o -- | Cast to WebInspector, for types for which this is known to be -- safe. For general casts, use castTo. toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector -- | Request inspector to be attached. -- -- The signal WebInspector::attach will be emitted. If the -- inspector is already attached it does nothing. webInspectorAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m () -- | Request inspector to be closed. webInspectorClose :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m () -- | Request inspector to be detached. -- -- The signal WebInspector::detach will be emitted. If the -- inspector is already detached it does nothing. webInspectorDetach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m () -- | Get the height that the inspector view when attached. -- -- Get the height that the inspector view should have when it's attached. -- If the inspector view is not attached this returns 0. webInspectorGetAttachedHeight :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Word32 -- | Whether the inspector can be attached to the same -- window that contains the inspected view. -- -- Since: 2.8 webInspectorGetCanAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool -- | Get the URI that is currently being inspected. -- -- This can be Nothing if nothing has been loaded yet in the -- inspected view, if the inspector has been closed or when inspected -- view was loaded from a HTML string instead of a URI. webInspectorGetInspectedUri :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Text -- | Get the WebViewBase used to display the inspector. -- -- This might be Nothing if the inspector hasn't been loaded yet, -- or it has been closed. webInspectorGetWebView :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m WebViewBase -- | Whether the inspector view is currently attached to -- the same window that contains the inspected view. webInspectorIsAttached :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool -- | Request inspector to be shown. webInspectorShow :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m () -- | Get the value of the “attached-height” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #attachedHeight --getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32 -- | Get the value of the “can-attach” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #canAttach --getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool -- | Get the value of the “inspected-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #inspectedUri --getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m Text -- | Emitted when the inspector is requested to be attached to the window -- where the inspected web view is. If this signal is not handled the -- inspector view will be automatically attached to the inspected view, -- so you only need to handle this signal if you want to attach the -- inspector view yourself (for example, to add the inspector view to a -- browser tab). -- -- To prevent the inspector view from being attached you can connect to -- this signal and simply return True. type WebInspectorAttachCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the attach signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #attach callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorAttachCallback) -> m SignalHandlerId -- | Connect a signal handler for the attach signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #attach callback --onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorAttachCallback) -> m SignalHandlerId -- | Emitted when the inspector should be shown. -- -- If the inspector is not attached the inspector window should be shown -- on top of any other windows. If the inspector is attached the -- inspector view should be made visible. For example, if the inspector -- view is attached using a tab in a browser window, the browser window -- should be raised and the tab containing the inspector view should be -- the active one. In both cases, if this signal is not handled, the -- default implementation calls windowPresent on the current -- toplevel Window of the inspector view. type WebInspectorBringToFrontCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the bringToFront signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #bringToFront callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorBringToFrontCallback) -> m SignalHandlerId -- | Connect a signal handler for the bringToFront signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #bringToFront callback --onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorBringToFrontCallback) -> m SignalHandlerId -- | Emitted when the inspector page is closed. If you are using your own -- inspector window, you should connect to this signal and destroy your -- window. type WebInspectorClosedCallback = IO () -- | Connect a signal handler for the closed signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #closed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorClosedCallback) -> m SignalHandlerId -- | Connect a signal handler for the closed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #closed callback --onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorClosedCallback) -> m SignalHandlerId -- | Emitted when the inspector is requested to be detached from the window -- it is currently attached to. The inspector is detached when the -- inspector page is about to be closed, and this signal is emitted right -- before WebInspector::closed, or when the user clicks on the -- detach button in the inspector view to show the inspector in a -- separate window. In this case the signal -- WebInspector::openWindow is emitted after this one. -- -- To prevent the inspector view from being detached you can connect to -- this signal and simply return True. type WebInspectorDetachCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the detach signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #detach callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorDetachCallback) -> m SignalHandlerId -- | Connect a signal handler for the detach signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #detach callback --onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorDetachCallback) -> m SignalHandlerId -- | Emitted when the inspector is requested to open in a separate window. -- If this signal is not handled, a Window with the inspector will -- be created and shown, so you only need to handle this signal if you -- want to use your own window. This signal is emitted after -- WebInspector::detach to show the inspector in a separate window -- after being detached. -- -- To prevent the inspector from being shown you can connect to this -- signal and simply return True type WebInspectorOpenWindowCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the openWindow signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #openWindow callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorOpenWindowCallback) -> m SignalHandlerId -- | Connect a signal handler for the openWindow signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #openWindow callback --onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> ((?self :: a) => WebInspectorOpenWindowCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.WebInspector.WebInspector instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebInspector.WebInspector o) => GI.WebKit.Objects.WebInspector.IsWebInspector o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebInspector.WebInspector instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebInspector.WebInspector instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebInspector.WebInspector instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebInspector.WebInspector instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebInspector.WebInspector) -- | A permission request for accessing website data from third-party -- domains. -- -- WebKitWebsiteDataAccessPermissionRequest represents a request for -- permission to allow a third-party domain access its cookies. -- -- When a WebKitWebsiteDataAccessPermissionRequest is not handled by the -- user, it is denied by default. -- -- Since: 2.30 module GI.WebKit.Objects.WebsiteDataAccessPermissionRequest -- | Memory-managed wrapper type. newtype WebsiteDataAccessPermissionRequest WebsiteDataAccessPermissionRequest :: ManagedPtr WebsiteDataAccessPermissionRequest -> WebsiteDataAccessPermissionRequest -- | Type class for types which can be safely cast to -- WebsiteDataAccessPermissionRequest, for instance with -- toWebsiteDataAccessPermissionRequest. class (GObject o, IsDescendantOf WebsiteDataAccessPermissionRequest o) => IsWebsiteDataAccessPermissionRequest o -- | Cast to WebsiteDataAccessPermissionRequest, for types for which -- this is known to be safe. For general casts, use castTo. toWebsiteDataAccessPermissionRequest :: (MonadIO m, IsWebsiteDataAccessPermissionRequest o) => o -> m WebsiteDataAccessPermissionRequest -- | Get the current domain being browsed. -- -- Since: 2.30 websiteDataAccessPermissionRequestGetCurrentDomain :: (HasCallStack, MonadIO m, IsWebsiteDataAccessPermissionRequest a) => a -> m Text -- | Get the domain requesting permission to access its cookies while -- browsing the current domain. -- -- Since: 2.30 websiteDataAccessPermissionRequestGetRequestingDomain :: (HasCallStack, MonadIO m, IsWebsiteDataAccessPermissionRequest a) => a -> m Text instance GHC.Classes.Eq GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest o) => GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.IsWebsiteDataAccessPermissionRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequest) -- | View specific website policies. -- -- WebKitWebsitePolicies allows you to configure per-page policies, -- currently only autoplay policies are supported. -- -- Since: 2.30 module GI.WebKit.Objects.WebsitePolicies -- | Memory-managed wrapper type. newtype WebsitePolicies WebsitePolicies :: ManagedPtr WebsitePolicies -> WebsitePolicies -- | Type class for types which can be safely cast to -- WebsitePolicies, for instance with toWebsitePolicies. class (GObject o, IsDescendantOf WebsitePolicies o) => IsWebsitePolicies o -- | Cast to WebsitePolicies, for types for which this is known to -- be safe. For general casts, use castTo. toWebsitePolicies :: (MonadIO m, IsWebsitePolicies o) => o -> m WebsitePolicies -- | Get the WebsitePolicies:autoplay property. -- -- Since: 2.30 websitePoliciesGetAutoplayPolicy :: (HasCallStack, MonadIO m, IsWebsitePolicies a) => a -> m AutoplayPolicy -- | Create a new WebsitePolicies. -- -- Since: 2.30 websitePoliciesNew :: (HasCallStack, MonadIO m) => m WebsitePolicies -- | Construct a GValueConstruct with valid value for the -- “autoplay” property. This is rarely needed directly, but it -- is used by new. constructWebsitePoliciesAutoplay :: (IsWebsitePolicies o, MonadIO m) => AutoplayPolicy -> m (GValueConstruct o) -- | Get the value of the “autoplay” property. When -- overloading is enabled, this is equivalent to -- --
-- get websitePolicies #autoplay --getWebsitePoliciesAutoplay :: (MonadIO m, IsWebsitePolicies o) => o -> m AutoplayPolicy instance GHC.Classes.Eq GI.WebKit.Objects.WebsitePolicies.WebsitePolicies instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebsitePolicies.WebsitePolicies o) => GI.WebKit.Objects.WebsitePolicies.IsWebsitePolicies o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebsitePolicies.WebsitePolicies instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebsitePolicies.WebsitePolicies instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebsitePolicies.WebsitePolicies instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebsitePolicies.WebsitePolicies instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebsitePolicies.WebsitePolicies) -- | A pending policy decision. -- -- Often WebKit allows the client to decide the policy for certain -- operations. For instance, a client may want to open a link in a new -- tab, block a navigation entirely, query the user or trigger a download -- instead of a navigation. In these cases WebKit will fire the -- WebView::decidePolicy signal with a PolicyDecision -- object. If the signal handler does nothing, WebKit will act as if -- policyDecisionUse was called as soon as signal handling -- completes. To make a policy decision asynchronously, simply increment -- the reference count of the PolicyDecision object. module GI.WebKit.Objects.PolicyDecision -- | Memory-managed wrapper type. newtype PolicyDecision PolicyDecision :: ManagedPtr PolicyDecision -> PolicyDecision -- | Type class for types which can be safely cast to -- PolicyDecision, for instance with toPolicyDecision. class (GObject o, IsDescendantOf PolicyDecision o) => IsPolicyDecision o -- | Cast to PolicyDecision, for types for which this is known to be -- safe. For general casts, use castTo. toPolicyDecision :: (MonadIO m, IsPolicyDecision o) => o -> m PolicyDecision -- | Spawn a download from this decision. policyDecisionDownload :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () -- | ResponsePolicyDecision, this would cancel the request. -- -- Ignore the action which triggered this decision. For instance, for a -- ResponsePolicyDecision, this would cancel the request. policyDecisionIgnore :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () -- | Accept the action which triggered this decision. policyDecisionUse :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () -- | Accept the navigation action and continue with provided -- policies. -- -- Accept the navigation action which triggered this decision, and -- continue with policies affecting all subsequent loads -- of resources in the origin associated with the accepted navigation -- action. -- -- For example, a navigation decision to a video sharing website may be -- accepted under the priviso no movies are allowed to autoplay. The -- autoplay policy in this case would be set in the -- policies. -- -- Since: 2.30 policyDecisionUseWithPolicies :: (HasCallStack, MonadIO m, IsPolicyDecision a, IsWebsitePolicies b) => a -> b -> m () instance GHC.Classes.Eq GI.WebKit.Objects.PolicyDecision.PolicyDecision instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.PolicyDecision.PolicyDecision o) => GI.WebKit.Objects.PolicyDecision.IsPolicyDecision o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.PolicyDecision.PolicyDecision instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.PolicyDecision.PolicyDecision instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.PolicyDecision.PolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.PolicyDecision.PolicyDecision instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.PolicyDecision.PolicyDecision) -- | Window properties of a WebView. -- -- The content of a WebView can request to change certain -- properties of the window containing the view. This can include the x, -- y position of the window, the width and height but also if a toolbar, -- scrollbar, statusbar, locationbar should be visible to the user, and -- the request to show the WebView fullscreen. -- -- The WebView::readyToShow signal handler is the proper place to -- apply the initial window properties. Then you can monitor the -- WindowProperties by connecting to notify signal. -- --
-- static void ready_to_show_cb (WebKitWebView *web_view, gpointer user_data)
-- {
-- GtkWidget *window;
-- WebKitWindowProperties *window_properties;
-- gboolean visible;
--
-- // Create the window to contain the WebKitWebView.
-- window = browser_window_new ();
-- gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (web_view));
-- gtk_widget_show (GTK_WIDGET (web_view));
--
-- // Get the WebKitWindowProperties of the web view and monitor it.
-- window_properties = webkit_web_view_get_window_properties (web_view);
-- g_signal_connect (window_properties, "notify::geometry",
-- G_CALLBACK (window_geometry_changed), window);
-- g_signal_connect (window_properties, "notify::toolbar-visible",
-- G_CALLBACK (window_toolbar_visibility_changed), window);
-- g_signal_connect (window_properties, "notify::menubar-visible",
-- G_CALLBACK (window_menubar_visibility_changed), window);
--
-- // Apply the window properties before showing the window.
-- visible = webkit_window_properties_get_toolbar_visible (window_properties);
-- browser_window_set_toolbar_visible (BROWSER_WINDOW (window), visible);
-- visible = webkit_window_properties_get_menubar_visible (window_properties);
-- browser_window_set_menubar_visible (BROWSER_WINDOW (window), visible);
--
-- if (webkit_window_properties_get_fullscreen (window_properties)) {
-- gtk_window_fullscreen (GTK_WINDOW (window));
-- } else {
-- GdkRectangle geometry;
--
-- gtk_window_set_resizable (GTK_WINDOW (window),
-- webkit_window_properties_get_resizable (window_properties));
-- webkit_window_properties_get_geometry (window_properties, &geometry);
-- gtk_window_move (GTK_WINDOW (window), geometry.x, geometry.y);
-- gtk_window_resize (GTK_WINDOW (window), geometry.width, geometry.height);
-- }
--
-- gtk_widget_show (window);
-- }
--
module GI.WebKit.Objects.WindowProperties
-- | Memory-managed wrapper type.
newtype WindowProperties
WindowProperties :: ManagedPtr WindowProperties -> WindowProperties
-- | Type class for types which can be safely cast to
-- WindowProperties, for instance with toWindowProperties.
class (GObject o, IsDescendantOf WindowProperties o) => IsWindowProperties o
-- | Cast to WindowProperties, for types for which this is known to
-- be safe. For general casts, use castTo.
toWindowProperties :: (MonadIO m, IsWindowProperties o) => o -> m WindowProperties
-- | Get whether the window should be shown in fullscreen state or not.
windowPropertiesGetFullscreen :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get the geometry the window should have on the screen when shown.
windowPropertiesGetGeometry :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Rectangle
-- | Get whether the window should have the locationbar visible or not.
windowPropertiesGetLocationbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the menubar visible or not.
windowPropertiesGetMenubarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should be resizable by the user or not.
windowPropertiesGetResizable :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the scrollbars visible or not.
windowPropertiesGetScrollbarsVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the statusbar visible or not.
windowPropertiesGetStatusbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the toolbar visible or not.
windowPropertiesGetToolbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Construct a GValueConstruct with valid value for the
-- “fullscreen” property. This is rarely needed directly, but it
-- is used by new.
constructWindowPropertiesFullscreen :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o)
-- | Get the value of the “fullscreen” property. When
-- overloading is enabled, this is equivalent to
--
-- -- get windowProperties #fullscreen --getWindowPropertiesFullscreen :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “geometry” property. This is rarely needed directly, but it -- is used by new. constructWindowPropertiesGeometry :: (IsWindowProperties o, MonadIO m) => Rectangle -> m (GValueConstruct o) -- | Get the value of the “geometry” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #geometry --getWindowPropertiesGeometry :: (MonadIO m, IsWindowProperties o) => o -> m (Maybe Rectangle) -- | Construct a GValueConstruct with valid value for the -- “locationbar-visible” property. This is rarely needed -- directly, but it is used by new. constructWindowPropertiesLocationbarVisible :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “locationbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #locationbarVisible --getWindowPropertiesLocationbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “menubar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesMenubarVisible :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “menubar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #menubarVisible --getWindowPropertiesMenubarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “resizable” property. This is rarely needed directly, but it -- is used by new. constructWindowPropertiesResizable :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “resizable” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #resizable --getWindowPropertiesResizable :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “scrollbars-visible” property. This is rarely needed -- directly, but it is used by new. constructWindowPropertiesScrollbarsVisible :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “scrollbars-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #scrollbarsVisible --getWindowPropertiesScrollbarsVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “statusbar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesStatusbarVisible :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “statusbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #statusbarVisible --getWindowPropertiesStatusbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “toolbar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesToolbarVisible :: (IsWindowProperties o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “toolbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #toolbarVisible --getWindowPropertiesToolbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool instance GHC.Classes.Eq GI.WebKit.Objects.WindowProperties.WindowProperties instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WindowProperties.WindowProperties o) => GI.WebKit.Objects.WindowProperties.IsWindowProperties o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WindowProperties.WindowProperties instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WindowProperties.WindowProperties instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WindowProperties.WindowProperties instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WindowProperties.WindowProperties instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WindowProperties.WindowProperties) -- | Information about an application running in automation mode. module GI.WebKit.Structs.ApplicationInfo -- | Memory-managed wrapper type. newtype ApplicationInfo ApplicationInfo :: ManagedPtr ApplicationInfo -> ApplicationInfo -- | Get the name of the application. -- -- If applicationInfoSetName hasn't been called with a valid name, -- this returns getPrgname. -- -- Since: 2.18 applicationInfoGetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> m Text -- | Get the application version previously set with -- applicationInfoSetVersion. -- -- Since: 2.18 applicationInfoGetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> m (Word64, Word64, Word64) -- | Creates a new ApplicationInfo -- -- Since: 2.18 applicationInfoNew :: (HasCallStack, MonadIO m) => m ApplicationInfo -- | Atomically increments the reference count of info by -- one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.18 applicationInfoRef :: (HasCallStack, MonadIO m) => ApplicationInfo -> m ApplicationInfo -- | Set the name of the application. -- -- If not provided, or Nothing is passed, getPrgname will -- be used. -- -- Since: 2.18 applicationInfoSetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> Text -> m () -- | Set the application version. -- -- If the application doesn't use the format major.minor.micro you can -- pass 0 as the micro to use major.minor, or pass 0 as both micro and -- minor to use only major number. Any other format must be converted to -- major.minor.micro so that it can be used in version comparisons. -- -- Since: 2.18 applicationInfoSetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> Word64 -> Word64 -> Word64 -> m () -- | Atomically decrements the reference count of info by -- one. -- -- If the reference count drops to 0, all memory allocated by the -- ApplicationInfo is released. This function is MT-safe and may -- be called from any thread. -- -- Since: 2.18 applicationInfoUnref :: (HasCallStack, MonadIO m) => ApplicationInfo -> m () instance GHC.Classes.Eq GI.WebKit.Structs.ApplicationInfo.ApplicationInfo instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.ApplicationInfo.ApplicationInfo instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.ApplicationInfo.ApplicationInfo instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.ApplicationInfo.ApplicationInfo instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.ApplicationInfo.ApplicationInfo instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.ApplicationInfo.ApplicationInfo) -- | Automation Session. -- -- WebKitAutomationSession represents an automation session of a -- WebKitWebContext. When a new session is requested, a -- WebKitAutomationSession is created and the signal -- WebKitWebContextautomationStarted is emitted with the -- WebKitAutomationSession as argument. Then, the automation client can -- request the session to create a new WebView to interact with -- it. When this happens the signal -- AutomationSession::createWebView is emitted. -- -- Since: 2.18 module GI.WebKit.Objects.AutomationSession -- | Memory-managed wrapper type. newtype AutomationSession AutomationSession :: ManagedPtr AutomationSession -> AutomationSession -- | Type class for types which can be safely cast to -- AutomationSession, for instance with -- toAutomationSession. class (GObject o, IsDescendantOf AutomationSession o) => IsAutomationSession o -- | Cast to AutomationSession, for types for which this is known to -- be safe. For general casts, use castTo. toAutomationSession :: (MonadIO m, IsAutomationSession o) => o -> m AutomationSession -- | Get the the previously set AutomationSession. -- -- Get the AutomationSession previously set with -- automationSessionSetApplicationInfo. -- -- Since: 2.18 automationSessionGetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m ApplicationInfo -- | Get the unique identifier of a AutomationSession -- -- Since: 2.18 automationSessionGetId :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m Text -- | Set the application information to session. -- -- This information will be used by the driver service to match the -- requested capabilities with the actual application information. If -- this information is not provided to the session when a new automation -- session is requested, the creation might fail if the client requested -- a specific browser name or version. This will not have any effect when -- called after the automation session has been fully created, so this -- must be called in the callback of WebContext::automationStarted -- signal. -- -- Since: 2.18 automationSessionSetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> ApplicationInfo -> m () -- | Construct a GValueConstruct with valid value for the -- “id” property. This is rarely needed directly, but it is used -- by new. constructAutomationSessionId :: (IsAutomationSession o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “id” property. When overloading -- is enabled, this is equivalent to -- --
-- get automationSession #id --getAutomationSessionId :: (MonadIO m, IsAutomationSession o) => o -> m Text -- | This signal is emitted when the automation client requests a new -- browsing context to interact with it. The callback handler should -- return a WebView created with -- WebView:isControlledByAutomation construct property enabled and -- WebView:automationPresentationType construct property set if -- needed. -- -- If the signal is emitted with "tab" detail, the returned -- WebView should be a new web view added to a new tab of the -- current browsing context window. If the signal is emitted with -- "window" detail, the returned WebView should be a new web view -- added to a new window. When creating a new web view and there's an -- active browsing context, the new window or tab shouldn't be focused. -- -- Since: 2.18 type AutomationSessionCreateWebViewCallback = -- | __Returns:__ a t'GI.WebKit.Objects.WebView.WebView' widget. IO WebView -- | Connect a signal handler for the createWebView signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after automationSession #createWebView callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “create-web-view::detail” instead. -- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => AutomationSessionCreateWebViewCallback) -> m SignalHandlerId -- | Connect a signal handler for the createWebView signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on automationSession #createWebView callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “create-web-view::detail” instead. onAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => AutomationSessionCreateWebViewCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.AutomationSession.AutomationSession instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.AutomationSession.AutomationSession o) => GI.WebKit.Objects.AutomationSession.IsAutomationSession o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.AutomationSession.AutomationSession instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.AutomationSession.AutomationSession instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.AutomationSession.AutomationSession instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.AutomationSession.AutomationSession instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.AutomationSession.AutomationSession) -- | Groups information used for user authentication. -- -- Since: 2.2 module GI.WebKit.Structs.Credential -- | Memory-managed wrapper type. newtype Credential Credential :: ManagedPtr Credential -> Credential -- | Make a copy of the Credential. -- -- Since: 2.2 credentialCopy :: (HasCallStack, MonadIO m) => Credential -> m Credential -- | Free the Credential. -- -- Since: 2.2 credentialFree :: (HasCallStack, MonadIO m) => Credential -> m () -- | Get the certificate currently held by this Credential. -- -- Since: 2.34 credentialGetCertificate :: (HasCallStack, MonadIO m) => Credential -> m TlsCertificate -- | Get the password currently held by this Credential. -- -- Since: 2.2 credentialGetPassword :: (HasCallStack, MonadIO m) => Credential -> m Text -- | Get the persistence mode currently held by this Credential. -- -- Since: 2.2 credentialGetPersistence :: (HasCallStack, MonadIO m) => Credential -> m CredentialPersistence -- | Get the username currently held by this Credential. -- -- Since: 2.2 credentialGetUsername :: (HasCallStack, MonadIO m) => Credential -> m Text -- | Determine whether this credential has a password stored. -- -- Since: 2.2 credentialHasPassword :: (HasCallStack, MonadIO m) => Credential -> m Bool -- | Create a new credential from the provided username, password and -- persistence mode. -- -- Since: 2.2 credentialNew :: (HasCallStack, MonadIO m) => Text -> Text -> CredentialPersistence -> m Credential -- | Create a new credential from the certificate and -- persistence mode. -- -- Note that CredentialPersistencePermanent is not supported for -- certificate credentials. -- -- Since: 2.34 credentialNewForCertificate :: (HasCallStack, MonadIO m, IsTlsCertificate a) => Maybe a -> CredentialPersistence -> m Credential -- | Create a new credential from the provided PIN and persistence mode. -- -- Note that CredentialPersistencePermanent is not supported for -- certificate pin credentials. -- -- Since: 2.34 credentialNewForCertificatePin :: (HasCallStack, MonadIO m) => Text -> CredentialPersistence -> m Credential instance GHC.Classes.Eq GI.WebKit.Structs.Credential.Credential instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.Credential.Credential instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.Credential.Credential instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.Credential.Credential instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.Credential.Credential instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.Credential.Credential) -- | An opaque struct to provide position updates to a -- GeolocationManager. -- -- WebKitGeolocationPosition is an opaque struct used to provide position -- updates to a GeolocationManager using -- geolocationManagerUpdatePosition. -- -- Since: 2.26 module GI.WebKit.Structs.GeolocationPosition -- | Memory-managed wrapper type. newtype GeolocationPosition GeolocationPosition :: ManagedPtr GeolocationPosition -> GeolocationPosition -- | Make a copy of the GeolocationPosition. -- -- Since: 2.26 geolocationPositionCopy :: (HasCallStack, MonadIO m) => GeolocationPosition -> m GeolocationPosition -- | Free the GeolocationPosition -- -- Since: 2.26 geolocationPositionFree :: (HasCallStack, MonadIO m) => GeolocationPosition -> m () -- | Create a new GeolocationPosition. -- -- Since: 2.26 geolocationPositionNew :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m GeolocationPosition -- | Set the position altitude. -- -- Since: 2.26 geolocationPositionSetAltitude :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m () -- | Set the accuracy of position altitude. -- -- Since: 2.26 geolocationPositionSetAltitudeAccuracy :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m () -- | Set the position heading. -- -- Set the position heading, as a positive angle between -- the direction of movement and the North direction, in clockwise -- direction. -- -- Since: 2.26 geolocationPositionSetHeading :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m () -- | Set the position speed. -- -- Since: 2.26 geolocationPositionSetSpeed :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m () -- | Set the position timestamp. -- -- By default it's the time when the position was -- created. -- -- Since: 2.26 geolocationPositionSetTimestamp :: (HasCallStack, MonadIO m) => GeolocationPosition -> Word64 -> m () instance GHC.Classes.Eq GI.WebKit.Structs.GeolocationPosition.GeolocationPosition instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.GeolocationPosition.GeolocationPosition instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.GeolocationPosition.GeolocationPosition instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.GeolocationPosition.GeolocationPosition instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.GeolocationPosition.GeolocationPosition instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.GeolocationPosition.GeolocationPosition) -- | Geolocation manager. -- -- WebKitGeolocationManager provides API to get the geographical position -- of the user. Once a GeolocationPermissionRequest is allowed, -- when WebKit needs to know the user location -- GeolocationManager::start signal is emitted. If the signal is -- handled and returns True, the application is responsible for -- providing the position every time it's updated by calling -- geolocationManagerUpdatePosition. The signal -- GeolocationManager::stop will be emitted when location updates -- are no longer needed. -- -- Since: 2.26 module GI.WebKit.Objects.GeolocationManager -- | Memory-managed wrapper type. newtype GeolocationManager GeolocationManager :: ManagedPtr GeolocationManager -> GeolocationManager -- | Type class for types which can be safely cast to -- GeolocationManager, for instance with -- toGeolocationManager. class (GObject o, IsDescendantOf GeolocationManager o) => IsGeolocationManager o -- | Cast to GeolocationManager, for types for which this is known -- to be safe. For general casts, use castTo. toGeolocationManager :: (MonadIO m, IsGeolocationManager o) => o -> m GeolocationManager -- | Notify manager that determining the position failed. -- -- Since: 2.26 geolocationManagerFailed :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> Text -> m () -- | Get whether high accuracy is enabled. -- -- Since: 2.26 geolocationManagerGetEnableHighAccuracy :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> m Bool -- | Notify manager that position has been updated to -- position. -- -- Since: 2.26 geolocationManagerUpdatePosition :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> GeolocationPosition -> m () -- | Get the value of the “enable-high-accuracy” property. When -- overloading is enabled, this is equivalent to -- --
-- get geolocationManager #enableHighAccuracy --getGeolocationManagerEnableHighAccuracy :: (MonadIO m, IsGeolocationManager o) => o -> m Bool -- | The signal is emitted to notify that manager needs to -- start receiving position updates. After this signal is emitted the -- user should provide the updates using -- geolocationManagerUpdatePosition every time the position -- changes, or use geolocationManagerFailed in case it isn't -- possible to determine the current position. -- -- If the signal is not handled, WebKit will try to determine the -- position using GeoClue if available. -- -- Since: 2.26 type GeolocationManagerStartCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the start signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after geolocationManager #start callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStartCallback) -> m SignalHandlerId -- | Connect a signal handler for the start signal, to be run before -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- on geolocationManager #start callback --onGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStartCallback) -> m SignalHandlerId -- | The signal is emitted to notify that manager doesn't -- need to receive position updates anymore. -- -- Since: 2.26 type GeolocationManagerStopCallback = IO () -- | Connect a signal handler for the stop signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after geolocationManager #stop callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStopCallback) -> m SignalHandlerId -- | Connect a signal handler for the stop signal, to be run before -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- on geolocationManager #stop callback --onGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStopCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.GeolocationManager.GeolocationManager instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.GeolocationManager.GeolocationManager o) => GI.WebKit.Objects.GeolocationManager.IsGeolocationManager o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.GeolocationManager.GeolocationManager instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.GeolocationManager.GeolocationManager instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.GeolocationManager.GeolocationManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.GeolocationManager.GeolocationManager instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.GeolocationManager.GeolocationManager) -- | Describes a first party origin. -- -- Since: 2.30 module GI.WebKit.Structs.ITPFirstParty -- | Memory-managed wrapper type. newtype ITPFirstParty ITPFirstParty :: ManagedPtr ITPFirstParty -> ITPFirstParty -- | Get the domain name of itpFirstParty. -- -- Since: 2.30 iTPFirstPartyGetDomain :: (HasCallStack, MonadIO m) => ITPFirstParty -> m Text -- | Get the last time a ITPThirdParty has been seen under -- itpFirstParty. -- -- Each webKitITPFirstParty is created by -- iTPThirdPartyGetFirstParties and therefore corresponds to -- exactly one ITPThirdParty. -- -- Since: 2.30 iTPFirstPartyGetLastUpdateTime :: (HasCallStack, MonadIO m) => ITPFirstParty -> m DateTime -- | Get whether itpFirstParty has granted website data -- access to its ITPThirdParty. -- -- Each webKitITPFirstParty is created by -- iTPThirdPartyGetFirstParties and therefore corresponds to -- exactly one ITPThirdParty. -- -- Since: 2.30 iTPFirstPartyGetWebsiteDataAccessAllowed :: (HasCallStack, MonadIO m) => ITPFirstParty -> m Bool -- | Atomically increments the reference count of -- itpFirstParty by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.30 iTPFirstPartyRef :: (HasCallStack, MonadIO m) => ITPFirstParty -> m ITPFirstParty -- | Atomically decrements the reference count of -- itpFirstParty by one. -- -- If the reference count drops to 0, all memory allocated by -- ITPFirstParty is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.30 iTPFirstPartyUnref :: (HasCallStack, MonadIO m) => ITPFirstParty -> m () instance GHC.Classes.Eq GI.WebKit.Structs.ITPFirstParty.ITPFirstParty instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.ITPFirstParty.ITPFirstParty instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.ITPFirstParty.ITPFirstParty instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.ITPFirstParty.ITPFirstParty instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.ITPFirstParty.ITPFirstParty instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.ITPFirstParty.ITPFirstParty) -- | Describes a third party origin. -- -- Since: 2.30 module GI.WebKit.Structs.ITPThirdParty -- | Memory-managed wrapper type. newtype ITPThirdParty ITPThirdParty :: ManagedPtr ITPThirdParty -> ITPThirdParty -- | Get the domain name of itpThirdParty. -- -- Since: 2.30 iTPThirdPartyGetDomain :: (HasCallStack, MonadIO m) => ITPThirdParty -> m Text -- | Get the list of ITPFirstParty under which -- itpThirdParty has been seen. -- -- Since: 2.30 iTPThirdPartyGetFirstParties :: (HasCallStack, MonadIO m) => ITPThirdParty -> m [ITPFirstParty] -- | Atomically increments the reference count of -- itpThirdParty by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.30 iTPThirdPartyRef :: (HasCallStack, MonadIO m) => ITPThirdParty -> m ITPThirdParty -- | Atomically decrements the reference count of -- itpThirdParty by one. -- -- If the reference count drops to 0, all memory allocated by -- ITPThirdParty is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.30 iTPThirdPartyUnref :: (HasCallStack, MonadIO m) => ITPThirdParty -> m () instance GHC.Classes.Eq GI.WebKit.Structs.ITPThirdParty.ITPThirdParty instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.ITPThirdParty.ITPThirdParty instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.ITPThirdParty.ITPThirdParty instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.ITPThirdParty.ITPThirdParty instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.ITPThirdParty.ITPThirdParty instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.ITPThirdParty.ITPThirdParty) -- | Range of text in an preedit string to be shown underlined. -- -- Since: 2.28 module GI.WebKit.Structs.InputMethodUnderline -- | Memory-managed wrapper type. newtype InputMethodUnderline InputMethodUnderline :: ManagedPtr InputMethodUnderline -> InputMethodUnderline -- | Make a copy of the InputMethodUnderline. -- -- Since: 2.28 inputMethodUnderlineCopy :: (HasCallStack, MonadIO m) => InputMethodUnderline -> m InputMethodUnderline -- | Free the InputMethodUnderline. -- -- Since: 2.28 inputMethodUnderlineFree :: (HasCallStack, MonadIO m) => InputMethodUnderline -> m () -- | Create a new InputMethodUnderline for the given range in -- preedit string -- -- Since: 2.28 inputMethodUnderlineNew :: (HasCallStack, MonadIO m) => Word32 -> Word32 -> m InputMethodUnderline -- | Set the color of the underline. -- -- If rgba is Nothing the foreground text color -- will be used for the underline too. -- -- Since: 2.28 inputMethodUnderlineSetColor :: (HasCallStack, MonadIO m) => InputMethodUnderline -> Maybe RGBA -> m () instance GHC.Classes.Eq GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.InputMethodUnderline.InputMethodUnderline) -- | Base class for input method contexts. -- -- WebKitInputMethodContext defines the interface to implement WebKit -- input methods. The input methods are used by WebKit, when editable -- content is focused, to map from key events to Unicode character -- strings. -- -- An input method may consume multiple key events in sequence and -- finally output the composed result. This is called preediting, and an -- input method may provide feedback about this process by displaying the -- intermediate composition states as preedit text. -- -- Since: 2.28 module GI.WebKit.Objects.InputMethodContext -- | Memory-managed wrapper type. newtype InputMethodContext InputMethodContext :: ManagedPtr InputMethodContext -> InputMethodContext -- | Type class for types which can be safely cast to -- InputMethodContext, for instance with -- toInputMethodContext. class (GObject o, IsDescendantOf InputMethodContext o) => IsInputMethodContext o -- | Cast to InputMethodContext, for types for which this is known -- to be safe. For general casts, use castTo. toInputMethodContext :: (MonadIO m, IsInputMethodContext o) => o -> m InputMethodContext -- | Allow keyEvent to be handled by the input method. -- -- If True is returned, then no further processing should be done -- for the key event. -- -- Since: 2.28 inputMethodContextFilterKeyEvent :: (HasCallStack, MonadIO m, IsInputMethodContext a, IsEvent b) => a -> b -> m Bool -- | Get the value of the InputMethodContext:inputHints property. -- -- Since: 2.28 inputMethodContextGetInputHints :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m [InputHints] -- | Get the value of the InputMethodContext:inputPurpose property. -- -- Since: 2.28 inputMethodContextGetInputPurpose :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m InputPurpose -- | Get the pre-edit string and a list of WebKitInputMethodUnderline. -- -- Get the current pre-edit string for the context, and a -- list of WebKitInputMethodUnderline to apply to the string. The string -- will be displayed inserted at cursorOffset. -- -- Since: 2.28 inputMethodContextGetPreedit :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m (Maybe Text, [InputMethodUnderline], Word32) -- | Notify context that cursor area changed in input -- associated. -- -- Since: 2.28 inputMethodContextNotifyCursorArea :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m () -- | Notify context that input associated has gained focus. -- -- Since: 2.28 inputMethodContextNotifyFocusIn :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m () -- | Notify context that input associated has lost focus. -- -- Since: 2.28 inputMethodContextNotifyFocusOut :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m () -- | Notify context that the context surrounding the cursor -- has changed. -- -- If there's no selection selectionIndex is the same as -- cursorIndex. -- -- Since: 2.28 inputMethodContextNotifySurrounding :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Text -> Int32 -> Word32 -> Word32 -> m () -- | Reset the context. -- -- This will typically cause the input to clear the preedit state. -- -- Since: 2.28 inputMethodContextReset :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m () -- | Set whether context should enable preedit to display -- feedback. -- -- Since: 2.28 inputMethodContextSetEnablePreedit :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Bool -> m () -- | Set the value of the InputMethodContext:inputHints property. -- -- Since: 2.28 inputMethodContextSetInputHints :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> [InputHints] -> m () -- | Set the value of the InputMethodContext:inputPurpose property. -- -- Since: 2.28 inputMethodContextSetInputPurpose :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> InputPurpose -> m () -- | Construct a GValueConstruct with valid value for the -- “input-hints” property. This is rarely needed directly, but -- it is used by new. constructInputMethodContextInputHints :: (IsInputMethodContext o, MonadIO m) => [InputHints] -> m (GValueConstruct o) -- | Get the value of the “input-hints” property. When -- overloading is enabled, this is equivalent to -- --
-- get inputMethodContext #inputHints --getInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> m [InputHints] -- | Set the value of the “input-hints” property. When -- overloading is enabled, this is equivalent to -- --
-- set inputMethodContext [ #inputHints := value ] --setInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> [InputHints] -> m () -- | Construct a GValueConstruct with valid value for the -- “input-purpose” property. This is rarely needed directly, but -- it is used by new. constructInputMethodContextInputPurpose :: (IsInputMethodContext o, MonadIO m) => InputPurpose -> m (GValueConstruct o) -- | Get the value of the “input-purpose” property. When -- overloading is enabled, this is equivalent to -- --
-- get inputMethodContext #inputPurpose --getInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> m InputPurpose -- | Set the value of the “input-purpose” property. When -- overloading is enabled, this is equivalent to -- --
-- set inputMethodContext [ #inputPurpose := value ] --setInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> InputPurpose -> m () -- | Emitted when a complete input sequence has been entered by the user. -- This can be a single character immediately after a key press or the -- final result of preediting. -- -- Since: 2.28 type InputMethodContextCommittedCallback = -- | /@text@/: the string result Text -> IO () -- | Connect a signal handler for the committed signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after inputMethodContext #committed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextCommittedCallback) -> m SignalHandlerId -- | Connect a signal handler for the committed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on inputMethodContext #committed callback --onInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextCommittedCallback) -> m SignalHandlerId -- | Emitted when the input method wants to delete the context surrounding -- the cursor. If offset is a negative value, it means a -- position before the cursor. -- -- Since: 2.28 type InputMethodContextDeleteSurroundingCallback = -- | /@offset@/: the character offset from the cursor position of the text to be deleted. Int32 -> -- | /@nChars@/: the number of characters to be deleted Word32 -> IO () -- | Connect a signal handler for the deleteSurrounding signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after inputMethodContext #deleteSurrounding callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextDeleteSurroundingCallback) -> m SignalHandlerId -- | Connect a signal handler for the deleteSurrounding signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on inputMethodContext #deleteSurrounding callback --onInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextDeleteSurroundingCallback) -> m SignalHandlerId -- | Emitted whenever the preedit sequence currently being entered has -- changed. It is also emitted at the end of a preedit sequence, in which -- case inputMethodContextGetPreedit returns the empty string. -- -- Since: 2.28 type InputMethodContextPreeditChangedCallback = IO () -- | Connect a signal handler for the preeditChanged signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after inputMethodContext #preeditChanged callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the preeditChanged signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on inputMethodContext #preeditChanged callback --onInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditChangedCallback) -> m SignalHandlerId -- | Emitted when a preediting sequence has been completed or canceled. -- -- Since: 2.28 type InputMethodContextPreeditFinishedCallback = IO () -- | Connect a signal handler for the preeditFinished signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after inputMethodContext #preeditFinished callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditFinishedCallback) -> m SignalHandlerId -- | Connect a signal handler for the preeditFinished signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on inputMethodContext #preeditFinished callback --onInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditFinishedCallback) -> m SignalHandlerId -- | Emitted when a new preediting sequence starts. -- -- Since: 2.28 type InputMethodContextPreeditStartedCallback = IO () -- | Connect a signal handler for the preeditStarted signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after inputMethodContext #preeditStarted callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditStartedCallback) -> m SignalHandlerId -- | Connect a signal handler for the preeditStarted signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on inputMethodContext #preeditStarted callback --onInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> ((?self :: a) => InputMethodContextPreeditStartedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.InputMethodContext.InputMethodContext instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.InputMethodContext.InputMethodContext o) => GI.WebKit.Objects.InputMethodContext.IsInputMethodContext o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.InputMethodContext.InputMethodContext instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.InputMethodContext.InputMethodContext instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.InputMethodContext.InputMethodContext instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.InputMethodContext.InputMethodContext instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.InputMethodContext.InputMethodContext) -- | A boxed type representing the settings for the memory pressure handler -- -- MemoryPressureSettings is a boxed type that can be used to -- provide some custom settings to control how the memory pressure -- situations are handled by the different processes. -- -- The memory pressure system implemented inside the different process -- will try to keep the memory usage under the defined memory limit. In -- order to do that, it will check the used memory with a user defined -- frequency and decide whether it should try to release memory. The -- thresholds passed will define how urgent is to release that memory. -- -- Take into account that badly defined parameters can greatly reduce the -- performance of the engine. For example, setting memory limit too low -- with a fast poll interval can cause the process to constantly be -- trying to release memory. -- -- A MemoryPressureSettings can be passed to a WebContext -- constructor, and the settings will be applied to all the web processes -- created by that context. -- -- A MemoryPressureSettings can be passed to -- webkit_website_data_manager_set_memory_pressure_settings(), -- and the settings will be applied to all the network processes created -- after that call by any instance of WebsiteDataManager. -- -- Since: 2.34 module GI.WebKit.Structs.MemoryPressureSettings -- | Memory-managed wrapper type. newtype MemoryPressureSettings MemoryPressureSettings :: ManagedPtr MemoryPressureSettings -> MemoryPressureSettings -- | Make a copy of settings. -- -- Since: 2.34 memoryPressureSettingsCopy :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m MemoryPressureSettings -- | Free the MemoryPressureSettings. -- -- Since: 2.34 memoryPressureSettingsFree :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m () -- | Gets the conservative memory usage threshold. -- -- Since: 2.34 memoryPressureSettingsGetConservativeThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m Double -- | Gets the kill memory usage threshold. -- -- Since: 2.34 memoryPressureSettingsGetKillThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m Double -- | Gets the memory usage limit. -- -- Since: 2.34 memoryPressureSettingsGetMemoryLimit :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m Word32 -- | Gets the interval at which memory usage is checked. -- -- Since: 2.34 memoryPressureSettingsGetPollInterval :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m Double -- | Gets the strict memory usage threshold. -- -- Since: 2.34 memoryPressureSettingsGetStrictThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m Double -- | Create a new MemoryPressureSettings with the default values. -- -- Since: 2.34 memoryPressureSettingsNew :: (HasCallStack, MonadIO m) => m MemoryPressureSettings -- | Sets the memory limit for the conservative policy to start working. -- -- Sets value as the fraction of the defined memory limit -- where the conservative policy starts working. This policy will try to -- reduce the memory footprint by releasing non critical memory. -- -- The threshold must be bigger than 0 and smaller than 1, and it must be -- smaller than the strict threshold defined in settings. -- The default value is 0.33. -- -- Since: 2.34 memoryPressureSettingsSetConservativeThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> Double -> m () -- | Sets value as the fraction of the defined memory limit -- where the process will be killed. -- -- The threshold must be a value bigger or equal to 0. A value of 0 means -- that the process is never killed. If the threshold is not 0, then it -- must be bigger than the strict threshold defined in -- settings. The threshold can also have values bigger -- than 1. The default value is 0. -- -- Since: 2.34 memoryPressureSettingsSetKillThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> Double -> m () -- | Sets memoryLimit the memory limit value to -- settings. -- -- The default value is the system's RAM size with a maximum of 3GB. -- -- Since: 2.34 memoryPressureSettingsSetMemoryLimit :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> Word32 -> m () -- | Sets value as the poll interval used by -- settings. -- -- The poll interval value must be bigger than 0. The default value is 30 -- seconds. -- -- Since: 2.34 memoryPressureSettingsSetPollInterval :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> Double -> m () -- | Sets the memory limit for the strict policy to start working. -- -- Sets value as the fraction of the defined memory limit -- where the strict policy starts working. This policy will try to reduce -- the memory footprint by releasing critical memory. -- -- The threshold must be bigger than 0 and smaller than 1. Also, it must -- be bigger than the conservative threshold defined in -- settings, and smaller than the kill threshold if the -- latter is not 0. The default value is 0.5. -- -- Since: 2.34 memoryPressureSettingsSetStrictThreshold :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> Double -> m () instance GHC.Classes.Eq GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.MemoryPressureSettings.MemoryPressureSettings) -- | Provides details about interaction resulting in a resource load. module GI.WebKit.Structs.NavigationAction -- | Memory-managed wrapper type. newtype NavigationAction NavigationAction :: ManagedPtr NavigationAction -> NavigationAction -- | Make a copy of navigation. -- -- Since: 2.6 navigationActionCopy :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationAction -- | Free the NavigationAction -- -- Since: 2.6 navigationActionFree :: (HasCallStack, MonadIO m) => NavigationAction -> m () -- | Gets the navigation target frame name. For example if -- navigation was triggered by clicking a link with a target attribute -- equal to "_blank", this will return the value of that attribute. In -- all other cases this function will return Nothing. -- -- Since: 2.40 navigationActionGetFrameName :: (HasCallStack, MonadIO m) => NavigationAction -> m (Maybe Text) -- | Return the modifier keys. -- -- Return a bitmask of ModifierType values describing the modifier -- keys that were in effect when the navigation was requested -- -- Since: 2.6 navigationActionGetModifiers :: (HasCallStack, MonadIO m) => NavigationAction -> m Word32 -- | Return the number of the mouse button that triggered the navigation. -- -- Return the number of the mouse button that triggered the navigation, -- or 0 if the navigation was not started by a mouse event. -- -- Since: 2.6 navigationActionGetMouseButton :: (HasCallStack, MonadIO m) => NavigationAction -> m Word32 -- | Return the type of action that triggered the navigation. -- -- Since: 2.6 navigationActionGetNavigationType :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationType -- | Return the URIRequest associated with the navigation action. -- -- Modifications to the returned object are -- <emphasis>not</emphasis> taken into account when the -- request is sent over the network, and is intended only to aid in -- evaluating whether a navigation action should be taken or not. To -- modify requests before they are sent over the network the -- WebKitPage::send-request signal can be used instead. -- -- Since: 2.6 navigationActionGetRequest :: (HasCallStack, MonadIO m) => NavigationAction -> m URIRequest -- | Returns whether the navigation was redirected. -- -- Since: 2.20 navigationActionIsRedirect :: (HasCallStack, MonadIO m) => NavigationAction -> m Bool -- | Return whether the navigation was triggered by a user gesture like a -- mouse click. -- -- Since: 2.6 navigationActionIsUserGesture :: (HasCallStack, MonadIO m) => NavigationAction -> m Bool instance GHC.Classes.Eq GI.WebKit.Structs.NavigationAction.NavigationAction instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.NavigationAction.NavigationAction instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.NavigationAction.NavigationAction instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.NavigationAction.NavigationAction instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.NavigationAction.NavigationAction instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.NavigationAction.NavigationAction) -- | A policy decision for navigation actions. -- -- WebKitNavigationPolicyDecision represents a policy decision for events -- associated with navigations. If the value of -- NavigationPolicyDecision:mouse-button is not 0, -- then the navigation was triggered by a mouse event. module GI.WebKit.Objects.NavigationPolicyDecision -- | Memory-managed wrapper type. newtype NavigationPolicyDecision NavigationPolicyDecision :: ManagedPtr NavigationPolicyDecision -> NavigationPolicyDecision -- | Type class for types which can be safely cast to -- NavigationPolicyDecision, for instance with -- toNavigationPolicyDecision. class (GObject o, IsDescendantOf NavigationPolicyDecision o) => IsNavigationPolicyDecision o -- | Cast to NavigationPolicyDecision, for types for which this is -- known to be safe. For general casts, use castTo. toNavigationPolicyDecision :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationPolicyDecision -- | Gets the value of the NavigationPolicyDecision:navigationAction -- property. -- -- Since: 2.6 navigationPolicyDecisionGetNavigationAction :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m NavigationAction -- | Get the value of the “navigation-action” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #navigationAction --getNavigationPolicyDecisionNavigationAction :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationAction instance GHC.Classes.Eq GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision o) => GI.WebKit.Objects.NavigationPolicyDecision.IsNavigationPolicyDecision o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.NavigationPolicyDecision.NavigationPolicyDecision) -- | Configures network proxies. -- -- WebKitNetworkProxySettings can be used to provide a custom proxy -- configuration to a WebContext. You need to call -- webkit_web_context_set_network_proxy_settings() with -- NetworkProxyModeCustom and a WebKitNetworkProxySettings. -- -- Since: 2.16 module GI.WebKit.Structs.NetworkProxySettings -- | Memory-managed wrapper type. newtype NetworkProxySettings NetworkProxySettings :: ManagedPtr NetworkProxySettings -> NetworkProxySettings -- | Adds a URI-scheme-specific proxy. -- -- URIs whose scheme matches uriScheme will be proxied -- via proxyUri. As with the default proxy URI, if -- proxyUri starts with "socks://", it will be treated as -- referring to all three of the socks5, socks4a, and socks4 proxy types. -- -- Since: 2.16 networkProxySettingsAddProxyForScheme :: (HasCallStack, MonadIO m) => NetworkProxySettings -> Text -> Text -> m () -- | Make a copy of the NetworkProxySettings. -- -- Since: 2.16 networkProxySettingsCopy :: (HasCallStack, MonadIO m) => NetworkProxySettings -> m NetworkProxySettings -- | Free the NetworkProxySettings. -- -- Since: 2.16 networkProxySettingsFree :: (HasCallStack, MonadIO m) => NetworkProxySettings -> m () -- | Create a new NetworkProxySettings with the given -- defaultProxyUri and ignoreHosts. -- -- The default proxy URI will be used for any URI that doesn't match -- ignoreHosts, and doesn't match any of the schemes -- added with networkProxySettingsAddProxyForScheme. If -- defaultProxyUri starts with "socks://", it will be -- treated as referring to all three of the socks5, socks4a, and socks4 -- proxy types. -- -- ignoreHosts is a list of hostnames and IP addresses -- that the resolver should allow direct connections to. Entries can be -- in one of 4 formats: <itemizedlist> <listitem><para> -- A hostname, such as "example.com", ".example.com", or "*.example.com", -- any of which match "example.com" or any subdomain of it. -- </para></listitem> <listitem><para> An IPv4 or -- IPv6 address, such as "192.168.1.1", which matches only that address. -- </para></listitem> <listitem><para> A hostname -- or IP address followed by a port, such as "example.com:80", which -- matches whatever the hostname or IP address would match, but only for -- URLs with the (explicitly) indicated port. In the case of an IPv6 -- address, the address part must appear in brackets: "[1]:443" -- </para></listitem> <listitem><para> An IP -- address range, given by a base address and prefix length, such as -- "fe80::/10", which matches any address in that range. -- </para></listitem> </itemizedlist> -- -- Note that when dealing with Unicode hostnames, the matching is done -- against the ASCII form of the name. Also note that hostname exclusions -- apply only to connections made to hosts identified by name, and IP -- address exclusions apply only to connections made to hosts identified -- by address. That is, if example.com has an address of 192.168.1.1, and -- ignoreHosts contains only "192.168.1.1", then a -- connection to "example.com" will use the proxy, and a connection to -- 192.168.1.1" will not. -- -- Since: 2.16 networkProxySettingsNew :: (HasCallStack, MonadIO m) => Maybe Text -> Maybe [Text] -> m NetworkProxySettings instance GHC.Classes.Eq GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.NetworkProxySettings.NetworkProxySettings) -- | Manages network configuration. -- -- Since: 2.40 module GI.WebKit.Objects.NetworkSession -- | Memory-managed wrapper type. newtype NetworkSession NetworkSession :: ManagedPtr NetworkSession -> NetworkSession -- | Type class for types which can be safely cast to -- NetworkSession, for instance with toNetworkSession. class (GObject o, IsDescendantOf NetworkSession o) => IsNetworkSession o -- | Cast to NetworkSession, for types for which this is known to be -- safe. For general casts, use castTo. toNetworkSession :: (MonadIO m, IsNetworkSession o) => o -> m NetworkSession -- | Ignore further TLS errors on the host for the -- certificate present in info. -- -- Since: 2.40 networkSessionAllowTlsCertificateForHost :: (HasCallStack, MonadIO m, IsNetworkSession a, IsTlsCertificate b) => a -> b -> Text -> m () -- | Requests downloading of the specified URI string. -- -- The download operation will not be associated to any WebView, -- if you are interested in starting a download from a particular -- WebView use webViewDownloadUri instead. -- -- Since: 2.40 networkSessionDownloadUri :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> Text -> m Download -- | Get the CookieManager of session. -- -- Since: 2.40 networkSessionGetCookieManager :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m CookieManager -- | Get the default network session. The default network session is -- created using networkSessionNew and passing Nothing as -- data and cache directories. -- -- Since: 2.40 networkSessionGetDefault :: (HasCallStack, MonadIO m) => m NetworkSession -- | Get whether Intelligent Tracking Prevention (ITP) is enabled or not. -- -- Since: 2.40 networkSessionGetItpEnabled :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m Bool -- | Asynchronously get the list of ITPThirdParty seen for -- session. -- -- Every ITPThirdParty contains the list of ITPFirstParty -- under which it has been seen. -- -- When the operation is finished, callback will be -- called. You can then call networkSessionGetItpSummaryFinish to -- get the result of the operation. -- -- Since: 2.40 networkSessionGetItpSummary :: (HasCallStack, MonadIO m, IsNetworkSession a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- networkSessionGetItpSummary. -- -- Since: 2.40 networkSessionGetItpSummaryFinish :: (HasCallStack, MonadIO m, IsNetworkSession a, IsAsyncResult b) => a -> b -> m [ITPThirdParty] -- | Get whether persistent credential storage is enabled or not. -- -- See also networkSessionSetPersistentCredentialStorageEnabled. -- -- Since: 2.40 networkSessionGetPersistentCredentialStorageEnabled :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m Bool -- | Get the TLS errors policy of session. -- -- Since: 2.40 networkSessionGetTlsErrorsPolicy :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m TLSErrorsPolicy -- | Get the WebsiteDataManager of session. -- -- Since: 2.40 networkSessionGetWebsiteDataManager :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m WebsiteDataManager -- | Get whether session is ephemeral. A -- NetworkSession is ephemeral when its WebsiteDataManager -- is ephemeral. See WebsiteDataManager:isEphemeral for more -- details. -- -- Since: 2.40 networkSessionIsEphemeral :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> m Bool -- | Creates a new NetworkSession with a persistent -- WebsiteDataManager. The parameters -- dataDirectory and cacheDirectory will -- be used as construct properties of the WebsiteDataManager of -- the network session. Note that if Nothing is passed, the -- default directory will be passed to WebsiteDataManager so that -- websiteDataManagerGetBaseDataDirectory and -- websiteDataManagerGetBaseCacheDirectory always return a value -- for non ephemeral sessions. -- -- It must be passed as construct parameter of a WebView. -- -- Since: 2.40 networkSessionNew :: (HasCallStack, MonadIO m) => Maybe Text -> Maybe Text -> m NetworkSession -- | Creates a new NetworkSession with an ephemeral -- WebsiteDataManager. -- -- Since: 2.40 networkSessionNewEphemeral :: (HasCallStack, MonadIO m) => m NetworkSession -- | Resolve the domain name of the given hostname in -- advance, so that if a URI of hostname is requested the -- load will be performed more quickly. -- -- Since: 2.40 networkSessionPrefetchDns :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> Text -> m () -- | Enable or disable Intelligent Tracking Prevention (ITP). -- -- When ITP is enabled resource load statistics are collected and used to -- decide whether to allow or block third-party cookies and prevent user -- tracking. Note that while ITP is enabled the accept policy -- CookieAcceptPolicyNoThirdParty is ignored and -- CookieAcceptPolicyAlways is used instead. See also -- webkit_cookie_session_set_accept_policy(). -- -- Since: 2.40 networkSessionSetItpEnabled :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> Bool -> m () -- | Sets settings as the MemoryPressureSettings. -- -- Sets settings as the MemoryPressureSettings to -- be used by the network process created by any instance of -- NetworkSession after this function is called. -- -- Be sure to call this function before creating any -- NetworkSession. -- -- The periodic check for used memory is disabled by default on network -- processes. This will be enabled only if custom settings have been set -- using this function. After that, in order to remove the custom -- settings and disable the periodic check, this function must be called -- passing Nothing as the value of settings. -- -- Since: 2.40 networkSessionSetMemoryPressureSettings :: (HasCallStack, MonadIO m) => MemoryPressureSettings -> m () -- | Enable or disable persistent credential storage. -- -- When enabled, which is the default for non-ephemeral sessions, the -- network process will try to read and write HTTP authentiacation -- credentials from persistent storage. -- -- Since: 2.40 networkSessionSetPersistentCredentialStorageEnabled :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> Bool -> m () -- | Set the network proxy settings to be used by connections started in -- session session. -- -- By default NetworkProxyModeDefault is used, which means that -- the system settings will be used (proxyResolverGetDefault). If -- you want to override the system default settings, you can either use -- NetworkProxyModeNoProxy to make sure no proxies are used at -- all, or NetworkProxyModeCustom to provide your own proxy -- settings. When proxyMode is -- NetworkProxyModeCustom proxySettings must be a -- valid NetworkProxySettings; otherwise, -- proxySettings must be Nothing. -- -- Since: 2.40 networkSessionSetProxySettings :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> NetworkProxyMode -> Maybe NetworkProxySettings -> m () -- | Set the TLS errors policy of session as -- policy. -- -- Since: 2.40 networkSessionSetTlsErrorsPolicy :: (HasCallStack, MonadIO m, IsNetworkSession a) => a -> TLSErrorsPolicy -> m () -- | Construct a GValueConstruct with valid value for the -- “cache-directory” property. This is rarely needed directly, -- but it is used by new. constructNetworkSessionCacheDirectory :: (IsNetworkSession o, MonadIO m) => Text -> m (GValueConstruct o) -- | Construct a GValueConstruct with valid value for the -- “data-directory” property. This is rarely needed directly, -- but it is used by new. constructNetworkSessionDataDirectory :: (IsNetworkSession o, MonadIO m) => Text -> m (GValueConstruct o) -- | Construct a GValueConstruct with valid value for the -- “is-ephemeral” property. This is rarely needed directly, but -- it is used by new. constructNetworkSessionIsEphemeral :: (IsNetworkSession o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “is-ephemeral” property. When -- overloading is enabled, this is equivalent to -- --
-- get networkSession #isEphemeral --getNetworkSessionIsEphemeral :: (MonadIO m, IsNetworkSession o) => o -> m Bool -- | This signal is emitted when a new download request is made. -- -- Since: 2.40 type NetworkSessionDownloadStartedCallback = -- | /@download@/: the t'GI.WebKit.Objects.Download.Download' associated with this event Download -> IO () -- | Connect a signal handler for the downloadStarted signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after networkSession #downloadStarted callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterNetworkSessionDownloadStarted :: (IsNetworkSession a, MonadIO m) => a -> ((?self :: a) => NetworkSessionDownloadStartedCallback) -> m SignalHandlerId -- | Connect a signal handler for the downloadStarted signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on networkSession #downloadStarted callback --onNetworkSessionDownloadStarted :: (IsNetworkSession a, MonadIO m) => a -> ((?self :: a) => NetworkSessionDownloadStartedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.NetworkSession.NetworkSession instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.NetworkSession.NetworkSession o) => GI.WebKit.Objects.NetworkSession.IsNetworkSession o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.NetworkSession.NetworkSession instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.NetworkSession.NetworkSession instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.NetworkSession.NetworkSession instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.NetworkSession.NetworkSession instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.NetworkSession.NetworkSession) -- | One item of a OptionMenu. -- -- The OptionMenu is composed of WebKitOptionMenuItems. A -- WebKitOptionMenuItem always has a label and can contain a tooltip -- text. You can use the WebKitOptionMenuItem of a OptionMenu to -- build your own menus. -- -- Since: 2.18 module GI.WebKit.Structs.OptionMenuItem -- | Memory-managed wrapper type. newtype OptionMenuItem OptionMenuItem :: ManagedPtr OptionMenuItem -> OptionMenuItem -- | Make a copy of the OptionMenuItem. -- -- Since: 2.18 optionMenuItemCopy :: (HasCallStack, MonadIO m) => OptionMenuItem -> m OptionMenuItem -- | Free the OptionMenuItem. -- -- Since: 2.18 optionMenuItemFree :: (HasCallStack, MonadIO m) => OptionMenuItem -> m () -- | Get the label of a OptionMenuItem. -- -- Since: 2.18 optionMenuItemGetLabel :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Text -- | Get the tooltip of a OptionMenuItem. -- -- Since: 2.18 optionMenuItemGetTooltip :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Text -- | Whether a OptionMenuItem is enabled. -- -- Since: 2.18 optionMenuItemIsEnabled :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is a group child. -- -- Since: 2.18 optionMenuItemIsGroupChild :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is a group label. -- -- Since: 2.18 optionMenuItemIsGroupLabel :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is the currently selected one. -- -- Since: 2.18 optionMenuItemIsSelected :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool instance GHC.Classes.Eq GI.WebKit.Structs.OptionMenuItem.OptionMenuItem instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.OptionMenuItem.OptionMenuItem instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.OptionMenuItem.OptionMenuItem instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.OptionMenuItem.OptionMenuItem instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.OptionMenuItem.OptionMenuItem instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.OptionMenuItem.OptionMenuItem) -- | Represents the dropdown menu of a select element in a -- WebView. -- -- When a select element in a WebView needs to display a dropdown -- menu, the signal WebView::showOptionMenu is emitted, providing -- a WebKitOptionMenu with the OptionMenuItems that should be -- displayed. -- -- Since: 2.18 module GI.WebKit.Objects.OptionMenu -- | Memory-managed wrapper type. newtype OptionMenu OptionMenu :: ManagedPtr OptionMenu -> OptionMenu -- | Type class for types which can be safely cast to OptionMenu, -- for instance with toOptionMenu. class (GObject o, IsDescendantOf OptionMenu o) => IsOptionMenu o -- | Cast to OptionMenu, for types for which this is known to be -- safe. For general casts, use castTo. toOptionMenu :: (MonadIO m, IsOptionMenu o) => o -> m OptionMenu -- | Activates the OptionMenuItem at index in -- menu. -- -- Activating an item changes the value of the element making the item -- the active one. You are expected to close the menu with -- optionMenuClose after activating an item, calling this function -- again will have no effect. -- -- Since: 2.18 optionMenuActivateItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m () -- | Request to close a OptionMenu. -- -- This emits WebKitOptionMenuclose signal. This function should -- always be called to notify WebKit that the associated menu has been -- closed. If the menu is closed and neither optionMenuSelectItem -- nor optionMenuActivateItem have been called, the element value -- remains unchanged. -- -- Since: 2.18 optionMenuClose :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> m () -- | Gets the Event that triggered the dropdown menu. If -- menu was not triggered by a user interaction, like a -- mouse click, Nothing is returned. -- -- Since: 2.40 optionMenuGetEvent :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> m Event -- | Returns the OptionMenuItem at index in -- menu. -- -- Since: 2.18 optionMenuGetItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m OptionMenuItem -- | Gets the length of the menu. -- -- Since: 2.18 optionMenuGetNItems :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> m Word32 -- | Selects the OptionMenuItem at index in -- menu. -- -- Selecting an item changes the text shown by the combo button, but it -- doesn't change the value of the element. You need to explicitly -- activate the item with optionMenuSelectItem or close the menu -- with optionMenuClose in which case the currently selected item -- will be activated. -- -- Since: 2.18 optionMenuSelectItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m () -- | Emitted when closing a OptionMenu is requested. This can happen -- when the user explicitly calls optionMenuClose or when the -- element is detached from the current page. -- -- Since: 2.18 type OptionMenuCloseCallback = IO () -- | Connect a signal handler for the close signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after optionMenu #close callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterOptionMenuClose :: (IsOptionMenu a, MonadIO m) => a -> ((?self :: a) => OptionMenuCloseCallback) -> m SignalHandlerId -- | Connect a signal handler for the close signal, to be run before -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- on optionMenu #close callback --onOptionMenuClose :: (IsOptionMenu a, MonadIO m) => a -> ((?self :: a) => OptionMenuCloseCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.OptionMenu.OptionMenu instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.OptionMenu.OptionMenu o) => GI.WebKit.Objects.OptionMenu.IsOptionMenu o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.OptionMenu.OptionMenu instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.OptionMenu.OptionMenu instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.OptionMenu.OptionMenu instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.OptionMenu.OptionMenu instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.OptionMenu.OptionMenu) -- | Carries details to be shown in user-facing dialogs. module GI.WebKit.Structs.ScriptDialog -- | Memory-managed wrapper type. newtype ScriptDialog ScriptDialog :: ManagedPtr ScriptDialog -> ScriptDialog -- | Close dialog. -- -- When handling a ScriptDialog asynchronously -- (scriptDialogRef was called in WebView::scriptDialog -- callback), this function needs to be called to notify that we are done -- with the script dialog. The dialog will be closed on destruction if -- this function hasn't been called before. -- -- Since: 2.24 scriptDialogClose :: (HasCallStack, MonadIO m) => ScriptDialog -> m () -- | Set whether the user confirmed the dialog. -- -- This method is used for ScriptDialogTypeConfirm and -- ScriptDialogTypeBeforeUnloadConfirm dialogs when -- WebView::scriptDialog signal is emitted to set whether the user -- confirmed the dialog or not. The default implementation of -- WebView::scriptDialog signal sets True when the OK or -- Stay buttons are clicked and False otherwise. It's an error to -- use this method with a ScriptDialog that is not of type -- ScriptDialogTypeConfirm or -- ScriptDialogTypeBeforeUnloadConfirm scriptDialogConfirmSetConfirmed :: (HasCallStack, MonadIO m) => ScriptDialog -> Bool -> m () -- | Get the dialog type of a ScriptDialog. scriptDialogGetDialogType :: (HasCallStack, MonadIO m) => ScriptDialog -> m ScriptDialogType -- | Get the message of a ScriptDialog. scriptDialogGetMessage :: (HasCallStack, MonadIO m) => ScriptDialog -> m Text -- | Get the default text of a ScriptDialog of type -- ScriptDialogTypePrompt. -- -- It's an error to use this method with a ScriptDialog that is -- not of type ScriptDialogTypePrompt. scriptDialogPromptGetDefaultText :: (HasCallStack, MonadIO m) => ScriptDialog -> m Text -- | Set the text entered by the user in the dialog. -- -- This method is used for ScriptDialogTypePrompt dialogs when -- WebView::scriptDialog signal is emitted to set the text entered -- by the user. The default implementation of -- WebView::scriptDialog signal sets the text of the entry form -- when OK button is clicked, otherwise Nothing is set. It's an -- error to use this method with a ScriptDialog that is not of -- type ScriptDialogTypePrompt. scriptDialogPromptSetText :: (HasCallStack, MonadIO m) => ScriptDialog -> Text -> m () -- | Atomically increments the reference count of dialog by -- one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.24 scriptDialogRef :: (HasCallStack, MonadIO m) => ScriptDialog -> m ScriptDialog -- | Atomically decrements the reference count of dialog by -- one. -- -- If the reference count drops to 0, all memory allocated by the -- WebKitScriptdialog is released. This function is -- MT-safe and may be called from any thread. -- -- Since: 2.24 scriptDialogUnref :: (HasCallStack, MonadIO m) => ScriptDialog -> m () instance GHC.Classes.Eq GI.WebKit.Structs.ScriptDialog.ScriptDialog instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.ScriptDialog.ScriptDialog instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.ScriptDialog.ScriptDialog instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.ScriptDialog.ScriptDialog instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.ScriptDialog.ScriptDialog instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.ScriptDialog.ScriptDialog) -- | A reply for a script message received. If no reply has been sent by -- the user, an automatically generated reply with undefined value with -- be sent. -- -- Since: 2.40 module GI.WebKit.Structs.ScriptMessageReply -- | Memory-managed wrapper type. newtype ScriptMessageReply ScriptMessageReply :: ManagedPtr ScriptMessageReply -> ScriptMessageReply -- | Atomically increments the reference count of -- scriptMessageReply by one. -- -- Since: 2.40 scriptMessageReplyRef :: (HasCallStack, MonadIO m) => ScriptMessageReply -> m ScriptMessageReply -- | Reply to a script message with an error message. -- -- Since: 2.40 scriptMessageReplyReturnErrorMessage :: (HasCallStack, MonadIO m) => ScriptMessageReply -> Text -> m () -- | Reply to a script message with a value. -- -- This function can be called twice for passing the reply value in. -- -- Since: 2.40 scriptMessageReplyReturnValue :: (HasCallStack, MonadIO m, IsValue a) => ScriptMessageReply -> a -> m () -- | Atomically decrements the reference count of -- scriptMessageReply by one. -- -- If the reference count drops to 0, all the memory allocated by the -- ScriptMessageReply is released. This function is MT-safe and -- may be called from any thread. -- -- Since: 2.40 scriptMessageReplyUnref :: (HasCallStack, MonadIO m) => ScriptMessageReply -> m () instance GHC.Classes.Eq GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply) -- | A security boundary for websites. -- -- SecurityOrigin is a representation of a security domain defined -- by websites. A security origin consists of a protocol, a hostname, and -- an optional port number. -- -- Resources with the same security origin can generally access each -- other for client-side scripting or database access. When comparing -- origins, beware that if both protocol and host are Nothing, the -- origins should not be treated as equal. -- -- Since: 2.16 module GI.WebKit.Structs.SecurityOrigin -- | Memory-managed wrapper type. newtype SecurityOrigin SecurityOrigin :: ManagedPtr SecurityOrigin -> SecurityOrigin -- | Gets the hostname of origin. -- -- It is reasonable for this to be Nothing if its protocol does -- not require a host component. -- -- Since: 2.16 securityOriginGetHost :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text) -- | Gets the port of origin. -- -- This function will always return 0 if the port is the default port for -- the given protocol. For example, http://example.com has the same -- security origin as http://example.com:80, and this function will -- return 0 for a SecurityOrigin constructed from either URI. -- -- Since: 2.16 securityOriginGetPort :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Word16 -- | Gets the protocol of origin. -- -- Since: 2.16 securityOriginGetProtocol :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text) -- | Create a new security origin from the provided protocol, host and -- port. -- -- Since: 2.16 securityOriginNew :: (HasCallStack, MonadIO m) => Text -> Text -> Word16 -> m SecurityOrigin -- | Create a new security origin from the provided. -- -- Create a new security origin from the provided URI. Components of -- uri other than protocol, host, and port do not affect -- the created SecurityOrigin. -- -- Since: 2.16 securityOriginNewForUri :: (HasCallStack, MonadIO m) => Text -> m SecurityOrigin -- | Atomically increments the reference count of origin by -- one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.16 securityOriginRef :: (HasCallStack, MonadIO m) => SecurityOrigin -> m SecurityOrigin -- | Gets a string representation of origin. -- -- The string representation is a valid URI with only protocol, host, and -- port components, or Nothing. -- -- Since: 2.16 securityOriginToString :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text) -- | Atomically decrements the reference count of origin by -- one. -- -- If the reference count drops to 0, all memory allocated by -- SecurityOrigin is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.16 securityOriginUnref :: (HasCallStack, MonadIO m) => SecurityOrigin -> m () instance GHC.Classes.Eq GI.WebKit.Structs.SecurityOrigin.SecurityOrigin instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.SecurityOrigin.SecurityOrigin instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.SecurityOrigin.SecurityOrigin instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.SecurityOrigin.SecurityOrigin instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.SecurityOrigin.SecurityOrigin instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.SecurityOrigin.SecurityOrigin) -- | This query represents a user's choice to allow or deny access to -- "powerful features" of the platform, as specified in the -- <https://w3c.github.io/permissions/ Permissions W3C -- Specification>. -- -- When signalled by the WebView through the -- query-permission-state signal, the application has to -- eventually respond, via -- webkit_permission_state_query_finish(), whether it grants, -- denies or requests a dedicated permission prompt for the given query. -- -- When a PermissionStateQuery is not handled by the user, the -- user-agent is instructed to prompt the user for the given -- permission. module GI.WebKit.Structs.PermissionStateQuery -- | Memory-managed wrapper type. newtype PermissionStateQuery PermissionStateQuery :: ManagedPtr PermissionStateQuery -> PermissionStateQuery -- | Notify the web-engine of the selected permission state for the given -- query. This function should only be called as a response to the -- WebKitWebView::query-permission-state signal. -- -- Since: 2.40 permissionStateQueryFinish :: (HasCallStack, MonadIO m) => PermissionStateQuery -> PermissionState -> m () -- | Get the permission name for which access is being queried. -- -- Since: 2.40 permissionStateQueryGetName :: (HasCallStack, MonadIO m) => PermissionStateQuery -> m Text -- | Get the permission origin for which access is being queried. -- -- Since: 2.40 permissionStateQueryGetSecurityOrigin :: (HasCallStack, MonadIO m) => PermissionStateQuery -> m SecurityOrigin -- | Atomically increments the reference count of query by -- one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.40 permissionStateQueryRef :: (HasCallStack, MonadIO m) => PermissionStateQuery -> m PermissionStateQuery -- | Atomically decrements the reference count of query by -- one. -- -- If the reference count drops to 0, all memory allocated by -- PermissionStateQuery is released. This function is MT-safe and -- may be called from any thread. -- -- Since: 2.40 permissionStateQueryUnref :: (HasCallStack, MonadIO m) => PermissionStateQuery -> m () instance GHC.Classes.Eq GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery) -- | Manages aspects common to all WebViews -- -- The WebContext manages all aspects common to all -- WebViews. -- -- You can define the CacheModel with -- webContextSetCacheModel, depending on the needs of your -- application. You can access the SecurityManager to specify the -- behaviour of your application regarding security using -- webContextGetSecurityManager. -- -- It is also possible to change your preferred language or enable spell -- checking, using webContextSetPreferredLanguages, -- webContextSetSpellCheckingLanguages and -- webContextSetSpellCheckingEnabled. -- -- You can use webContextRegisterUriScheme to register custom URI -- schemes, and manage several other settings. -- -- TLS certificate validation failure is now treated as a transport error -- by default. To handle TLS failures differently, you can connect to -- WebView::loadFailedWithTlsErrors. Alternatively, you can use -- webkit_web_context_set_tls_errors_policy() to set the -- policy TLSErrorsPolicyIgnore; however, this is not appropriate -- for Internet applications. module GI.WebKit.Objects.WebContext -- | Memory-managed wrapper type. newtype WebContext WebContext :: ManagedPtr WebContext -> WebContext -- | Type class for types which can be safely cast to WebContext, -- for instance with toWebContext. class (GObject o, IsDescendantOf WebContext o) => IsWebContext o -- | Cast to WebContext, for types for which this is known to be -- safe. For general casts, use castTo. toWebContext :: (MonadIO m, IsWebContext o) => o -> m WebContext -- | Adds a path to be mounted in the sandbox. -- -- path must exist before any web process has been -- created; otherwise, it will be silently ignored. It is a fatal error -- to add paths after a web process has been spawned. -- -- Paths under /sys, /proc, and /dev are -- invalid. Attempting to add all of / is not valid. Since 2.40, -- adding the user's entire home directory or /home is also not valid. -- -- See also webkit_web_context_set_sandbox_enabled() -- -- Since: 2.26 webContextAddPathToSandbox :: (HasCallStack, MonadIO m, IsWebContext a) => a -> [Char] -> Bool -> m () -- | Returns the current cache model. -- -- For more information about this value check the documentation of the -- function webContextSetCacheModel. webContextGetCacheModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m CacheModel -- | Gets the default web context. webContextGetDefault :: (HasCallStack, MonadIO m) => m WebContext -- | Get the GeolocationManager of context. -- -- Since: 2.26 webContextGetGeolocationManager :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m GeolocationManager -- | Get the NetworkSession used for automation sessions started in -- context. -- -- Since: 2.40 webContextGetNetworkSessionForAutomation :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m (Maybe NetworkSession) -- | Get the SecurityManager of context. webContextGetSecurityManager :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m SecurityManager -- | Get whether spell checking feature is currently enabled. webContextGetSpellCheckingEnabled :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool -- | Get the the list of spell checking languages. -- -- Get the the list of spell checking languages associated with -- context, or Nothing if no languages have been -- previously set. -- -- See webContextSetSpellCheckingLanguages for more details on the -- format of the languages in the list. webContextGetSpellCheckingLanguages :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m [Text] -- | Get the WebContext:timeZoneOverride property. -- -- Since: 2.38 webContextGetTimeZoneOverride :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Text -- | Sets initial desktop notification permissions for the -- context. -- -- allowedOrigins and disallowedOrigins -- must each be List of SecurityOrigin objects representing -- origins that will, respectively, either always or never have -- permission to show desktop notifications. No -- NotificationPermissionRequest will ever be generated for any of -- the security origins represented in allowedOrigins or -- disallowedOrigins. This function is necessary because -- some webpages proactively check whether they have permission to -- display notifications without ever creating a permission request. -- -- This function only affects web processes that have not already been -- created. The best time to call it is when handling -- WebContext::initializeNotificationPermissions so as to ensure -- that new web processes receive the most recent set of permissions. -- -- Since: 2.16 webContextInitializeNotificationPermissions :: (HasCallStack, MonadIO m, IsWebContext a) => a -> [SecurityOrigin] -> [SecurityOrigin] -> m () -- | Get whether automation is allowed in context. -- -- See also webContextSetAutomationAllowed. -- -- Since: 2.18 webContextIsAutomationAllowed :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool -- | Create a new WebContext. -- -- Since: 2.8 webContextNew :: (HasCallStack, MonadIO m) => m WebContext -- | Register scheme in context. -- -- Register scheme in context, so that -- when an URI request with scheme is made in the -- WebContext, the URISchemeRequestCallback registered will -- be called with a URISchemeRequest. It is possible to handle URI -- scheme requests asynchronously, by calling objectRef on the -- URISchemeRequest and calling uRISchemeRequestFinish -- later when the data of the request is available or -- uRISchemeRequestFinishError in case of error. -- --
-- static void
-- about_uri_scheme_request_cb (WebKitURISchemeRequest *request,
-- gpointer user_data)
-- {
-- GInputStream *stream;
-- gsize stream_length;
-- const gchar *path = webkit_uri_scheme_request_get_path (request);
--
-- if (!g_strcmp0 (path, "memory")) {
-- // Create a GInputStream with the contents of memory about page, and set its length to stream_length
-- } else if (!g_strcmp0 (path, "applications")) {
-- // Create a GInputStream with the contents of applications about page, and set its length to stream_length
-- } else if (!g_strcmp0 (path, "example")) {
-- gchar *contents = g_strdup_printf ("<html><body><p>Example about page</p></body></html>");
-- stream_length = strlen (contents);
-- stream = g_memory_input_stream_new_from_data (contents, stream_length, g_free);
-- } else {
-- GError *error = g_error_new (ABOUT_HANDLER_ERROR, ABOUT_HANDLER_ERROR_INVALID, "Invalid about:%s page.", path);
-- webkit_uri_scheme_request_finish_error (request, error);
-- g_error_free (error);
-- return;
-- }
-- webkit_uri_scheme_request_finish (request, stream, stream_length, "text/html");
-- g_object_unref (stream);
-- }
--
webContextRegisterUriScheme :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> URISchemeRequestCallback -> m ()
-- | Send message to all web process extensions associated
-- to context.
--
-- If message is floating, it's consumed.
--
-- Since: 2.28
webContextSendMessageToAllExtensions :: (HasCallStack, MonadIO m, IsWebContext a, IsUserMessage b) => a -> b -> m ()
-- | Set whether automation is allowed in context.
--
-- When automation is enabled the browser could be controlled by another
-- process by requesting an automation session. When a new automation
-- session is requested the signal WebContext::automationStarted
-- is emitted. Automation is disabled by default, so you need to
-- explicitly call this method passing True to enable it.
--
-- Note that only one WebContext can have automation enabled, so
-- this will do nothing if there's another WebContext with
-- automation already enabled.
--
-- Since: 2.18
webContextSetAutomationAllowed :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Bool -> m ()
-- | Specifies a usage model for WebViews.
--
-- Specifies a usage model for WebViews, which WebKit will use to
-- determine its caching behavior. All web views follow the cache model.
-- This cache model determines the RAM and disk space to use for caching
-- previously viewed content .
--
-- Research indicates that users tend to browse within clusters of
-- documents that hold resources in common, and to revisit previously
-- visited documents. WebKit and the frameworks below it include built-in
-- caches that take advantage of these patterns, substantially improving
-- document load speed in browsing situations. The WebKit cache model
-- controls the behaviors of all of these caches, including various
-- WebCore caches.
--
-- Browsers can improve document load speed substantially by specifying
-- CacheModelWebBrowser. Applications without a browsing interface
-- can reduce memory usage substantially by specifying
-- CacheModelDocumentViewer. The default value is
-- CacheModelWebBrowser.
webContextSetCacheModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> CacheModel -> m ()
-- | Set the list of preferred languages.
--
-- Set the list of preferred languages, sorted from most desirable to
-- least desirable. The list will be used in the following ways:
--
-- -- get webContext #timeZoneOverride --getWebContextTimeZoneOverride :: (MonadIO m, IsWebContext o) => o -> m Text -- | This signal is emitted when a new automation request is made. Note -- that it will never be emitted if automation is not enabled in -- context, see webContextSetAutomationAllowed for -- more details. -- -- Since: 2.18 type WebContextAutomationStartedCallback = -- | /@session@/: the t'GI.WebKit.Objects.AutomationSession.AutomationSession' associated with this event AutomationSession -> IO () -- | Connect a signal handler for the automationStarted signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webContext #automationStarted callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebContextAutomationStarted :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextAutomationStartedCallback) -> m SignalHandlerId -- | Connect a signal handler for the automationStarted signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webContext #automationStarted callback --onWebContextAutomationStarted :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextAutomationStartedCallback) -> m SignalHandlerId -- | This signal is emitted when a WebContext needs to set initial -- notification permissions for a web process. It is emitted when a new -- web process is about to be launched, and signals the most appropriate -- moment to use webContextInitializeNotificationPermissions. If -- no notification permissions have changed since the last time this -- signal was emitted, then there is no need to call -- webContextInitializeNotificationPermissions again. -- -- Since: 2.16 type WebContextInitializeNotificationPermissionsCallback = IO () -- | Connect a signal handler for the -- initializeNotificationPermissions signal, to be run after the -- default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webContext #initializeNotificationPermissions callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextInitializeNotificationPermissionsCallback) -> m SignalHandlerId -- | Connect a signal handler for the -- initializeNotificationPermissions signal, to be run before the -- default handler. When overloading is enabled, this is -- equivalent to -- --
-- on webContext #initializeNotificationPermissions callback --onWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextInitializeNotificationPermissionsCallback) -> m SignalHandlerId -- | This signal is emitted when a new web process is about to be launched. -- It signals the most appropriate moment to use -- webContextSetWebProcessExtensionsInitializationUserData and -- webContextSetWebProcessExtensionsDirectory. -- -- Since: 2.4 type WebContextInitializeWebProcessExtensionsCallback = IO () -- | Connect a signal handler for the initializeWebProcessExtensions -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webContext #initializeWebProcessExtensions callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebContextInitializeWebProcessExtensions :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextInitializeWebProcessExtensionsCallback) -> m SignalHandlerId -- | Connect a signal handler for the initializeWebProcessExtensions -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webContext #initializeWebProcessExtensions callback --onWebContextInitializeWebProcessExtensions :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextInitializeWebProcessExtensionsCallback) -> m SignalHandlerId -- | This signal is emitted when a UserMessage is received from a -- web process extension. You can reply to the message using -- userMessageSendReply. -- -- You can handle the user message asynchronously by calling -- objectRef on message and returning True. -- -- Since: 2.28 type WebContextUserMessageReceivedCallback = -- | /@message@/: the t'GI.WebKit.Objects.UserMessage.UserMessage' received UserMessage -> -- | __Returns:__ 'P.True' if the message was handled, or 'P.False' otherwise. IO Bool -- | Connect a signal handler for the userMessageReceived signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webContext #userMessageReceived callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebContextUserMessageReceived :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextUserMessageReceivedCallback) -> m SignalHandlerId -- | Connect a signal handler for the userMessageReceived signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webContext #userMessageReceived callback --onWebContextUserMessageReceived :: (IsWebContext a, MonadIO m) => a -> ((?self :: a) => WebContextUserMessageReceivedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.WebContext.WebContext instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebContext.WebContext o) => GI.WebKit.Objects.WebContext.IsWebContext o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebContext.WebContext instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebContext.WebContext instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebContext.WebContext instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebContext.WebContext instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebContext.WebContext) -- | Represents an authentication request. -- -- Whenever a client attempts to load a page protected by HTTP -- authentication, credentials will need to be provided to authorize -- access. To allow the client to decide how it wishes to handle -- authentication, WebKit will fire a WebView::authenticate signal -- with a WebKitAuthenticationRequest object to provide client side -- authentication support. Credentials are exposed through the -- Credential object. -- -- In case the client application does not wish to handle this signal -- WebKit will provide a default handler. To handle authentication -- asynchronously, simply increase the reference count of the -- WebKitAuthenticationRequest object. module GI.WebKit.Objects.AuthenticationRequest -- | Memory-managed wrapper type. newtype AuthenticationRequest AuthenticationRequest :: ManagedPtr AuthenticationRequest -> AuthenticationRequest -- | Type class for types which can be safely cast to -- AuthenticationRequest, for instance with -- toAuthenticationRequest. class (GObject o, IsDescendantOf AuthenticationRequest o) => IsAuthenticationRequest o -- | Cast to AuthenticationRequest, for types for which this is -- known to be safe. For general casts, use castTo. toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest -- | Authenticate the AuthenticationRequest. -- -- Authenticate the AuthenticationRequest using the -- Credential supplied. To continue without credentials, pass -- Nothing as credential. -- -- Since: 2.2 authenticationRequestAuthenticate :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Maybe Credential -> m () -- | Determine whether this AuthenticationRequest should allow the -- storage of credentials. -- -- Determine whether the authentication method associated with this -- AuthenticationRequest should allow the storage of credentials. -- This will return False if WebKit doesn't support credential -- storing, if private browsing is enabled, or if persistent credential -- storage has been disabled in WebsiteDataManager, unless -- credentials saving has been explicitly enabled with -- authenticationRequestSetCanSaveCredentials. -- -- Since: 2.2 authenticationRequestCanSaveCredentials :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool -- | Cancel the authentication challenge. -- -- This will also cancel the page loading and result in a -- WebView::loadFailed signal with a NetworkError of type -- NetworkErrorCancelled being emitted. -- -- Since: 2.2 authenticationRequestCancel :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m () -- | Get the TlsPasswordFlags of the -- AuthenticationSchemeClientCertificatePinRequested -- authentication challenge. -- -- Since: 2.34 authenticationRequestGetCertificatePinFlags :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m [TlsPasswordFlags] -- | Get the host that this authentication challenge is applicable to. -- -- Since: 2.2 authenticationRequestGetHost :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text -- | Get the port that this authentication challenge is applicable to. -- -- Since: 2.2 authenticationRequestGetPort :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Word32 -- | Get the Credential of the proposed authentication challenge. -- -- Get the Credential of the proposed authentication challenge -- that was stored from a previous session. The client can use this -- directly for authentication or construct their own Credential. -- -- Since: 2.2 authenticationRequestGetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Credential -- | Get the realm that this authentication challenge is applicable to. -- -- Since: 2.2 authenticationRequestGetRealm :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text -- | Get the authentication scheme of the authentication challenge. -- -- Since: 2.2 authenticationRequestGetScheme :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m AuthenticationScheme -- | Get the SecurityOrigin that this authentication challenge is -- applicable to. -- -- Since: 2.30 authenticationRequestGetSecurityOrigin :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m SecurityOrigin -- | Determine whether the authentication challenge is associated with a -- proxy server. -- -- Determine whether the authentication challenge is associated with a -- proxy server rather than an "origin" server. -- -- Since: 2.2 authenticationRequestIsForProxy :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool -- | Determine whether this this is a first attempt or a retry for this -- authentication challenge. -- -- Since: 2.2 authenticationRequestIsRetry :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool -- | Set whether the authentication method associated with -- request should allow the storage of credentials. -- -- Set whether the authentication method associated with -- request should allow the storage of credentials. This -- should be used by applications handling their own credentials storage -- to indicate that it should be supported even when internal credential -- storage is disabled or unsupported. Note that storing of credentials -- will not be allowed on ephemeral sessions in any case. -- -- Since: 2.30 authenticationRequestSetCanSaveCredentials :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Bool -> m () -- | Set the Credential of the proposed authentication challenge. -- -- Set the Credential of the proposed authentication challenge -- that was stored from a previous session. This should only be used by -- applications handling their own credential storage. (When using the -- default WebKit credential storage, -- authenticationRequestGetProposedCredential already contains -- previously-stored credentials.) Passing a Nothing -- credential will clear the proposed credential. -- -- Since: 2.30 authenticationRequestSetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Credential -> m () -- | This signal is emitted when the user authentication request succeeded. -- Applications handling their own credential storage should connect to -- this signal to save the credentials. -- -- Since: 2.30 type AuthenticationRequestAuthenticatedCallback = -- | /@credential@/: the t'GI.WebKit.Structs.Credential.Credential' accepted Credential -> IO () -- | Connect a signal handler for the authenticated signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after authenticationRequest #authenticated callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterAuthenticationRequestAuthenticated :: (IsAuthenticationRequest a, MonadIO m) => a -> ((?self :: a) => AuthenticationRequestAuthenticatedCallback) -> m SignalHandlerId -- | Connect a signal handler for the authenticated signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on authenticationRequest #authenticated callback --onAuthenticationRequestAuthenticated :: (IsAuthenticationRequest a, MonadIO m) => a -> ((?self :: a) => AuthenticationRequestAuthenticatedCallback) -> m SignalHandlerId -- | This signal is emitted when the user authentication request is -- cancelled. It allows the application to dismiss its authentication -- dialog in case of page load failure for example. -- -- Since: 2.2 type AuthenticationRequestCancelledCallback = IO () -- | Connect a signal handler for the cancelled signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after authenticationRequest #cancelled callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> ((?self :: a) => AuthenticationRequestCancelledCallback) -> m SignalHandlerId -- | Connect a signal handler for the cancelled signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on authenticationRequest #cancelled callback --onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> ((?self :: a) => AuthenticationRequestCancelledCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest o) => GI.WebKit.Objects.AuthenticationRequest.IsAuthenticationRequest o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest) -- | A compiled set of rules which applied to resource loads. -- -- Since: 2.24 module GI.WebKit.Structs.UserContentFilter -- | Memory-managed wrapper type. newtype UserContentFilter UserContentFilter :: ManagedPtr UserContentFilter -> UserContentFilter -- | Obtain the identifier previously used to save the -- userContentFilter. -- -- Obtain the identifier previously used to save the -- userContentFilter in the -- UserContentFilterStore. -- -- Since: 2.24 userContentFilterGetIdentifier :: (HasCallStack, MonadIO m) => UserContentFilter -> m Text -- | Atomically increments the reference count of -- userContentFilter by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.24 userContentFilterRef :: (HasCallStack, MonadIO m) => UserContentFilter -> m UserContentFilter -- | Atomically decrements the reference count of -- userContentFilter by one. -- -- If the reference count drops to 0, all the memory allocated by the -- UserContentFilter is released. This function is MT-safe and may -- be called from any thread. -- -- Since: 2.24 userContentFilterUnref :: (HasCallStack, MonadIO m) => UserContentFilter -> m () instance GHC.Classes.Eq GI.WebKit.Structs.UserContentFilter.UserContentFilter instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.UserContentFilter.UserContentFilter instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.UserContentFilter.UserContentFilter instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.UserContentFilter.UserContentFilter instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.UserContentFilter.UserContentFilter instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.UserContentFilter.UserContentFilter) -- | Handles storage of user content filters on disk. -- -- The WebKitUserContentFilterStore provides the means to import and save -- JSON rule sets, which can be loaded later in an efficient -- manner. Once filters are stored, the UserContentFilter objects -- which represent them can be added to a UserContentManager with -- userContentManagerAddFilter. -- -- JSON rule sets are imported using userContentFilterStoreSave -- and stored on disk in an implementation defined format. The contents -- of a filter store must be managed using the -- UserContentFilterStore: a list of all the stored filters can be -- obtained with userContentFilterStoreFetchIdentifiers, -- userContentFilterStoreLoad can be used to retrieve a previously -- saved filter, and removed from the store with -- userContentFilterStoreRemove. -- -- Since: 2.24 module GI.WebKit.Objects.UserContentFilterStore -- | Memory-managed wrapper type. newtype UserContentFilterStore UserContentFilterStore :: ManagedPtr UserContentFilterStore -> UserContentFilterStore -- | Type class for types which can be safely cast to -- UserContentFilterStore, for instance with -- toUserContentFilterStore. class (GObject o, IsDescendantOf UserContentFilterStore o) => IsUserContentFilterStore o -- | Cast to UserContentFilterStore, for types for which this is -- known to be safe. For general casts, use castTo. toUserContentFilterStore :: (MonadIO m, IsUserContentFilterStore o) => o -> m UserContentFilterStore -- | Asynchronously retrieve a list of the identifiers for all the stored -- filters. -- -- When the operation is finished, callback will be -- invoked, which then can use -- userContentFilterStoreFetchIdentifiersFinish to obtain the list -- of filter identifiers. -- -- Since: 2.24 userContentFilterStoreFetchIdentifiers :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous fetch of the list of stored filters. -- -- Finishes an asynchronous fetch of the list of identifiers for the -- stored filters previously started with -- userContentFilterStoreFetchIdentifiers. -- -- Since: 2.24 userContentFilterStoreFetchIdentifiersFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m [Text] -- | Gets the storage path for user content filters. -- -- Since: 2.24 userContentFilterStoreGetPath :: (HasCallStack, MonadIO m, IsUserContentFilterStore a) => a -> m Text -- | Asynchronously load a content filter given its -- identifier. -- -- The filter must have been previously stored using -- userContentFilterStoreSave. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreLoadFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreLoad :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter load previously started with -- userContentFilterStoreLoad. -- -- Since: 2.24 userContentFilterStoreLoadFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Create a new UserContentFilterStore to manipulate filters -- stored at storagePath. -- -- The path must point to a local filesystem, and will be created if -- needed. -- -- Since: 2.24 userContentFilterStoreNew :: (HasCallStack, MonadIO m) => Text -> m UserContentFilterStore -- | Asynchronously remove a content filter given its -- identifier. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreRemoveFinish -- to check whether the removal was successful. -- -- Since: 2.24 userContentFilterStoreRemove :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter removal previously started with -- userContentFilterStoreRemove. -- -- Since: 2.24 userContentFilterStoreRemoveFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m () -- | Asynchronously save a content filter from a set source rule. -- -- Asynchronously save a content filter from a source rule set in the -- WebKit content extesions JSON format. -- -- The identifier can be used afterwards to refer to the -- filter when using userContentFilterStoreRemove and -- userContentFilterStoreLoad. When the identifier -- has been used in the past, the new filter source will replace the one -- saved beforehand for the same identifier. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreSaveFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreSave :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Bytes -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter save previously started with -- userContentFilterStoreSave. -- -- Since: 2.24 userContentFilterStoreSaveFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Asynchronously save a content filter from the contents of a file. -- -- Asynchronously save a content filter from the contents of a file, -- which must be native to the platform, as checked by -- fileIsNative. See userContentFilterStoreSave for more -- details. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreSaveFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreSaveFromFile :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsFile b, IsCancellable c) => a -> Text -> b -> Maybe c -> Maybe AsyncReadyCallback -> m () -- | Finishes and asynchronous filter save previously started with -- userContentFilterStoreSaveFromFile. -- -- Since: 2.24 userContentFilterStoreSaveFromFileFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Construct a GValueConstruct with valid value for the -- “path” property. This is rarely needed directly, but it is -- used by new. constructUserContentFilterStorePath :: (IsUserContentFilterStore o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “path” property. When overloading -- is enabled, this is equivalent to -- --
-- get userContentFilterStore #path --getUserContentFilterStorePath :: (MonadIO m, IsUserContentFilterStore o) => o -> m Text instance GHC.Classes.Eq GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore o) => GI.WebKit.Objects.UserContentFilterStore.IsUserContentFilterStore o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.UserContentFilterStore.UserContentFilterStore) -- | A JavaScript snippet which can be injected in loaded pages. -- -- Since: 2.6 module GI.WebKit.Structs.UserScript -- | Memory-managed wrapper type. newtype UserScript UserScript :: ManagedPtr UserScript -> UserScript -- | Creates a new user script. -- -- Scripts can be applied to some URIs only by passing non-null values -- for allowList or blockList. Passing a -- Nothing allow_list implies that all URIs are on the allow_list. -- The script is applied if an URI matches the allow_list and not the -- block_list. URI patterns must be of the form -- [protocol]://[host]/[path], where the *host* and *path* -- components can contain the wildcard character (*) to -- represent zero or more other characters. -- -- Since: 2.6 userScriptNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserScriptInjectionTime -> Maybe [Text] -> Maybe [Text] -> m UserScript -- | Creates a new user script for script world with name -- worldName. -- -- See userScriptNew for a full description. -- -- Since: 2.22 userScriptNewForWorld :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserScriptInjectionTime -> Text -> Maybe [Text] -> Maybe [Text] -> m UserScript -- | Atomically increments the reference count of -- userScript by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.6 userScriptRef :: (HasCallStack, MonadIO m) => UserScript -> m UserScript -- | Atomically decrements the reference count of -- userScript by one. -- -- If the reference count drops to 0, all memory allocated by -- UserScript is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.6 userScriptUnref :: (HasCallStack, MonadIO m) => UserScript -> m () instance GHC.Classes.Eq GI.WebKit.Structs.UserScript.UserScript instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.UserScript.UserScript instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.UserScript.UserScript instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.UserScript.UserScript instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.UserScript.UserScript instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.UserScript.UserScript) -- | A CSS style sheet which can be injected in loaded pages. -- -- Since: 2.6 module GI.WebKit.Structs.UserStyleSheet -- | Memory-managed wrapper type. newtype UserStyleSheet UserStyleSheet :: ManagedPtr UserStyleSheet -> UserStyleSheet -- | Creates a new user style sheet. -- -- Style sheets can be applied to some URIs only by passing non-null -- values for allowList or blockList. -- Passing a Nothing allow_list implies that all URIs are on the -- allow_list. The style sheet is applied if an URI matches the -- allow_list and not the block_list. URI patterns must be of the form -- [protocol]://[host]/[path], where the *host* and *path* -- components can contain the wildcard character (*) to -- represent zero or more other characters. -- -- Since: 2.6 userStyleSheetNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Maybe [Text] -> Maybe [Text] -> m UserStyleSheet -- | Creates a new user style sheet for script world. -- -- Creates a new user style sheet for script world with name -- worldName. See userStyleSheetNew for a full -- description. -- -- Since: 2.22 userStyleSheetNewForWorld :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Text -> Maybe [Text] -> Maybe [Text] -> m UserStyleSheet -- | Atomically increments the reference count of -- userStyleSheet by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.6 userStyleSheetRef :: (HasCallStack, MonadIO m) => UserStyleSheet -> m UserStyleSheet -- | Atomically decrements the reference count of -- userStyleSheet by one. -- -- If the reference count drops to 0, all memory allocated by -- UserStyleSheet is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.6 userStyleSheetUnref :: (HasCallStack, MonadIO m) => UserStyleSheet -> m () instance GHC.Classes.Eq GI.WebKit.Structs.UserStyleSheet.UserStyleSheet instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.UserStyleSheet.UserStyleSheet instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.UserStyleSheet.UserStyleSheet instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.UserStyleSheet.UserStyleSheet instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.UserStyleSheet.UserStyleSheet instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.UserStyleSheet.UserStyleSheet) -- | Manages user-defined content which affects web pages. -- -- Using a UserContentManager user CSS style sheets can be set to -- be injected in the web pages loaded by a WebView, by -- userContentManagerAddStyleSheet. -- -- To use a UserContentManager, it must be created using -- userContentManagerNew, and then used to construct a -- WebView. User style sheets can be created with -- userStyleSheetNew. -- -- User style sheets can be added and removed at any time, but they will -- affect the web pages loaded afterwards. -- -- Since: 2.6 module GI.WebKit.Objects.UserContentManager -- | Memory-managed wrapper type. newtype UserContentManager UserContentManager :: ManagedPtr UserContentManager -> UserContentManager -- | Type class for types which can be safely cast to -- UserContentManager, for instance with -- toUserContentManager. class (GObject o, IsDescendantOf UserContentManager o) => IsUserContentManager o -- | Cast to UserContentManager, for types for which this is known -- to be safe. For general casts, use castTo. toUserContentManager :: (MonadIO m, IsUserContentManager o) => o -> m UserContentManager -- | Adds a UserContentFilter to the given -- UserContentManager. -- -- The same UserContentFilter can be reused with multiple -- UserContentManager instances. -- -- Filters need to be saved and loaded from -- UserContentFilterStore. -- -- Since: 2.24 userContentManagerAddFilter :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserContentFilter -> m () -- | Adds a UserScript to the given UserContentManager. -- -- The same UserScript can be reused with multiple -- UserContentManager instances. -- -- Since: 2.6 userContentManagerAddScript :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserScript -> m () -- | Adds a UserStyleSheet to the given UserContentManager. -- -- The same UserStyleSheet can be reused with multiple -- UserContentManager instances. -- -- Since: 2.6 userContentManagerAddStyleSheet :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserStyleSheet -> m () -- | Creates a new user content manager. -- -- Since: 2.6 userContentManagerNew :: (HasCallStack, MonadIO m) => m UserContentManager -- | Registers a new user script message handler in script world. -- -- After it is registered, scripts can use -- window.webkit.messageHandlers.<name>.postMessage(value) -- to send messages. Those messages are received by connecting handlers -- to the UserContentManager::scriptMessageReceived signal. The -- handler name is used as the detail of the signal. To avoid race -- conditions between registering the handler name, and starting to -- receive the signals, it is recommended to connect to the signal -- *before* registering the handler name: -- --
-- WebKitWebView *view = webkit_web_view_new (); -- WebKitUserContentManager *manager = webkit_web_view_get_user_content_manager (); -- g_signal_connect (manager, "script-message-received::foobar", -- G_CALLBACK (handle_script_message), NULL); -- webkit_user_content_manager_register_script_message_handler (manager, "foobar"); ---- -- Registering a script message handler will fail if the requested name -- has been already registered before. -- -- If Nothing is passed as the worldName, the -- default world will be used. -- -- The registered handler can be unregistered by using -- userContentManagerUnregisterScriptMessageHandler. -- -- Since: 2.40 userContentManagerRegisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> Maybe Text -> m Bool -- | Registers a new user script message handler in script world with name -- worldName. -- -- Different from userContentManagerRegisterScriptMessageHandler, -- when using this function to register the handler, the connected signal -- is script-message-with-reply-received, and a reply provided by the -- user is expected. Otherwise, the user will receive a default undefined -- value. -- -- If Nothing is passed as the worldName, the -- default world will be used. See -- userContentManagerRegisterScriptMessageHandler for full -- description. -- -- Registering a script message handler will fail if the requested name -- has been already registered before. -- -- The registered handler can be unregistered by using -- userContentManagerUnregisterScriptMessageHandler. -- -- Since: 2.40 userContentManagerRegisterScriptMessageHandlerWithReply :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> Text -> m Bool -- | Removes all content filters from the given UserContentManager. -- -- Since: 2.24 userContentManagerRemoveAllFilters :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes all user scripts from the given UserContentManager -- -- See also userContentManagerRemoveScript. -- -- Since: 2.6 userContentManagerRemoveAllScripts :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes all user style sheets from the given -- UserContentManager. -- -- Since: 2.6 userContentManagerRemoveAllStyleSheets :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes a filter from the given UserContentManager. -- -- Since 2.24 userContentManagerRemoveFilter :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserContentFilter -> m () -- | Removes a filter by the given identifier. -- -- Removes a filter from the given UserContentManager given the -- identifier of a UserContentFilter as returned by -- userContentFilterGetIdentifier. -- -- Since: 2.26 userContentManagerRemoveFilterById :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> m () -- | Removes a UserScript from the given UserContentManager. -- -- See also userContentManagerRemoveAllScripts. -- -- Since: 2.32 userContentManagerRemoveScript :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserScript -> m () -- | Removes a UserStyleSheet from the given -- UserContentManager. -- -- See also userContentManagerRemoveAllStyleSheets. -- -- Since: 2.32 userContentManagerRemoveStyleSheet :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserStyleSheet -> m () -- | Unregisters a previously registered message handler in script world -- with name worldName. If Nothing is passed as -- the worldName, the default world will be used. -- -- Note that this does *not* disconnect handlers for the -- UserContentManager::scriptMessageReceived signal; they will be -- kept connected, but the signal will not be emitted unless the handler -- name is registered again. -- -- See also userContentManagerRegisterScriptMessageHandler. -- -- Since: 2.40 userContentManagerUnregisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> Maybe Text -> m () -- | This signal is emitted when JavaScript in a web view calls -- <code>window.webkit.messageHandlers.<name>.postMessage()</code>, -- after registering <code><name></code> using -- userContentManagerRegisterScriptMessageHandler -- -- Since: 2.8 type UserContentManagerScriptMessageReceivedCallback = -- | /@value@/: the value received from the JavaScript world. Value -> IO () -- | Connect a signal handler for the scriptMessageReceived signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after userContentManager #scriptMessageReceived callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “script-message-received::detail” instead. -- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => UserContentManagerScriptMessageReceivedCallback) -> m SignalHandlerId -- | Connect a signal handler for the scriptMessageReceived signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on userContentManager #scriptMessageReceived callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “script-message-received::detail” instead. onUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => UserContentManagerScriptMessageReceivedCallback) -> m SignalHandlerId -- | This signal is emitted when JavaScript in a web view calls -- <code>window.webkit.messageHandlers.<name>.postMessage()</code>, -- after registering <code><name></code> using -- userContentManagerRegisterScriptMessageHandlerWithReply -- -- The given reply can be used to send a return value -- with scriptMessageReplyReturnValue or an error message with -- scriptMessageReplyReturnErrorMessage. If none of them are -- called, an automatic reply with an undefined value will be sent. -- -- It is possible to handle the reply asynchronously, by simply calling -- objectRef on the reply and returning -- True. -- -- Since: 2.40 type UserContentManagerScriptMessageWithReplyReceivedCallback = -- | /@value@/: the value received from the JavaScript world. Value -> -- | /@reply@/: the t'GI.WebKit.Structs.ScriptMessageReply.ScriptMessageReply' to send the reply to the script message. ScriptMessageReply -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the scriptMessageWithReplyReceived -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after userContentManager #scriptMessageWithReplyReceived callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “script-message-with-reply-received::detail” instead. -- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterUserContentManagerScriptMessageWithReplyReceived :: (IsUserContentManager a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => UserContentManagerScriptMessageWithReplyReceivedCallback) -> m SignalHandlerId -- | Connect a signal handler for the scriptMessageWithReplyReceived -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on userContentManager #scriptMessageWithReplyReceived callback ---- -- This signal admits a optional parameter detail. If it's not -- Nothing, we will connect to -- “script-message-with-reply-received::detail” instead. onUserContentManagerScriptMessageWithReplyReceived :: (IsUserContentManager a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => UserContentManagerScriptMessageWithReplyReceivedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.UserContentManager.UserContentManager instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.UserContentManager.UserContentManager o) => GI.WebKit.Objects.UserContentManager.IsUserContentManager o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.UserContentManager.UserContentManager instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.UserContentManager.UserContentManager instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.UserContentManager.UserContentManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.UserContentManager.UserContentManager instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.UserContentManager.UserContentManager) -- | Handles serialization of a web view's browsing state. -- -- Since: 2.12 module GI.WebKit.Structs.WebViewSessionState -- | Memory-managed wrapper type. newtype WebViewSessionState WebViewSessionState :: ManagedPtr WebViewSessionState -> WebViewSessionState -- | Creates a new WebViewSessionState from serialized data. -- -- Since: 2.12 webViewSessionStateNew :: (HasCallStack, MonadIO m) => Bytes -> m WebViewSessionState -- | Atomically increments the reference count of state by -- one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.12 webViewSessionStateRef :: (HasCallStack, MonadIO m) => WebViewSessionState -> m WebViewSessionState -- | Serializes a WebViewSessionState. -- -- Since: 2.12 webViewSessionStateSerialize :: (HasCallStack, MonadIO m) => WebViewSessionState -> m Bytes -- | Atomically decrements the reference count of state by -- one. -- -- If the reference count drops to 0, all memory allocated by the -- WebViewSessionState is released. This function is MT-safe and -- may be called from any thread. -- -- Since: 2.12 webViewSessionStateUnref :: (HasCallStack, MonadIO m) => WebViewSessionState -> m () instance GHC.Classes.Eq GI.WebKit.Structs.WebViewSessionState.WebViewSessionState instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.WebViewSessionState.WebViewSessionState instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.WebViewSessionState.WebViewSessionState instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.WebViewSessionState.WebViewSessionState instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.WebViewSessionState.WebViewSessionState instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.WebViewSessionState.WebViewSessionState) -- | The central class of the WPE WebKit and WebKitGTK APIs. -- -- WebView is the central class of the WPE WebKit and WebKitGTK -- APIs. It is responsible for managing the drawing of the content and -- forwarding of events. You can load any URI into the WebView or -- a data string. With Settings you can control various aspects of -- the rendering and loading of the content. -- -- Note that in WebKitGTK, WebView is scrollable by itself, so you -- don't need to embed it in a ScrolledWindow. module GI.WebKit.Objects.WebView -- | Memory-managed wrapper type. newtype WebView WebView :: ManagedPtr WebView -> WebView -- | Type class for types which can be safely cast to WebView, for -- instance with toWebView. class (GObject o, IsDescendantOf WebView o) => IsWebView o -- | Cast to WebView, for types for which this is known to be safe. -- For general casts, use castTo. toWebView :: (MonadIO m, IsWebView o) => o -> m WebView -- | Asynchronously call body with -- arguments in the script world with name -- worldName of the main frame current context in -- webView. The arguments values must be -- one of the following types, or contain only the following GVariant -- types: number, string and dictionary. The result of the operation can -- be a Promise that will be properly passed to the callback. If -- worldName is Nothing, the default world is -- used. Any value that is not Nothing is a distin ct world. The -- sourceUri will be shown in exceptions and doesn't -- affect the behavior of the script. When not provided, the document URL -- is used. -- -- Note that if Settings:enableJavascript is False, this -- method will do nothing. If you want to use this method but still -- prevent web content from executing its own JavaScript, then use -- Settings:enableJavascriptMarkup. -- -- When the operation is finished, callback will be -- called. You can then call -- webViewCallAsyncJavascriptFunctionFinish to get the result of -- the operation. -- -- This is an example that shows how to pass arguments to a JS function -- that returns a Promise that resolves with the passed argument: -- --
-- static void
-- web_view_javascript_finished (GObject *object,
-- GAsyncResult *result,
-- gpointer user_data)
-- {
-- JSCValue *value;
-- GError *error = NULL;
--
-- value = webkit_web_view_call_async_javascript_function_finish (WEBKIT_WEB_VIEW (object), result, &error);
-- if (!value) {
-- g_warning ("Error running javascript: %s", error->message);
-- g_error_free (error);
-- return;
-- }
--
-- if (jsc_value_is_number (value)) {
-- gint32 int_value = jsc_value_to_string (value);
-- JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
-- if (exception)
-- g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
-- else
-- g_print ("Script result: %d\n", int_value);
-- g_free (str_value);
-- } else {
-- g_warning ("Error running javascript: unexpected return value");
-- }
-- webkit_javascript_result_unref (js_result);
-- }
--
-- static void
-- web_view_evaluate_promise (WebKitWebView *web_view)
-- {
-- GVariantDict dict;
-- g_variant_dict_init (&dict, NULL);
-- g_variant_dict_insert (&dict, "count", "u", 42);
-- GVariant *args = g_variant_dict_end (&dict);
-- const gchar *body = "return new Promise((resolve) => { resolve(count); });";
-- webkit_web_view_call_async_javascript_function (web_view, body, -1, arguments, NULL, NULL, NULL, web_view_javascript_finished, NULL);
-- }
--
--
-- Since: 2.40
webViewCallAsyncJavascriptFunction :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Int64 -> Maybe GVariant -> Maybe Text -> Maybe Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with
-- webViewCallAsyncJavascriptFunction.
--
-- Since: 2.40
webViewCallAsyncJavascriptFunctionFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Value
-- | 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.
webViewCanExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with
-- webViewCanExecuteEditingCommand.
webViewCanExecuteEditingCommandFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
-- | Determines whether webView has a previous history
-- item.
webViewCanGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Determines whether webView has a next history item.
webViewCanGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Whether or not a MIME type can be displayed in
-- webView.
webViewCanShowMimeType :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Bool
-- | Requests downloading of the specified URI string for
-- webView.
webViewDownloadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Download
-- | Asynchronously evaluate script in the script world
-- with name worldName of the main frame current context
-- in webView. If worldName is
-- Nothing, the default world is used. Any value that is not
-- Nothing is a distinct world. The sourceUri will
-- be shown in exceptions and doesn't affect the behavior of the script.
-- When not provided, the document URL is used.
--
-- Note that if Settings:enableJavascript is False, this
-- method will do nothing. If you want to use this method but still
-- prevent web content from executing its own JavaScript, then use
-- Settings:enableJavascriptMarkup.
--
-- When the operation is finished, callback will be
-- called. You can then call webViewEvaluateJavascriptFinish to
-- get the result of the operation.
--
-- This is an example of using webViewEvaluateJavascript with a
-- script returning a string:
--
--
-- static void
-- web_view_javascript_finished (GObject *object,
-- GAsyncResult *result,
-- gpointer user_data)
-- {
-- JSCValue *value;
-- GError *error = NULL;
--
-- value = webkit_web_view_evaluate_javascript_finish (WEBKIT_WEB_VIEW (object), result, &error);
-- if (!value) {
-- g_warning ("Error running javascript: %s", error->message);
-- g_error_free (error);
-- return;
-- }
--
-- if (jsc_value_is_string (value)) {
-- gchar *str_value = jsc_value_to_string (value);
-- JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
-- if (exception)
-- g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
-- else
-- 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 = g_strdup_printf ("window.document.getElementById('%s').href;", link_id);
-- webkit_web_view_evaluate_javascript (web_view, script, -1, NULL, NULL, NULL, web_view_javascript_finished, NULL);
-- g_free (script);
-- }
--
--
-- Since: 2.40
webViewEvaluateJavascript :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Int64 -> Maybe Text -> Maybe Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with
-- webViewEvaluateJavascript.
--
-- Since: 2.40
webViewEvaluateJavascriptFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Value
-- | Request to execute the given command for
-- webView.
--
-- You can use webViewCanExecuteEditingCommand to check whether
-- it's possible to execute the command.
webViewExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a) => a -> 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
webViewExecuteEditingCommandWithArgument :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> m ()
-- | Get the presentation type of WebView when created for
-- automation.
--
-- Since: 2.28
webViewGetAutomationPresentationType :: (HasCallStack, MonadIO m, IsWebView a) => a -> m AutomationBrowsingContextPresentation
-- | Obtains the BackForwardList associated with the given
-- WebView.
--
-- The BackForwardList is owned by the WebView.
webViewGetBackForwardList :: (HasCallStack, MonadIO m, IsWebView a) => a -> m BackForwardList
-- | Gets the color that is used to draw the webView
-- background.
--
-- 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
webViewGetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> m RGBA
-- | Get the camera capture state of a WebView.
--
-- Since: 2.34
webViewGetCameraCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m MediaCaptureState
-- | Gets the web context of webView.
webViewGetContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebContext
-- | Returns the current custom character encoding name of
-- webView.
webViewGetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
-- | Gets the configured default Content-Security-Policy.
--
-- Since: 2.38
webViewGetDefaultContentSecurityPolicy :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe Text)
-- | Get the display capture state of a WebView.
--
-- Since: 2.34
webViewGetDisplayCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m MediaCaptureState
-- | Gets the web editor state of webView.
--
-- Since: 2.10
webViewGetEditorState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m EditorState
-- | Gets the value of the WebView:estimatedLoadProgress property.
--
-- You can monitor the estimated progress of a load operation by
-- connecting to the notifyestimatedLoadProgress signal of
-- webView.
webViewGetEstimatedLoadProgress :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
-- | Returns favicon currently associated to webView.
--
-- Returns favicon currently associated to webView, if
-- any. You can connect to notifyfavicon signal of
-- webView to be notified when the favicon is available.
webViewGetFavicon :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Texture
-- | Gets the FindController.
--
-- Gets the FindController that will allow the caller to query the
-- WebView for the text to look for.
webViewGetFindController :: (HasCallStack, MonadIO m, IsWebView a) => a -> m FindController
-- | Get the InputMethodContext currently in use by
-- webView.
--
-- Get the InputMethodContext currently in use by
-- webView, or Nothing if no input method is being
-- used.
--
-- Since: 2.28
webViewGetInputMethodContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe InputMethodContext)
-- | Get the WebInspector associated to webView
webViewGetInspector :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebInspector
-- | Gets the mute state of webView.
--
-- Since: 2.30
webViewGetIsMuted :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Get whether the current web process of a WebView is responsive.
--
-- Since: 2.34
webViewGetIsWebProcessResponsive :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Return the main resource of webView.
webViewGetMainResource :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebResource
-- | Get the microphone capture state of a WebView.
--
-- Since: 2.34
webViewGetMicrophoneCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m MediaCaptureState
-- | Get the NetworkSession associated to webView.
--
-- Since: 2.40
webViewGetNetworkSession :: (HasCallStack, MonadIO m, IsWebView a) => a -> m NetworkSession
-- | Get the identifier of the WebKitWebPage corresponding
-- to the WebView
webViewGetPageId :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Word64
-- | Gets the current session state of webView
--
-- Since: 2.12
webViewGetSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebViewSessionState
-- | 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 WebViews, so modifying the settings of a
-- WebView would affect other WebViews using the same
-- Settings.
webViewGetSettings :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Settings
-- | 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.
webViewGetSnapshot :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SnapshotRegion -> [SnapshotOptions] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
-- | Finishes an asynchronous operation started with
-- webViewGetSnapshot.
webViewGetSnapshotFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Texture
-- | Gets the value of the WebView:title property.
--
-- You can connect to notifytitle signal of
-- webView to be notified when the title has been
-- received.
webViewGetTitle :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
-- | Retrieves the TlsCertificate associated with the main resource
-- of webView.
--
-- 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::loadChanged 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
-- TLSErrorsPolicyIgnore, 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 TLSErrorsPolicyFail, in which case
-- subresources that fail certificate verification will be blocked.
webViewGetTlsInfo :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Bool, TlsCertificate, [TlsCertificateFlags])
-- | 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::loadChanged is
-- emitted with LoadEventRedirected event, the active URI is
-- already updated to the redirected URI. </para></listitem>
-- <listitem><para> When the signal
-- WebView::loadChanged 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 notifyuri
-- signal of webView.
webViewGetUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
-- | Gets the user content manager associated to webView.
--
-- Since: 2.6
webViewGetUserContentManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m UserContentManager
-- | Get the view's WebExtensionMode.
--
-- Since: 2.38
webViewGetWebExtensionMode :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebExtensionMode
-- | Gets the default website policies.
--
-- Gets the default website policies set on construction in the
-- webView. These can be overridden on a per-origin basis
-- via the WebView::decidePolicy signal handler.
--
-- See also policyDecisionUseWithPolicies.
--
-- Since: 2.30
webViewGetWebsitePolicies :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebsitePolicies
-- | Get the WindowProperties object.
--
-- Get the WindowProperties object containing the properties that
-- the window containing webView should have.
webViewGetWindowProperties :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WindowProperties
-- | Set the zoom level of webView.
--
-- Get the zoom level of webView, i.e. the factor by
-- which the view contents are scaled with respect to their original
-- size.
webViewGetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
-- | Loads the previous history item.
--
-- You can monitor the load operation by connecting to
-- WebView::loadChanged signal.
webViewGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Loads the next history item.
--
-- You can monitor the load operation by connecting to
-- WebView::loadChanged signal.
webViewGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Loads the specific history item listItem.
--
-- You can monitor the load operation by connecting to
-- WebView::loadChanged signal.
webViewGoToBackForwardListItem :: (HasCallStack, MonadIO m, IsWebView a, IsBackForwardListItem b) => a -> b -> m ()
-- | Get whether a WebView was created with
-- WebView:isControlledByAutomation property enabled.
--
-- Only WebViews controlled by automation can be used in an
-- automation session.
--
-- Since: 2.18
webViewIsControlledByAutomation :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Gets whether the user is allowed to edit the HTML document.
--
-- When webView is not editable an element in the HTML
-- 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.
--
-- Since: 2.8
webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Gets the value of the WebView:isLoading property.
--
-- You can monitor when a WebView is loading a page by connecting
-- to notifyisLoading signal of webView. This is
-- useful when you are interesting in knowing when the view is loading
-- 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.
webViewIsLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Gets the value of the WebView:isPlayingAudio property.
--
-- You can monitor when a page in a WebView is playing audio by
-- connecting to the notifyisPlayingAudio signal of
-- webView. This is useful when the application wants to
-- provide visual feedback when a page is producing sound.
--
-- Since: 2.8
webViewIsPlayingAudio :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | 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::loadFailed signal to show an error page, then the
-- back-forward list is maintained appropriately. For everything else
-- this method works the same way as webViewLoadHtml.
webViewLoadAlternateHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> 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::loadChanged signal.
--
-- Since: 2.6
webViewLoadBytes :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bytes -> Maybe Text -> Maybe 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::loadChanged signal.
webViewLoadHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Maybe 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::loadChanged signal.
webViewLoadPlainText :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
-- | Requests loading of the specified URIRequest.
--
-- You can monitor the load operation by connecting to
-- WebView::loadChanged signal.
webViewLoadRequest :: (HasCallStack, MonadIO m, IsWebView a, IsURIRequest b) => a -> b -> m ()
-- | Requests loading of the specified URI string.
--
-- You can monitor the load operation by connecting to
-- WebView::loadChanged signal.
webViewLoadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
-- | Creates a new WebView with the default WebContext.
--
-- Creates a new WebView with the default WebContext and no
-- UserContentManager associated with it. See also
-- webkit_web_view_new_with_context(),
-- webkit_web_view_new_with_user_content_manager(), and
-- webkit_web_view_new_with_settings().
webViewNew :: (HasCallStack, MonadIO m) => m WebView
-- | Reloads the current contents of webView.
--
-- See also webViewReloadBypassCache.
webViewReload :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Reloads the current contents of webView without using
-- any cached data.
webViewReloadBypassCache :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Restore the webView session state from
-- state
--
-- Since: 2.12
webViewRestoreSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> WebViewSessionState -> m ()
-- | Asynchronously save the current web page.
--
-- 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.
webViewSave :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SaveMode -> Maybe b -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with webViewSave.
webViewSaveFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m InputStream
-- | Asynchronously save the current web page.
--
-- 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.
webViewSaveToFile :: (HasCallStack, MonadIO m, IsWebView a, IsFile b, IsCancellable c) => a -> b -> SaveMode -> Maybe c -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with
-- webViewSaveToFile.
webViewSaveToFileFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
-- | Send message to the WebKitWebPage
-- corresponding to webView.
--
-- If message is floating, it's consumed. If you don't
-- expect any reply, or you simply want to ignore it, you can pass
-- Nothing as callback. When the operation is
-- finished, callback will be called. You can then call
-- webViewSendMessageToPageFinish to get the message reply.
--
-- Since: 2.28
webViewSendMessageToPage :: (HasCallStack, MonadIO m, IsWebView a, IsUserMessage b, IsCancellable c) => a -> b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
-- | Finish an asynchronous operation started with
-- webViewSendMessageToPage.
--
-- Since: 2.28
webViewSendMessageToPageFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m UserMessage
-- | Sets the color that will be used to draw the webView
-- background.
--
-- 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.
--
--
-- 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);
-- }
--
--
-- Since: 2.8
webViewSetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> RGBA -> m ()
-- | Set the camera capture state of a WebView.
--
-- If Settings:enable-mediastream is False,
-- this method will have no visible effect. Once the state of the device
-- has been set to MediaCaptureStateNone it cannot be changed
-- anymore. The page can however request capture again using the
-- mediaDevices API.
--
-- Since: 2.34
webViewSetCameraCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> MediaCaptureState -> m ()
-- | Sets the allowlist for CORS.
--
-- Sets the allowlist for which Cross-Origin Resource
-- Sharing checks are disabled in webView. URI
-- patterns must be of the form [protocol]://[host]/[path], each
-- component may contain the wildcard character (*) to represent
-- zero or more other characters. All three components are required and
-- must not be omitted from the URI patterns.
--
-- Disabling CORS checks permits resources from other origins to load
-- allowlisted resources. It does not permit the allowlisted resources to
-- load resources from other origins.
--
-- If this function is called multiple times, only the allowlist set by
-- the most recent call will be effective.
--
-- Since: 2.34
webViewSetCorsAllowlist :: (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.
webViewSetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> Maybe Text -> m ()
-- | Set the display capture state of a WebView.
--
-- If Settings:enable-mediastream is False,
-- this method will have no visible effect. Once the state of the device
-- has been set to MediaCaptureStateNone it cannot be changed
-- anymore. The page can however request capture again using the
-- mediaDevices API.
--
-- Since: 2.34
webViewSetDisplayCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> MediaCaptureState -> 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
webViewSetEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bool -> m ()
-- | Set the InputMethodContext to be used by
-- webView.
--
-- Set the InputMethodContext to be used by
-- webView, or Nothing to not use any input
-- method. Note that the same InputMethodContext can't be set on
-- more than one WebView at the same time.
--
-- Since: 2.28
webViewSetInputMethodContext :: (HasCallStack, MonadIO m, IsWebView a, IsInputMethodContext b) => a -> Maybe b -> m ()
-- | Sets the mute state of webView.
--
-- Since: 2.30
webViewSetIsMuted :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bool -> m ()
-- | Set the microphone capture state of a WebView.
--
-- If Settings:enable-mediastream is False,
-- this method will have no visible effect. Once the state of the device
-- has been set to MediaCaptureStateNone it cannot be changed
-- anymore. The page can however request capture again using the
-- mediaDevices API.
--
-- Since: 2.34
webViewSetMicrophoneCaptureState :: (HasCallStack, MonadIO m, IsWebView a) => a -> MediaCaptureState -> m ()
-- | Sets the Settings to be applied to webView.
--
-- The existing Settings of webView will be
-- replaced by settings. New settings are applied
-- immediately on webView. The same Settings
-- object can be shared by multiple WebViews.
webViewSetSettings :: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) => a -> b -> m ()
-- | Set the zoom level of webView.
--
-- Set the zoom level of webView, i.e. the factor by
-- which the view contents are scaled with respect to their original
-- size.
webViewSetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> Double -> 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::loadFailed signal will be emitted with
-- NetworkErrorCancelled error.
webViewStopLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Terminates the web process associated to webView.
--
-- When the web process gets terminated using this method, the
-- WebView::webProcessTerminated signal is emitted with
-- WebProcessTerminationReasonTerminatedByApi as the reason for
-- termination.
--
-- Since: 2.34
webViewTerminateWebProcess :: (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
webViewTryClose :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Construct a GValueConstruct with valid value for the
-- “automation-presentation-type” property. This is rarely
-- needed directly, but it is used by new.
constructWebViewAutomationPresentationType :: (IsWebView o, MonadIO m) => AutomationBrowsingContextPresentation -> m (GValueConstruct o)
-- | Get the value of the “automation-presentation-type” property.
-- When overloading is enabled, this is equivalent to
--
-- -- get webView #automationPresentationType --getWebViewAutomationPresentationType :: (MonadIO m, IsWebView o) => o -> m AutomationBrowsingContextPresentation -- | Construct a GValueConstruct with valid value for the -- “camera-capture-state” property. This is rarely needed -- directly, but it is used by new. constructWebViewCameraCaptureState :: (IsWebView o, MonadIO m) => MediaCaptureState -> m (GValueConstruct o) -- | Get the value of the “camera-capture-state” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #cameraCaptureState --getWebViewCameraCaptureState :: (MonadIO m, IsWebView o) => o -> m MediaCaptureState -- | Set the value of the “camera-capture-state” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #cameraCaptureState := value ] --setWebViewCameraCaptureState :: (MonadIO m, IsWebView o) => o -> MediaCaptureState -> m () -- | Construct a GValueConstruct with valid value for the -- “default-content-security-policy” property. This is rarely -- needed directly, but it is used by new. constructWebViewDefaultContentSecurityPolicy :: (IsWebView o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “default-content-security-policy” -- property. When overloading is enabled, this is equivalent to -- --
-- get webView #defaultContentSecurityPolicy --getWebViewDefaultContentSecurityPolicy :: (MonadIO m, IsWebView o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “display-capture-state” property. This is rarely needed -- directly, but it is used by new. constructWebViewDisplayCaptureState :: (IsWebView o, MonadIO m) => MediaCaptureState -> m (GValueConstruct o) -- | Get the value of the “display-capture-state” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #displayCaptureState --getWebViewDisplayCaptureState :: (MonadIO m, IsWebView o) => o -> m MediaCaptureState -- | Set the value of the “display-capture-state” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #displayCaptureState := value ] --setWebViewDisplayCaptureState :: (MonadIO m, IsWebView o) => o -> MediaCaptureState -> m () -- | Construct a GValueConstruct with valid value for the -- “editable” property. This is rarely needed directly, but it -- is used by new. constructWebViewEditable :: (IsWebView o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “editable” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #editable --getWebViewEditable :: (MonadIO m, IsWebView o) => o -> m Bool -- | Set the value of the “editable” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #editable := value ] --setWebViewEditable :: (MonadIO m, IsWebView o) => o -> Bool -> m () -- | Get the value of the “estimated-load-progress” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #estimatedLoadProgress --getWebViewEstimatedLoadProgress :: (MonadIO m, IsWebView o) => o -> m Double -- | Get the value of the “favicon” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #favicon --getWebViewFavicon :: (MonadIO m, IsWebView o) => o -> m Texture -- | Construct a GValueConstruct with valid value for the -- “is-controlled-by-automation” property. This is rarely needed -- directly, but it is used by new. constructWebViewIsControlledByAutomation :: (IsWebView o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “is-controlled-by-automation” property. -- When overloading is enabled, this is equivalent to -- --
-- get webView #isControlledByAutomation --getWebViewIsControlledByAutomation :: (MonadIO m, IsWebView o) => o -> m Bool -- | Get the value of the “is-loading” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isLoading --getWebViewIsLoading :: (MonadIO m, IsWebView o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “is-muted” property. This is rarely needed directly, but it -- is used by new. constructWebViewIsMuted :: (IsWebView o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “is-muted” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isMuted --getWebViewIsMuted :: (MonadIO m, IsWebView o) => o -> m Bool -- | Set the value of the “is-muted” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #isMuted := value ] --setWebViewIsMuted :: (MonadIO m, IsWebView o) => o -> Bool -> m () -- | Get the value of the “is-playing-audio” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isPlayingAudio --getWebViewIsPlayingAudio :: (MonadIO m, IsWebView o) => o -> m Bool -- | Get the value of the “is-web-process-responsive” property. -- When overloading is enabled, this is equivalent to -- --
-- get webView #isWebProcessResponsive --getWebViewIsWebProcessResponsive :: (MonadIO m, IsWebView o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “microphone-capture-state” property. This is rarely needed -- directly, but it is used by new. constructWebViewMicrophoneCaptureState :: (IsWebView o, MonadIO m) => MediaCaptureState -> m (GValueConstruct o) -- | Get the value of the “microphone-capture-state” property. -- When overloading is enabled, this is equivalent to -- --
-- get webView #microphoneCaptureState --getWebViewMicrophoneCaptureState :: (MonadIO m, IsWebView o) => o -> m MediaCaptureState -- | Set the value of the “microphone-capture-state” property. -- When overloading is enabled, this is equivalent to -- --
-- set webView [ #microphoneCaptureState := value ] --setWebViewMicrophoneCaptureState :: (MonadIO m, IsWebView o) => o -> MediaCaptureState -> m () -- | Construct a GValueConstruct with valid value for the -- “network-session” property. This is rarely needed directly, -- but it is used by new. constructWebViewNetworkSession :: (IsWebView o, MonadIO m, IsNetworkSession a) => a -> m (GValueConstruct o) -- | Get the value of the “network-session” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #networkSession --getWebViewNetworkSession :: (MonadIO m, IsWebView o) => o -> m NetworkSession -- | Get the value of the “page-id” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #pageId --getWebViewPageId :: (MonadIO m, IsWebView o) => o -> m Word64 -- | Construct a GValueConstruct with valid value for the -- “related-view” property. This is rarely needed directly, but -- it is used by new. constructWebViewRelatedView :: (IsWebView o, MonadIO m, IsWebView a) => a -> m (GValueConstruct o) -- | Construct a GValueConstruct with valid value for the -- “settings” property. This is rarely needed directly, but it -- is used by new. constructWebViewSettings :: (IsWebView o, MonadIO m, IsSettings a) => a -> m (GValueConstruct o) -- | Set the value of the “settings” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #settings := value ] --setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m () -- | Get the value of the “title” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #title --getWebViewTitle :: (MonadIO m, IsWebView o) => o -> m Text -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get webView #uri --getWebViewUri :: (MonadIO m, IsWebView o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “user-content-manager” property. This is rarely needed -- directly, but it is used by new. constructWebViewUserContentManager :: (IsWebView o, MonadIO m, IsUserContentManager a) => a -> m (GValueConstruct o) -- | Get the value of the “user-content-manager” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #userContentManager --getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager -- | Construct a GValueConstruct with valid value for the -- “web-context” property. This is rarely needed directly, but -- it is used by new. constructWebViewWebContext :: (IsWebView o, MonadIO m, IsWebContext a) => a -> m (GValueConstruct o) -- | Get the value of the “web-context” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #webContext --getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext) -- | Construct a GValueConstruct with valid value for the -- “web-extension-mode” property. This is rarely needed -- directly, but it is used by new. constructWebViewWebExtensionMode :: (IsWebView o, MonadIO m) => WebExtensionMode -> m (GValueConstruct o) -- | Get the value of the “web-extension-mode” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #webExtensionMode --getWebViewWebExtensionMode :: (MonadIO m, IsWebView o) => o -> m WebExtensionMode -- | Construct a GValueConstruct with valid value for the -- “website-policies” property. This is rarely needed directly, -- but it is used by new. constructWebViewWebsitePolicies :: (IsWebView o, MonadIO m, IsWebsitePolicies a) => a -> m (GValueConstruct o) -- | Get the value of the “website-policies” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #websitePolicies --getWebViewWebsitePolicies :: (MonadIO m, IsWebView o) => o -> m WebsitePolicies -- | Construct a GValueConstruct with valid value for the -- “zoom-level” property. This is rarely needed directly, but it -- is used by new. constructWebViewZoomLevel :: (IsWebView o, MonadIO m) => Double -> m (GValueConstruct o) -- | Get the value of the “zoom-level” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #zoomLevel --getWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> m Double -- | Set the value of the “zoom-level” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #zoomLevel := value ] --setWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> Double -> m () -- | This signal is emitted when the user is challenged with HTTP -- authentication. To let the application access or supply the -- credentials as well as to allow the client application to either -- cancel the request or perform the authentication, the signal will pass -- an instance of the AuthenticationRequest in the -- request argument. To handle this signal asynchronously -- you should keep a ref of the request and return True. To -- disable HTTP authentication entirely, connect to this signal and -- simply return True. -- -- The default signal handler will run a default authentication dialog -- asynchronously for the user to interact with. -- -- Since: 2.2 type WebViewAuthenticateCallback = -- | /@request@/: a t'GI.WebKit.Objects.AuthenticationRequest.AuthenticationRequest' AuthenticationRequest -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the authenticate signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #authenticate callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewAuthenticateCallback) -> m SignalHandlerId -- | Connect a signal handler for the authenticate signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #authenticate callback --onWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewAuthenticateCallback) -> m SignalHandlerId -- | Emitted when closing a WebView is requested. This occurs when a -- call is made from JavaScript's -- <function>window.close</function> function or after trying -- to close the webView with webViewTryClose. It -- is the owner's responsibility to handle this signal to hide or destroy -- the WebView, if necessary. type WebViewCloseCallback = IO () -- | Connect a signal handler for the close signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #close callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewClose :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewCloseCallback) -> m SignalHandlerId -- | Connect a signal handler for the close signal, to be run before -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- on webView #close callback --onWebViewClose :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewCloseCallback) -> m SignalHandlerId -- | Emitted when a context menu is about to be displayed to give the -- application a chance to customize the proposed menu, prevent the menu -- from being displayed, or build its own context menu. -- <itemizedlist> <listitem><para> To customize the -- proposed menu you can use contextMenuPrepend, -- contextMenuAppend or contextMenuInsert to add new -- ContextMenuItems to contextMenu, -- contextMenuMoveItem to reorder existing items, or -- contextMenuRemove to remove an existing item. The signal -- handler should return False, and the menu represented by -- contextMenu will be shown. -- </para></listitem> <listitem><para> To prevent -- the menu from being displayed you can just connect to this signal and -- return True so that the proposed menu will not be shown. -- </para></listitem> <listitem><para> To build -- your own menu, you can remove all items from the proposed menu with -- contextMenuRemoveAll, add your own items and return -- False so that the menu will be shown. You can also ignore the -- proposed ContextMenu, build your own GtkMenu -- and return True to prevent the proposed menu from being shown. -- </para></listitem> <listitem><para> If you -- just want the default menu to be shown always, simply don't connect to -- this signal because showing the proposed context menu is the default -- behaviour. </para></listitem> </itemizedlist> -- -- If the signal handler returns False the context menu -- represented by contextMenu will be shown, if it return -- True the context menu will not be shown. -- -- The proposed ContextMenu passed in contextMenu -- argument is only valid during the signal emission. type WebViewContextMenuCallback = -- | /@contextMenu@/: the proposed t'GI.WebKit.Objects.ContextMenu.ContextMenu' ContextMenu -> -- | /@hitTestResult@/: a t'GI.WebKit.Objects.HitTestResult.HitTestResult' HitTestResult -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the contextMenu signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #contextMenu callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewContextMenuCallback) -> m SignalHandlerId -- | Connect a signal handler for the contextMenu signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #contextMenu callback --onWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewContextMenuCallback) -> m SignalHandlerId -- | Emitted after WebView::contextMenu signal, if the context menu -- is shown, to notify that the context menu is dismissed. type WebViewContextMenuDismissedCallback = IO () -- | Connect a signal handler for the contextMenuDismissed signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #contextMenuDismissed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewContextMenuDismissedCallback) -> m SignalHandlerId -- | Connect a signal handler for the contextMenuDismissed signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #contextMenuDismissed callback --onWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewContextMenuDismissedCallback) -> m SignalHandlerId -- | Emitted when the creation of a new WebView is requested. If -- this signal is handled the signal handler should return the newly -- created WebView. -- -- The NavigationAction parameter contains information about the -- navigation action that triggered this signal. -- -- The new WebView must be related to webView, see -- WebView:relatedView for more details. -- -- The new WebView should not be displayed to the user until the -- WebView::readyToShow signal is emitted. type WebViewCreateCallback = -- | /@navigationAction@/: a t'GI.WebKit.Structs.NavigationAction.NavigationAction' NavigationAction -> -- | __Returns:__ a newly allocated t'GI.WebKit.Objects.WebView.WebView' widget -- or 'P.Nothing' to propagate the event further. IO Widget -- | Connect a signal handler for the create signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #create callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewCreate :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewCreateCallback) -> m SignalHandlerId -- | Connect a signal handler for the create signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #create callback --onWebViewCreate :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewCreateCallback) -> m SignalHandlerId -- | This signal is emitted when WebKit is requesting the client to decide -- a policy decision, such as whether to navigate to a page, open a new -- window or whether or not to download a resource. The -- NavigationPolicyDecision passed in the decision -- argument is a generic type, but should be casted to a more specific -- type when making the decision. For example: -- --
-- static gboolean
-- decide_policy_cb (WebKitWebView *web_view,
-- WebKitPolicyDecision *decision,
-- WebKitPolicyDecisionType type)
-- {
-- switch (type) {
-- case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: {
-- WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
-- // Make a policy decision here
-- break;
-- }
-- case WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION: {
-- WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
-- // Make a policy decision here
-- break;
-- }
-- case WEBKIT_POLICY_DECISION_TYPE_RESPONSE:
-- WebKitResponsePolicyDecision *response = WEBKIT_RESPONSE_POLICY_DECISION (decision);
-- // Make a policy decision here
-- break;
-- default:
-- // Making no decision results in webkit_policy_decision_use()
-- return FALSE;
-- }
-- return TRUE;
-- }
--
--
-- It is possible to make policy decision asynchronously, by simply
-- calling objectRef on the decision argument and
-- returning True to block the default signal handler. If the last
-- reference is removed on a PolicyDecision and no decision has
-- been made explicitly, policyDecisionUse will be the default
-- policy decision. The default signal handler will simply call
-- policyDecisionUse. Only the first policy decision chosen for a
-- given PolicyDecision will have any affect.
type WebViewDecidePolicyCallback = -- | /@decision@/: the t'GI.WebKit.Objects.PolicyDecision.PolicyDecision' PolicyDecision -> -- | /@decisionType@/: a t'GI.WebKit.Enums.PolicyDecisionType' denoting the type of /@decision@/ PolicyDecisionType -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool
-- | Connect a signal handler for the decidePolicy signal, to be run
-- after the default handler. When overloading is enabled, this is
-- equivalent to
--
-- -- after webView #decidePolicy callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewDecidePolicyCallback) -> m SignalHandlerId -- | Connect a signal handler for the decidePolicy signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #decidePolicy callback --onWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewDecidePolicyCallback) -> m SignalHandlerId -- | Emitted when JavaScript code calls -- <function>element.webkitRequestFullScreen</function>. If -- the signal is not handled the WebView will proceed to full -- screen its top level window. This signal can be used by client code to -- request permission to the user prior doing the full screen transition -- and eventually prepare the top-level window (e.g. hide some widgets -- that would otherwise be part of the full screen window). type WebViewEnterFullscreenCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to continue emission of the event. IO Bool -- | Connect a signal handler for the enterFullscreen signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #enterFullscreen callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewEnterFullscreenCallback) -> m SignalHandlerId -- | Connect a signal handler for the enterFullscreen signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #enterFullscreen callback --onWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewEnterFullscreenCallback) -> m SignalHandlerId -- | This signal is emitted when insecure content has been detected in a -- page loaded through a secure connection. This typically means that a -- external resource from an unstrusted source has been run or displayed, -- resulting in a mix of HTTPS and non-HTTPS content. -- -- You can check the event parameter to know exactly -- which kind of event has been detected (see -- InsecureContentEvent). type WebViewInsecureContentDetectedCallback = -- | /@event@/: the t'GI.WebKit.Enums.InsecureContentEvent' InsecureContentEvent -> IO () -- | Connect a signal handler for the insecureContentDetected -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #insecureContentDetected callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewInsecureContentDetectedCallback) -> m SignalHandlerId -- | Connect a signal handler for the insecureContentDetected -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #insecureContentDetected callback --onWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewInsecureContentDetectedCallback) -> m SignalHandlerId -- | Emitted when the WebView is about to restore its top level -- window out of its full screen state. This signal can be used by client -- code to restore widgets hidden during the -- WebView::enterFullscreen stage for instance. type WebViewLeaveFullscreenCallback = -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to continue emission of the event. IO Bool -- | Connect a signal handler for the leaveFullscreen signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #leaveFullscreen callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLeaveFullscreenCallback) -> m SignalHandlerId -- | Connect a signal handler for the leaveFullscreen signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #leaveFullscreen callback --onWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLeaveFullscreenCallback) -> m SignalHandlerId -- | Emitted when a load operation in webView changes. The -- signal is always emitted with LoadEventStarted when a new load -- request is made and LoadEventFinished when the load finishes -- successfully or due to an error. When the ongoing load operation fails -- WebView::loadFailed signal is emitted before -- WebView::loadChanged is emitted with LoadEventFinished. -- If a redirection is received from the server, this signal is emitted -- with LoadEventRedirected after the initial emission with -- LoadEventStarted and before LoadEventCommitted. When the -- page content starts arriving the signal is emitted with -- LoadEventCommitted event. -- -- You can handle this signal and use a switch to track any ongoing load -- operation. -- --
-- static void web_view_load_changed (WebKitWebView *web_view,
-- WebKitLoadEvent load_event,
-- gpointer user_data)
-- {
-- switch (load_event) {
-- case WEBKIT_LOAD_STARTED:
-- // New load, we have now a provisional URI
-- provisional_uri = webkit_web_view_get_uri (web_view);
-- // Here we could start a spinner or update the
-- // location bar with the provisional URI
-- break;
-- case WEBKIT_LOAD_REDIRECTED:
-- redirected_uri = webkit_web_view_get_uri (web_view);
-- break;
-- case WEBKIT_LOAD_COMMITTED:
-- // The load is being performed. Current URI is
-- // the final one and it won't change unless a new
-- // load is requested or a navigation within the
-- // same page is performed
-- uri = webkit_web_view_get_uri (web_view);
-- break;
-- case WEBKIT_LOAD_FINISHED:
-- // Load finished, we can now stop the spinner
-- break;
-- }
-- }
--
type WebViewLoadChangedCallback = -- | /@loadEvent@/: the t'GI.WebKit.Enums.LoadEvent' LoadEvent -> IO ()
-- | Connect a signal handler for the loadChanged signal, to be run
-- after the default handler. When overloading is enabled, this is
-- equivalent to
--
-- -- after webView #loadChanged callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the loadChanged signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #loadChanged callback --onWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadChangedCallback) -> m SignalHandlerId -- | Emitted when an error occurs during a load operation. If the error -- happened when starting to load data for a page -- loadEvent will be LoadEventStarted. If it -- happened while loading a committed data source -- loadEvent will be LoadEventCommitted. Since a -- load error causes the load operation to finish, the signal -- WebKitWebViewloadChanged will always be emitted with -- LoadEventFinished event right after this one. -- -- By default, if the signal is not handled, a stock error page will be -- displayed. You need to handle the signal if you want to provide your -- own error page. type WebViewLoadFailedCallback = -- | /@loadEvent@/: the t'GI.WebKit.Enums.LoadEvent' of the load operation LoadEvent -> -- | /@failingUri@/: the URI that failed to load Text -> -- | /@error@/: the t'GError' that was triggered GError -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the loadFailed signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #loadFailed callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadFailedCallback) -> m SignalHandlerId -- | Connect a signal handler for the loadFailed signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #loadFailed callback --onWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadFailedCallback) -> m SignalHandlerId -- | Emitted when a TLS error occurs during a load operation. To allow an -- exception for this certificate and the host of -- failingUri use -- webkit_web_context_allow_tls_certificate_for_host(). -- -- To handle this signal asynchronously you should call objectRef -- on certificate and return True. -- -- If False is returned, WebView::loadFailed will be -- emitted. The load will finish regardless of the returned value. -- -- Since: 2.6 type WebViewLoadFailedWithTlsErrorsCallback = -- | /@failingUri@/: the URI that failed to load Text -> -- | /@certificate@/: a t'GI.Gio.Objects.TlsCertificate.TlsCertificate' TlsCertificate -> -- | /@errors@/: a t'GI.Gio.Flags.TlsCertificateFlags' with the verification status of /@certificate@/ [TlsCertificateFlags] -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the loadFailedWithTlsErrors -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #loadFailedWithTlsErrors callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadFailedWithTlsErrorsCallback) -> m SignalHandlerId -- | Connect a signal handler for the loadFailedWithTlsErrors -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #loadFailedWithTlsErrors callback --onWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewLoadFailedWithTlsErrorsCallback) -> m SignalHandlerId -- | This signal is emitted when the mouse cursor moves over an element -- such as a link, image or a media element. To determine what type of -- element the mouse cursor is over, a Hit Test is performed on the -- current mouse coordinates and the result is passed in the -- hitTestResult argument. The modifiers -- argument is a bitmask of ModifierType flags indicating the -- state of modifier keys. The signal is emitted again when the mouse is -- moved out of the current element with a new -- hitTestResult. type WebViewMouseTargetChangedCallback = -- | /@hitTestResult@/: a t'GI.WebKit.Objects.HitTestResult.HitTestResult' HitTestResult -> -- | /@modifiers@/: a bitmask of t'GI.Gdk.Flags.ModifierType' Word32 -> IO () -- | Connect a signal handler for the mouseTargetChanged signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #mouseTargetChanged callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewMouseTargetChangedCallback) -> m SignalHandlerId -- | Connect a signal handler for the mouseTargetChanged signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #mouseTargetChanged callback --onWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewMouseTargetChangedCallback) -> m SignalHandlerId -- | This signal is emitted when WebKit is requesting the client to decide -- about a permission request, such as allowing the browser to switch to -- fullscreen mode, sharing its location or similar operations. -- -- A possible way to use this signal could be through a dialog allowing -- the user decide what to do with the request: -- --
-- static gboolean permission_request_cb (WebKitWebView *web_view,
-- WebKitPermissionRequest *request,
-- GtkWindow *parent_window)
-- {
-- GtkWidget *dialog = gtk_message_dialog_new (parent_window,
-- GTK_DIALOG_MODAL,
-- GTK_MESSAGE_QUESTION,
-- GTK_BUTTONS_YES_NO,
-- "Allow Permission Request?");
-- gtk_widget_show (dialog);
-- gint result = gtk_dialog_run (GTK_DIALOG (dialog));
--
-- switch (result) {
-- case GTK_RESPONSE_YES:
-- webkit_permission_request_allow (request);
-- break;
-- default:
-- webkit_permission_request_deny (request);
-- break;
-- }
-- gtk_widget_destroy (dialog);
--
-- return TRUE;
-- }
--
--
-- It is possible to handle permission requests asynchronously, by simply
-- calling objectRef on the request argument and
-- returning True to block the default signal handler. If the last
-- reference is removed on a PermissionRequest and the request has
-- not been handled, permissionRequestDeny will be the default
-- action.
--
-- If the signal is not handled, the request will be
-- completed automatically by the specific PermissionRequest that
-- could allow or deny it. Check the documentation of classes
-- implementing PermissionRequest interface to know their default
-- action.
type WebViewPermissionRequestCallback = -- | /@request@/: the t'GI.WebKit.Interfaces.PermissionRequest.PermissionRequest' PermissionRequest -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool
-- | Connect a signal handler for the permissionRequest signal, to
-- be run after the default handler. When overloading is enabled,
-- this is equivalent to
--
-- -- after webView #permissionRequest callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewPermissionRequestCallback) -> m SignalHandlerId -- | Connect a signal handler for the permissionRequest signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #permissionRequest callback --onWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewPermissionRequestCallback) -> m SignalHandlerId -- | Emitted when printing is requested on webView, usually -- by a JavaScript call, before the print dialog is shown. This signal -- can be used to set the initial print settings and page setup of -- printOperation to be used as default values in the -- print dialog. You can call printOperationSetPrintSettings and -- printOperationSetPageSetup and then return False to -- propagate the event so that the print dialog is shown. -- -- You can connect to this signal and return True to cancel the -- print operation or implement your own print dialog. type WebViewPrintCallback = -- | /@printOperation@/: the t'GI.WebKit.Objects.PrintOperation.PrintOperation' that will handle the print request PrintOperation -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the print signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #print callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewPrint :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewPrintCallback) -> m SignalHandlerId -- | Connect a signal handler for the print signal, to be run before -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- on webView #print callback --onWebViewPrint :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewPrintCallback) -> m SignalHandlerId -- | This signal allows the User-Agent to respond to permission requests -- for powerful features, as specified by the Permissions W3C -- Specification. You can reply to the query using -- permissionStateQueryFinish. -- -- You can handle the query asynchronously by calling -- permissionStateQueryRef on query and returning -- True. If the last reference of query is removed -- and the query has not been handled, the query result will be set to -- WEBKIT_QUERY_PERMISSION_PROMPT. -- -- Since: 2.40 type WebViewQueryPermissionStateCallback = -- | /@query@/: the t'GI.WebKit.Structs.PermissionStateQuery.PermissionStateQuery' PermissionStateQuery -> -- | __Returns:__ 'P.True' if the message was handled, or 'P.False' otherwise. IO Bool -- | Connect a signal handler for the queryPermissionState signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #queryPermissionState callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewQueryPermissionState :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewQueryPermissionStateCallback) -> m SignalHandlerId -- | Connect a signal handler for the queryPermissionState signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #queryPermissionState callback --onWebViewQueryPermissionState :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewQueryPermissionStateCallback) -> m SignalHandlerId -- | Emitted after WebView::create on the newly created -- WebView when it should be displayed to the user. When this -- signal is emitted all the information about how the window should -- look, including size, position, whether the location, status and -- scrollbars should be displayed, is already set on the -- WindowProperties of webView. See also -- webViewGetWindowProperties. type WebViewReadyToShowCallback = IO () -- | Connect a signal handler for the readyToShow signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #readyToShow callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewReadyToShowCallback) -> m SignalHandlerId -- | Connect a signal handler for the readyToShow signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #readyToShow callback --onWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewReadyToShowCallback) -> m SignalHandlerId -- | Emitted when a new resource is going to be loaded. The -- request parameter contains the URIRequest that -- will be sent to the server. You can monitor the load operation by -- connecting to the different signals of resource. type WebViewResourceLoadStartedCallback = -- | /@resource@/: a t'GI.WebKit.Objects.WebResource.WebResource' WebResource -> -- | /@request@/: a t'GI.WebKit.Objects.URIRequest.URIRequest' URIRequest -> IO () -- | Connect a signal handler for the resourceLoadStarted signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #resourceLoadStarted callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewResourceLoadStartedCallback) -> m SignalHandlerId -- | Connect a signal handler for the resourceLoadStarted signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #resourceLoadStarted callback --onWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewResourceLoadStartedCallback) -> m SignalHandlerId -- | Emitted after WebView::readyToShow on the newly created -- WebView when JavaScript code calls -- <function>window.showModalDialog</function>. The purpose -- of this signal is to allow the client application to prepare the new -- view to behave as modal. Once the signal is emitted a new main loop -- will be run to block user interaction in the parent WebView -- until the new dialog is closed. type WebViewRunAsModalCallback = IO () -- | Connect a signal handler for the runAsModal signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #runAsModal callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunAsModalCallback) -> m SignalHandlerId -- | Connect a signal handler for the runAsModal signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #runAsModal callback --onWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunAsModalCallback) -> m SignalHandlerId -- | This signal is emitted when the user interacts with a <input -- type='color' /> HTML element, requesting from WebKit to show a -- dialog to select a color. To let the application know the details of -- the color chooser, as well as to allow the client application to -- either cancel the request or perform an actual color selection, the -- signal will pass an instance of the ColorChooserRequest in the -- request argument. -- -- It is possible to handle this request asynchronously by increasing the -- reference count of the request. -- -- The default signal handler will asynchronously run a regular -- ColorChooser for the user to interact with. -- -- Since: 2.8 type WebViewRunColorChooserCallback = -- | /@request@/: a t'GI.WebKit.Objects.ColorChooserRequest.ColorChooserRequest' ColorChooserRequest -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the runColorChooser signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #runColorChooser callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunColorChooserCallback) -> m SignalHandlerId -- | Connect a signal handler for the runColorChooser signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #runColorChooser callback --onWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunColorChooserCallback) -> m SignalHandlerId -- | This signal is emitted when the user interacts with a <input -- type='file' /> HTML element, requesting from WebKit to show a -- dialog to select one or more files to be uploaded. To let the -- application know the details of the file chooser, as well as to allow -- the client application to either cancel the request or perform an -- actual selection of files, the signal will pass an instance of the -- FileChooserRequest in the request argument. -- -- The default signal handler will asynchronously run a regular -- FileChooserDialog for the user to interact with. type WebViewRunFileChooserCallback = -- | /@request@/: a t'GI.WebKit.Objects.FileChooserRequest.FileChooserRequest' FileChooserRequest -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the runFileChooser signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #runFileChooser callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunFileChooserCallback) -> m SignalHandlerId -- | Connect a signal handler for the runFileChooser signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #runFileChooser callback --onWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewRunFileChooserCallback) -> m SignalHandlerId -- | Emitted when JavaScript code calls -- <function>window.alert</function>, -- <function>window.confirm</function> or -- <function>window.prompt</function>, or when -- <function>onbeforeunload</function> event is fired. The -- dialog parameter should be used to build the dialog. -- If the signal is not handled a different dialog will be built and -- shown depending on the dialog type: <itemizedlist> -- <listitem><para> ScriptDialogTypeAlert: message -- dialog with a single Close button. </para></listitem> -- <listitem><para> ScriptDialogTypeConfirm: message -- dialog with OK and Cancel buttons. </para></listitem> -- <listitem><para> ScriptDialogTypePrompt: message -- dialog with OK and Cancel buttons and a text entry with the default -- text. </para></listitem> <listitem><para> -- ScriptDialogTypeBeforeUnloadConfirm: message dialog with Stay -- and Leave buttons. </para></listitem> -- </itemizedlist> -- -- It is possible to handle the script dialog request asynchronously, by -- simply caling scriptDialogRef on the dialog -- argument and calling scriptDialogClose when done. If the last -- reference is removed on a ScriptDialog and the dialog has not -- been closed, scriptDialogClose will be called. type WebViewScriptDialogCallback = -- | /@dialog@/: the t'GI.WebKit.Structs.ScriptDialog.ScriptDialog' to show ScriptDialog -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the scriptDialog signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #scriptDialog callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewScriptDialogCallback) -> m SignalHandlerId -- | Connect a signal handler for the scriptDialog signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #scriptDialog callback --onWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewScriptDialogCallback) -> m SignalHandlerId -- | This signal is emitted when a notification should be presented to the -- user. The notification is kept alive until either: 1) -- the web page cancels it or 2) a navigation happens. -- -- The default handler will emit a notification using libnotify, if built -- with support for it. -- -- Since: 2.8 type WebViewShowNotificationCallback = -- | /@notification@/: a t'GI.WebKit.Objects.Notification.Notification' Notification -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked. 'P.False' otherwise. IO Bool -- | Connect a signal handler for the showNotification signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #showNotification callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewShowNotificationCallback) -> m SignalHandlerId -- | Connect a signal handler for the showNotification signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #showNotification callback --onWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewShowNotificationCallback) -> m SignalHandlerId -- | This signal is emitted when a select element in -- webView needs to display a dropdown menu. This signal -- can be used to show a custom menu, using menu to get -- the details of all items that should be displayed. The area of the -- element in the WebView is given as rectangle -- parameter, it can be used to position the menu. To handle this signal -- asynchronously you should keep a ref of the menu. -- -- The default signal handler will pop up a GtkMenu. -- -- Since: 2.18 type WebViewShowOptionMenuCallback = -- | /@menu@/: the t'GI.WebKit.Objects.OptionMenu.OptionMenu' OptionMenu -> -- | /@rectangle@/: the option element area Rectangle -> -- | __Returns:__ 'P.True' to stop other handlers from being invoked for the event. -- 'P.False' to propagate the event further. IO Bool -- | Connect a signal handler for the showOptionMenu signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #showOptionMenu callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewShowOptionMenu :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewShowOptionMenuCallback) -> m SignalHandlerId -- | Connect a signal handler for the showOptionMenu signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #showOptionMenu callback --onWebViewShowOptionMenu :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewShowOptionMenuCallback) -> m SignalHandlerId -- | This signal is emitted when a form is about to be submitted. The -- request argument passed contains information about the -- text fields of the form. This is typically used to store login -- information that can be used later to pre-fill the form. The form will -- not be submitted until formSubmissionRequestSubmit is called. -- -- It is possible to handle the form submission request asynchronously, -- by simply calling objectRef on the request -- argument and calling formSubmissionRequestSubmit when done to -- continue with the form submission. If the last reference is removed on -- a FormSubmissionRequest and the form has not been submitted, -- formSubmissionRequestSubmit will be called. type WebViewSubmitFormCallback = -- | /@request@/: a t'GI.WebKit.Objects.FormSubmissionRequest.FormSubmissionRequest' FormSubmissionRequest -> IO () -- | Connect a signal handler for the submitForm signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #submitForm callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewSubmitFormCallback) -> m SignalHandlerId -- | Connect a signal handler for the submitForm signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #submitForm callback --onWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewSubmitFormCallback) -> m SignalHandlerId -- | This signal is emitted when a UserMessage is received from the -- WebKitWebPage corresponding to -- webView. You can reply to the message using -- userMessageSendReply. -- -- You can handle the user message asynchronously by calling -- objectRef on message and returning True. -- If the last reference of message is removed and the -- message has not been replied to, the operation in the -- WebKitWebPage will finish with error -- UserMessageErrorMessage. -- -- Since: 2.28 type WebViewUserMessageReceivedCallback = -- | /@message@/: the t'GI.WebKit.Objects.UserMessage.UserMessage' received UserMessage -> -- | __Returns:__ 'P.True' if the message was handled, or 'P.False' otherwise. IO Bool -- | Connect a signal handler for the userMessageReceived signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #userMessageReceived callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewUserMessageReceived :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewUserMessageReceivedCallback) -> m SignalHandlerId -- | Connect a signal handler for the userMessageReceived signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #userMessageReceived callback --onWebViewUserMessageReceived :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewUserMessageReceivedCallback) -> m SignalHandlerId -- | This signal is emitted when the web process terminates abnormally due -- to reason. -- -- Since: 2.20 type WebViewWebProcessTerminatedCallback = -- | /@reason@/: the a t'GI.WebKit.Enums.WebProcessTerminationReason' WebProcessTerminationReason -> IO () -- | Connect a signal handler for the webProcessTerminated signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #webProcessTerminated callback ---- -- By default the object invoking the signal is not passed to the -- callback. If you need to access it, you can use the implit -- ?self parameter. Note that this requires activating the -- ImplicitParams GHC extension. afterWebViewWebProcessTerminated :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewWebProcessTerminatedCallback) -> m SignalHandlerId -- | Connect a signal handler for the webProcessTerminated signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #webProcessTerminated callback --onWebViewWebProcessTerminated :: (IsWebView a, MonadIO m) => a -> ((?self :: a) => WebViewWebProcessTerminatedCallback) -> m SignalHandlerId instance GHC.Classes.Eq GI.WebKit.Objects.WebView.WebView instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebView.WebView o) => GI.WebKit.Objects.WebView.IsWebView o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebView.WebView instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebView.WebView instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebView.WebView instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebView.WebView instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebView.WebView) -- | Data stored locally by a web site. -- -- WebKitWebsiteData represents data stored in the client by a particular -- website. A website is normally a set of URLs grouped by domain name. -- You can get the website name, which is usually the domain, with -- websiteDataGetName. Documents loaded from the file system, like -- file:// URIs, are all grouped in the same WebKitWebsiteData with the -- name "Local files". -- -- A website can store different types of data in the client side. -- WebsiteDataTypes is an enum containing all the possible data -- types; use websiteDataGetTypes to get the bitmask of data -- types. It's also possible to know the size of the data stored for some -- of the WebsiteDataTypes by using websiteDataGetSize. -- -- A list of WebKitWebsiteData can be retrieved with -- websiteDataManagerFetch. See WebsiteDataManager for more -- information. -- -- Since: 2.16 module GI.WebKit.Structs.WebsiteData -- | Memory-managed wrapper type. newtype WebsiteData WebsiteData :: ManagedPtr WebsiteData -> WebsiteData -- | Gets the name of WebsiteData. -- -- This is the website name, normally represented by a domain or host -- name. All local documents are grouped in the same WebsiteData -- using the name "Local files". -- -- Since: 2.16 websiteDataGetName :: (HasCallStack, MonadIO m) => WebsiteData -> m Text -- | Gets the size of the data of types types in a -- WebsiteData. -- -- Note that currently the data size is only known for -- WebsiteDataTypesDiskCache data type so for all other types 0 -- will be returned. -- -- Since: 2.16 websiteDataGetSize :: (HasCallStack, MonadIO m) => WebsiteData -> [WebsiteDataTypes] -> m Word64 -- | Gets the types of data stored in the client for a WebsiteData. -- -- These are the types actually present, not the types queried with -- websiteDataManagerFetch. -- -- Since: 2.16 websiteDataGetTypes :: (HasCallStack, MonadIO m) => WebsiteData -> m [WebsiteDataTypes] -- | Atomically increments the reference count of -- websiteData by one. -- -- This function is MT-safe and may be called from any thread. -- -- Since: 2.16 websiteDataRef :: (HasCallStack, MonadIO m) => WebsiteData -> m WebsiteData -- | Atomically decrements the reference count of -- websiteData by one. -- -- If the reference count drops to 0, all memory allocated by -- WebsiteData is released. This function is MT-safe and may be -- called from any thread. -- -- Since: 2.16 websiteDataUnref :: (HasCallStack, MonadIO m) => WebsiteData -> m () instance GHC.Classes.Eq GI.WebKit.Structs.WebsiteData.WebsiteData instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Structs.WebsiteData.WebsiteData instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Structs.WebsiteData.WebsiteData instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Structs.WebsiteData.WebsiteData instance Data.GI.Base.BasicTypes.GBoxed GI.WebKit.Structs.WebsiteData.WebsiteData instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Structs.WebsiteData.WebsiteData) module GI.WebKit.Structs -- | Manages data stored locally by web sites. -- -- You can use WebKitWebsiteDataManager to configure the local -- directories where website data will be stored. Use -- WebsiteDataManager:baseDataDirectory and -- WebsiteDataManager:baseCacheDirectory set a common base -- directory for all website data and caches. The newly created -- WebKitWebsiteDataManager must be passed as a construct property to a -- WebContext; you can use -- webkit_web_context_new_with_website_data_manager() to -- create a new WebContext with a WebKitWebsiteDataManager. If you -- don't want to set any specific configuration, you don't need to create -- a WebKitWebsiteDataManager: the WebContext will create a -- WebKitWebsiteDataManager with the default configuration. To get the -- WebKitWebsiteDataManager of a WebContext, you can use -- webkit_web_context_get_website_data_manager(). -- -- A WebKitWebsiteDataManager can also be ephemeral, in which case all -- the directory configuration is not needed because website data will -- never persist. You can create an ephemeral WebKitWebsiteDataManager -- with webkit_website_data_manager_new_ephemeral() and -- pass the ephemeral WebKitWebsiteDataManager to a WebContext, or -- simply use webkit_web_context_new_ephemeral(). -- -- WebKitWebsiteDataManager can also be used to fetch website data, -- remove data stored by particular websites, or clear data for all -- websites modified since a given period of time. -- -- Since: 2.10 module GI.WebKit.Objects.WebsiteDataManager -- | Memory-managed wrapper type. newtype WebsiteDataManager WebsiteDataManager :: ManagedPtr WebsiteDataManager -> WebsiteDataManager -- | Type class for types which can be safely cast to -- WebsiteDataManager, for instance with -- toWebsiteDataManager. class (GObject o, IsDescendantOf WebsiteDataManager o) => IsWebsiteDataManager o -- | Cast to WebsiteDataManager, for types for which this is known -- to be safe. For general casts, use castTo. toWebsiteDataManager :: (MonadIO m, IsWebsiteDataManager o) => o -> m WebsiteDataManager -- | Asynchronously clear the website data of the given -- types modified in the past timespan. -- -- If timespan is 0, all website data will be removed. -- -- When the operation is finished, callback will be -- called. You can then call websiteDataManagerClearFinish to get -- the result of the operation. -- -- Due to implementation limitations, this function does not currently -- delete any stored cookies if timespan is nonzero. This -- behavior may change in the future. -- -- Since: 2.16 websiteDataManagerClear :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Int64 -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerClear -- -- Since: 2.16 websiteDataManagerClearFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m () -- | Asynchronously get the list of WebsiteData for the given -- types. -- -- When the operation is finished, callback will be -- called. You can then call websiteDataManagerFetchFinish to get -- the result of the operation. -- -- Since: 2.16 websiteDataManagerFetch :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerFetch. -- -- Since: 2.16 websiteDataManagerFetchFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m [WebsiteData] -- | Get the WebsiteDataManager:baseCacheDirectory property. -- -- Since: 2.10 websiteDataManagerGetBaseCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the WebsiteDataManager:baseDataDirectory property. -- -- Since: 2.10 websiteDataManagerGetBaseDataDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the FaviconDatabase of manager. -- -- Since: 2.40 websiteDataManagerGetFaviconDatabase :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe FaviconDatabase) -- | Get whether website icons are enabled. -- -- Since: 2.40 websiteDataManagerGetFaviconsEnabled :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m Bool -- | Asynchronously get the list of ITPThirdParty seen for -- manager. -- -- Every ITPThirdParty contains the list of ITPFirstParty -- under which it has been seen. -- -- When the operation is finished, callback will be -- called. You can then call websiteDataManagerGetItpSummaryFinish -- to get the result of the operation. -- -- Since: 2.30 websiteDataManagerGetItpSummary :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerGetItpSummary. -- -- Since: 2.30 websiteDataManagerGetItpSummaryFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m [ITPThirdParty] -- | Get whether a WebsiteDataManager is ephemeral. -- -- See WebsiteDataManager:isEphemeral for more details. -- -- Since: 2.16 websiteDataManagerIsEphemeral :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m Bool -- | Asynchronously removes the website data in the given -- websiteData list. -- -- Asynchronously removes the website data of the given -- types for websites in the given -- websiteData list. Use websiteDataManagerClear -- if you want to remove the website data for all sites. -- -- When the operation is finished, callback will be -- called. You can then call websiteDataManagerRemoveFinish to get -- the result of the operation. -- -- Since: 2.16 websiteDataManagerRemove :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> [WebsiteData] -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerRemove. -- -- Since: 2.16 websiteDataManagerRemoveFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m () -- | Set whether website icons are enabled. Website icons are disabled by -- default. When website icons are disabled, the FaviconDatabase -- of manager is closed and its reference removed, so -- websiteDataManagerGetFaviconDatabase will return -- Nothing. If website icons are enabled again, a new -- FaviconDatabase will be created. -- -- Since: 2.40 websiteDataManagerSetFaviconsEnabled :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “base-cache-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerBaseCacheDirectory :: (IsWebsiteDataManager o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “base-cache-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #baseCacheDirectory --getWebsiteDataManagerBaseCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “base-data-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerBaseDataDirectory :: (IsWebsiteDataManager o, MonadIO m) => Text -> m (GValueConstruct o) -- | Get the value of the “base-data-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #baseDataDirectory --getWebsiteDataManagerBaseDataDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “is-ephemeral” property. This is rarely needed directly, but -- it is used by new. constructWebsiteDataManagerIsEphemeral :: (IsWebsiteDataManager o, MonadIO m) => Bool -> m (GValueConstruct o) -- | Get the value of the “is-ephemeral” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #isEphemeral --getWebsiteDataManagerIsEphemeral :: (MonadIO m, IsWebsiteDataManager o) => o -> m Bool instance GHC.Classes.Eq GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager o) => GI.WebKit.Objects.WebsiteDataManager.IsWebsiteDataManager o instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager instance Data.GI.Base.BasicTypes.TypedObject GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager instance Data.GI.Base.BasicTypes.GObject GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager instance Data.GI.Base.GValue.IsGValue (GHC.Maybe.Maybe GI.WebKit.Objects.WebsiteDataManager.WebsiteDataManager) module GI.WebKit.Objects module GI.WebKit