| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.WebKit2.Enums
Contents
- Enumerations
- AuthenticationScheme
- AutomationBrowsingContextPresentation
- AutoplayPolicy
- CacheModel
- ContextMenuAction
- CookieAcceptPolicy
- CookiePersistentStorage
- CredentialPersistence
- DownloadError
- FaviconDatabaseError
- FeatureStatus
- HardwareAccelerationPolicy
- InputPurpose
- InsecureContentEvent
- JavascriptError
- LoadEvent
- MediaCaptureState
- NavigationType
- NetworkError
- NetworkProxyMode
- PermissionState
- PluginError
- PolicyDecisionType
- PolicyError
- PrintError
- PrintOperationResponse
- ProcessModel
- SaveMode
- ScriptDialogType
- SnapshotError
- SnapshotRegion
- TLSErrorsPolicy
- UserContentFilterError
- UserContentInjectedFrames
- UserMessageError
- UserScriptInjectionTime
- UserStyleLevel
- WebExtensionMode
- WebProcessTerminationReason
Description
Synopsis
- data AuthenticationScheme
- = AuthenticationSchemeDefault
- | AuthenticationSchemeHttpBasic
- | AuthenticationSchemeHttpDigest
- | AuthenticationSchemeHtmlForm
- | AuthenticationSchemeNtlm
- | AuthenticationSchemeNegotiate
- | AuthenticationSchemeClientCertificateRequested
- | AuthenticationSchemeServerTrustEvaluationRequested
- | AuthenticationSchemeClientCertificatePinRequested
- | AuthenticationSchemeUnknown
- | AnotherAuthenticationScheme Int
- data AutomationBrowsingContextPresentation
- data AutoplayPolicy
- data CacheModel
- data ContextMenuAction
- = ContextMenuActionNoAction
- | ContextMenuActionOpenLink
- | ContextMenuActionOpenLinkInNewWindow
- | ContextMenuActionDownloadLinkToDisk
- | ContextMenuActionCopyLinkToClipboard
- | ContextMenuActionOpenImageInNewWindow
- | ContextMenuActionDownloadImageToDisk
- | ContextMenuActionCopyImageToClipboard
- | ContextMenuActionCopyImageUrlToClipboard
- | ContextMenuActionOpenFrameInNewWindow
- | ContextMenuActionGoBack
- | ContextMenuActionGoForward
- | ContextMenuActionStop
- | ContextMenuActionReload
- | ContextMenuActionCopy
- | ContextMenuActionCut
- | ContextMenuActionPaste
- | ContextMenuActionDelete
- | ContextMenuActionSelectAll
- | ContextMenuActionInputMethods
- | ContextMenuActionUnicode
- | ContextMenuActionSpellingGuess
- | ContextMenuActionNoGuessesFound
- | ContextMenuActionIgnoreSpelling
- | ContextMenuActionLearnSpelling
- | ContextMenuActionIgnoreGrammar
- | ContextMenuActionFontMenu
- | ContextMenuActionBold
- | ContextMenuActionItalic
- | ContextMenuActionUnderline
- | ContextMenuActionOutline
- | ContextMenuActionInspectElement
- | ContextMenuActionOpenVideoInNewWindow
- | ContextMenuActionOpenAudioInNewWindow
- | ContextMenuActionCopyVideoLinkToClipboard
- | ContextMenuActionCopyAudioLinkToClipboard
- | ContextMenuActionToggleMediaControls
- | ContextMenuActionToggleMediaLoop
- | ContextMenuActionEnterVideoFullscreen
- | ContextMenuActionMediaPlay
- | ContextMenuActionMediaPause
- | ContextMenuActionMediaMute
- | ContextMenuActionDownloadVideoToDisk
- | ContextMenuActionDownloadAudioToDisk
- | ContextMenuActionInsertEmoji
- | ContextMenuActionPasteAsPlainText
- | ContextMenuActionCustom
- | AnotherContextMenuAction Int
- data CookieAcceptPolicy
- data CookiePersistentStorage
- data CredentialPersistence
- data DownloadError
- catchDownloadError :: IO a -> (DownloadError -> GErrorMessage -> IO a) -> IO a
- handleDownloadError :: (DownloadError -> GErrorMessage -> IO a) -> IO a -> IO a
- data FaviconDatabaseError
- catchFaviconDatabaseError :: IO a -> (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a
- handleFaviconDatabaseError :: (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -> IO a
- data FeatureStatus
- data HardwareAccelerationPolicy
- data InputPurpose
- data InsecureContentEvent
- data JavascriptError
- catchJavascriptError :: IO a -> (JavascriptError -> GErrorMessage -> IO a) -> IO a
- handleJavascriptError :: (JavascriptError -> GErrorMessage -> IO a) -> IO a -> IO a
- data LoadEvent
- data MediaCaptureState
- data NavigationType
- data NetworkError
- catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a
- handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a
- data NetworkProxyMode
- data PermissionState
- data PluginError
- catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a
- handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a
- data PolicyDecisionType
- data PolicyError
- catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a
- handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a
- data PrintError
- catchPrintError :: IO a -> (PrintError -> GErrorMessage -> IO a) -> IO a
- handlePrintError :: (PrintError -> GErrorMessage -> IO a) -> IO a -> IO a
- data PrintOperationResponse
- data ProcessModel
- data SaveMode
- data ScriptDialogType
- data SnapshotError
- catchSnapshotError :: IO a -> (SnapshotError -> GErrorMessage -> IO a) -> IO a
- handleSnapshotError :: (SnapshotError -> GErrorMessage -> IO a) -> IO a -> IO a
- data SnapshotRegion
- data TLSErrorsPolicy
- data UserContentFilterError
- catchUserContentFilterError :: IO a -> (UserContentFilterError -> GErrorMessage -> IO a) -> IO a
- handleUserContentFilterError :: (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -> IO a
- data UserContentInjectedFrames
- data UserMessageError
- catchUserMessageError :: IO a -> (UserMessageError -> GErrorMessage -> IO a) -> IO a
- handleUserMessageError :: (UserMessageError -> GErrorMessage -> IO a) -> IO a -> IO a
- data UserScriptInjectionTime
- data UserStyleLevel
- data WebExtensionMode
- data WebProcessTerminationReason
Enumerations
AuthenticationScheme
data AuthenticationScheme Source #
Enum values representing the authentication scheme.
Since: 2.2
Constructors
| AuthenticationSchemeDefault | The default authentication scheme of WebKit. |
| AuthenticationSchemeHttpBasic | Basic authentication scheme as defined in RFC 2617. |
| AuthenticationSchemeHttpDigest | Digest authentication scheme as defined in RFC 2617. |
| AuthenticationSchemeHtmlForm | HTML Form authentication. |
| AuthenticationSchemeNtlm | NTLM Microsoft proprietary authentication scheme. |
| AuthenticationSchemeNegotiate | Negotiate (or SPNEGO) authentication scheme as defined in RFC 4559. |
| AuthenticationSchemeClientCertificateRequested | Client Certificate Authentication (see RFC 2246). |
| AuthenticationSchemeServerTrustEvaluationRequested | Server Trust Authentication. |
| AuthenticationSchemeClientCertificatePinRequested | Client certificate PIN required for use. Since: 2.34 |
| AuthenticationSchemeUnknown | Authentication scheme unknown. |
| AnotherAuthenticationScheme Int | Catch-all for unknown values |
Instances
AutomationBrowsingContextPresentation
data AutomationBrowsingContextPresentation Source #
Enum values used for determining the automation browsing context presentation.
Since: 2.28
Constructors
| AutomationBrowsingContextPresentationWindow | a window |
| AutomationBrowsingContextPresentationTab | a tab |
| AnotherAutomationBrowsingContextPresentation Int | Catch-all for unknown values |
Instances
AutoplayPolicy
data AutoplayPolicy Source #
Enum values used to specify autoplay policies.
Since: 2.30
Constructors
| AutoplayPolicyAllow | Do not restrict autoplay. |
| AutoplayPolicyAllowWithoutSound | Allow videos to autoplay if they have no audio track, or if their audio track is muted. |
| AutoplayPolicyDeny | Never allow autoplay. |
| AnotherAutoplayPolicy Int | Catch-all for unknown values |
Instances
CacheModel
data CacheModel Source #
Enum values used for determining the WebContext cache model.
Constructors
| CacheModelDocumentViewer | 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. |
| CacheModelWebBrowser | Improve document load speed substantially by caching a very large number of resources and previously viewed content. |
| CacheModelDocumentBrowser | 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. |
| AnotherCacheModel Int | Catch-all for unknown values |
Instances
ContextMenuAction
data ContextMenuAction Source #
Enum values used to denote the stock actions for
ContextMenuItems
Constructors
| ContextMenuActionNoAction | No action, used by separator menu items. |
| ContextMenuActionOpenLink | Open current link. |
| ContextMenuActionOpenLinkInNewWindow | Open current link in a new window. |
| ContextMenuActionDownloadLinkToDisk | Download link destination. |
| ContextMenuActionCopyLinkToClipboard | Copy link location to the clipboard. |
| ContextMenuActionOpenImageInNewWindow | Open current image in a new window. |
| ContextMenuActionDownloadImageToDisk | Download current image. |
| ContextMenuActionCopyImageToClipboard | Copy current image to the clipboard. |
| ContextMenuActionCopyImageUrlToClipboard | Copy current image location to the clipboard. |
| ContextMenuActionOpenFrameInNewWindow | Open current frame in a new window. |
| ContextMenuActionGoBack | Load the previous history item. |
| ContextMenuActionGoForward | Load the next history item. |
| ContextMenuActionStop | Stop any ongoing loading operation. |
| ContextMenuActionReload | Reload the contents of current view. |
| ContextMenuActionCopy | Copy current selection the clipboard. |
| ContextMenuActionCut | Cut current selection to the clipboard. |
| ContextMenuActionPaste | Paste clipboard contents. |
| ContextMenuActionDelete | Delete current selection. |
| ContextMenuActionSelectAll | Select all text. |
| ContextMenuActionInputMethods | Input methods menu. |
| ContextMenuActionUnicode | Unicode menu. |
| ContextMenuActionSpellingGuess | A proposed replacement for a misspelled word. |
| ContextMenuActionNoGuessesFound | An indicator that spellchecking found no proposed replacements. |
| ContextMenuActionIgnoreSpelling | Causes the spellchecker to ignore the word for this session. |
| ContextMenuActionLearnSpelling | Causes the spellchecker to add the word to the dictionary. |
| ContextMenuActionIgnoreGrammar | Ignore grammar. |
| ContextMenuActionFontMenu | Font options menu. |
| ContextMenuActionBold | Bold. |
| ContextMenuActionItalic | Italic. |
| ContextMenuActionUnderline | Underline. |
| ContextMenuActionOutline | Outline. |
| ContextMenuActionInspectElement | Open current element in the inspector. |
| ContextMenuActionOpenVideoInNewWindow | Open current video element in a new window. |
| ContextMenuActionOpenAudioInNewWindow | Open current audio element in a new window. |
| ContextMenuActionCopyVideoLinkToClipboard | Copy video link location in to the clipboard. |
| ContextMenuActionCopyAudioLinkToClipboard | Copy audio link location in to the clipboard. |
| ContextMenuActionToggleMediaControls | Enable or disable media controls. |
| ContextMenuActionToggleMediaLoop | Enable or disable media loop. |
| ContextMenuActionEnterVideoFullscreen | Show current video element in fullscreen mode. |
| ContextMenuActionMediaPlay | Play current media element. |
| ContextMenuActionMediaPause | Pause current media element. |
| ContextMenuActionMediaMute | Mute current media element. |
| ContextMenuActionDownloadVideoToDisk | Download video to disk. Since 2.2 |
| ContextMenuActionDownloadAudioToDisk | Download audio to disk. Since 2.2 |
| ContextMenuActionInsertEmoji | Insert an emoji. Since 2.26 |
| ContextMenuActionPasteAsPlainText | Paste clipboard contents as plain text. Since 2.30 |
| ContextMenuActionCustom | Custom action defined by applications. |
| AnotherContextMenuAction Int | Catch-all for unknown values |
Instances
CookieAcceptPolicy
data CookieAcceptPolicy Source #
Enum values used to denote the cookie acceptance policies.
Constructors
| CookieAcceptPolicyAlways | Accept all cookies unconditionally. |
| CookieAcceptPolicyNever | Reject all cookies unconditionally. |
| CookieAcceptPolicyNoThirdParty | Accept only cookies set by the main document loaded. |
| AnotherCookieAcceptPolicy Int | Catch-all for unknown values |
Instances
CookiePersistentStorage
data CookiePersistentStorage Source #
Enum values used to denote the cookie persistent storage types.
Constructors
| CookiePersistentStorageText | Cookies are stored in a text file in the Mozilla "cookies.txt" format. |
| CookiePersistentStorageSqlite | Cookies are stored in a SQLite file in the current Mozilla format. |
| AnotherCookiePersistentStorage Int | Catch-all for unknown values |
Instances
CredentialPersistence
data CredentialPersistence Source #
Enum values representing the duration for which a credential persists.
Since: 2.2
Constructors
| CredentialPersistenceNone | Credential does not persist |
| CredentialPersistenceForSession | Credential persists for session only |
| CredentialPersistencePermanent | Credential persists permanently |
| AnotherCredentialPersistence Int | Catch-all for unknown values |
Instances
DownloadError
data DownloadError Source #
Enum values used to denote the various download errors.
Constructors
| DownloadErrorNetwork | Download failure due to network error |
| DownloadErrorCancelledByUser | Download was cancelled by user |
| DownloadErrorDestination | Download failure due to destination error |
| AnotherDownloadError Int | Catch-all for unknown values |
Instances
catchDownloadError :: IO a -> (DownloadError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type DownloadError. This is a specialized version of catchGErrorJustDomain.
handleDownloadError :: (DownloadError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type DownloadError. This is a specialized version of handleGErrorJustDomain.
FaviconDatabaseError
data FaviconDatabaseError Source #
Enum values used to denote the various errors related to the FaviconDatabase.
Constructors
| FaviconDatabaseErrorNotInitialized | The |
| FaviconDatabaseErrorFaviconNotFound | There is not an icon available for the requested URL |
| FaviconDatabaseErrorFaviconUnknown | There might be an icon for the requested URL, but its data is unknown at the moment |
| AnotherFaviconDatabaseError Int | Catch-all for unknown values |
Instances
catchFaviconDatabaseError :: IO a -> (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type FaviconDatabaseError. This is a specialized version of catchGErrorJustDomain.
handleFaviconDatabaseError :: (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type FaviconDatabaseError. This is a specialized version of handleGErrorJustDomain.
FeatureStatus
data FeatureStatus Source #
Describes the status of a [structwebKitFeature].
The status for a given feature can be obtained with
featureGetStatus.
Since: 2.42
Constructors
| FeatureStatusEmbedder | Feature that adjust behaviour for specific application needs. The feature is not part of a Web platform feature, not a mature feature intended to be always on. |
| FeatureStatusUnstable | Feature in development. The feature may be unfinished, and there are no guarantees about its safety and stability. |
| FeatureStatusInternal | Feature for debugging the WebKit engine. The feature is not generally useful for user or web developers, and always disabled by default. |
| FeatureStatusDeveloper | Feature for web developers. The feature is not generally useful for end users, and always disabled by default. |
| FeatureStatusTestable | Feature in active development and complete enough for testing. The feature may not be yet ready to ship and is disabled by default. |
| FeatureStatusPreview | Feature ready to be tested by users. The feature is disabled by default, but may be enabled by applications automatically e.g. in their “technology preview” or “beta” versions. |
| FeatureStatusStable | Feature ready for general use. The feature is enabled by default, but it may still be toggled to support debugging and testing. |
| FeatureStatusMature | Feature in general use. The feature is always enabled and in general there should be no user-facing interface to toggle it. |
| AnotherFeatureStatus Int | Catch-all for unknown values |
Instances
HardwareAccelerationPolicy
data HardwareAccelerationPolicy Source #
Enum values used for determining the hardware acceleration policy.
Since: 2.16
Constructors
| HardwareAccelerationPolicyOnDemand | Hardware acceleration is enabled/disabled as request by web contents. |
| HardwareAccelerationPolicyAlways | Hardware acceleration is always enabled, even for websites not requesting it. |
| HardwareAccelerationPolicyNever | Hardware acceleration is always disabled, even for websites requesting it. |
| AnotherHardwareAccelerationPolicy Int | Catch-all for unknown values |
Instances
InputPurpose
data InputPurpose Source #
Enum values used to describe the primary purpose of the active editable element.
Since: 2.28
Constructors
| InputPurposeFreeForm | Editable element expects any characters |
| InputPurposeDigits | Editable element expects digits |
| InputPurposeNumber | Editable element expects a number |
| InputPurposePhone | Editable element expects a telephone |
| InputPurposeUrl | Editable element expects a URL |
| InputPurposeEmail | Editable element expects an email |
| InputPurposePassword | Editable element expects a password |
| AnotherInputPurpose Int | Catch-all for unknown values |
Instances
InsecureContentEvent
data InsecureContentEvent Source #
Enum values used to denote the different events which can trigger the detection of insecure content.
Constructors
| InsecureContentEventRun | Insecure content has been detected by trying to execute any kind of logic (e.g. a script) from an untrusted source. |
| InsecureContentEventDisplayed | Insecure content has been detected by trying to display any kind of resource (e.g. an image) from an untrusted source. |
| AnotherInsecureContentEvent Int | Catch-all for unknown values |
Instances
JavascriptError
data JavascriptError Source #
Enum values used to denote errors happening when executing JavaScript
Constructors
| JavascriptErrorScriptFailed | An exception was raised in JavaScript execution |
| JavascriptErrorInvalidParameter | An unsupported parameter has been used to call and async function from API. Since 2.40 |
| JavascriptErrorInvalidResult | The result of JavaScript execution could not be returned. Since 2.40 |
| AnotherJavascriptError Int | Catch-all for unknown values |
Instances
catchJavascriptError :: IO a -> (JavascriptError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type JavascriptError. This is a specialized version of catchGErrorJustDomain.
handleJavascriptError :: (JavascriptError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type JavascriptError. This is a specialized version of handleGErrorJustDomain.
LoadEvent
Enum values used to denote the different events that happen during a
WebView load operation.
Constructors
| LoadEventStarted | 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. |
| LoadEventRedirected | A provisional data source received a server redirect. |
| LoadEventCommitted | The content started arriving for a page load. The necessary transport requirements are established, and the load is being performed. |
| LoadEventFinished | Load completed. All resources are done loading or there was an error during the load operation. |
| AnotherLoadEvent Int | Catch-all for unknown values |
Instances
| Enum LoadEvent Source # | |
Defined in GI.WebKit2.Enums Methods succ :: LoadEvent -> LoadEvent # pred :: LoadEvent -> LoadEvent # fromEnum :: LoadEvent -> Int # enumFrom :: LoadEvent -> [LoadEvent] # enumFromThen :: LoadEvent -> LoadEvent -> [LoadEvent] # enumFromTo :: LoadEvent -> LoadEvent -> [LoadEvent] # enumFromThenTo :: LoadEvent -> LoadEvent -> LoadEvent -> [LoadEvent] # | |
| Show LoadEvent Source # | |
| Eq LoadEvent Source # | |
| Ord LoadEvent Source # | |
| BoxedEnum LoadEvent Source # | |
Defined in GI.WebKit2.Enums | |
| TypedObject LoadEvent Source # | |
Defined in GI.WebKit2.Enums | |
| HasParentTypes LoadEvent Source # | |
Defined in GI.WebKit2.Enums | |
| type ParentTypes LoadEvent Source # | |
Defined in GI.WebKit2.Enums | |
MediaCaptureState
data MediaCaptureState Source #
Enum values used to specify the capture state of a media device.
Since: 2.34
Constructors
| MediaCaptureStateNone | Media capture is disabled. |
| MediaCaptureStateActive | Media capture is active. |
| MediaCaptureStateMuted | Media capture is muted. |
| AnotherMediaCaptureState Int | Catch-all for unknown values |
Instances
NavigationType
data NavigationType Source #
Enum values used to denote the various navigation types.
Constructors
| NavigationTypeLinkClicked | The navigation was triggered by clicking a link. |
| NavigationTypeFormSubmitted | The navigation was triggered by submitting a form. |
| NavigationTypeBackForward | The navigation was triggered by navigating forward or backward. |
| NavigationTypeReload | The navigation was triggered by reloading. |
| NavigationTypeFormResubmitted | The navigation was triggered by resubmitting a form. |
| NavigationTypeOther | The navigation was triggered by some other action. |
| AnotherNavigationType Int | Catch-all for unknown values |
Instances
NetworkError
data NetworkError Source #
Enum values used to denote the various network errors.
Constructors
| NetworkErrorFailed | Generic load failure |
| NetworkErrorTransport | Load failure due to transport error |
| NetworkErrorUnknownProtocol | Load failure due to unknown protocol |
| NetworkErrorCancelled | Load failure due to cancellation |
| NetworkErrorFileDoesNotExist | Load failure due to missing file |
| AnotherNetworkError Int | Catch-all for unknown values |
Instances
catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type NetworkError. This is a specialized version of catchGErrorJustDomain.
handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type NetworkError. This is a specialized version of handleGErrorJustDomain.
NetworkProxyMode
data NetworkProxyMode Source #
Enum values used to set the network proxy mode.
Since: 2.16
Constructors
| NetworkProxyModeDefault | Use the default proxy of the system. |
| NetworkProxyModeNoProxy | Do not use any proxy. |
| NetworkProxyModeCustom | Use custom proxy settings. |
| AnotherNetworkProxyMode Int | Catch-all for unknown values |
Instances
PermissionState
data PermissionState Source #
Enum values representing query permission results.
Since: 2.40
Constructors
| PermissionStateGranted | Access to the feature is granted. |
| PermissionStateDenied | Access to the feature is denied. |
| PermissionStatePrompt | Access to the feature has to be requested via user prompt. |
| AnotherPermissionState Int | Catch-all for unknown values |
Instances
PluginError
data PluginError Source #
Enum values used to denote the various plugin and media errors.
Constructors
| PluginErrorFailed | Generic plugin load failure. Deprecated 2.32 |
| PluginErrorCannotFindPlugin | Load failure due to missing plugin. Deprecated 2.32 |
| PluginErrorCannotLoadPlugin | Load failure due to inability to load plugin. Deprecated 2.32 |
| PluginErrorJavaUnavailable | Load failure due to missing Java support that is required to load plugin. Deprecated 2.32 |
| PluginErrorConnectionCancelled | Load failure due to connection cancellation. Deprecated 2.32 |
| PluginErrorWillHandleLoad | Preliminary load failure for media content types. A new load will be started to perform the media load. |
| AnotherPluginError Int | Catch-all for unknown values |
Instances
catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type PluginError. This is a specialized version of catchGErrorJustDomain.
handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type PluginError. This is a specialized version of handleGErrorJustDomain.
PolicyDecisionType
data PolicyDecisionType Source #
Enum values used for determining the type of a policy decision during WebView::decidePolicy.
Constructors
| PolicyDecisionTypeNavigationAction | 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
|
| PolicyDecisionTypeNewWindowAction | This type of policy decision
is requested when WebKit is about to create a new window. Acceptable policy
decisions are either |
| PolicyDecisionTypeResponse | 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 |
| AnotherPolicyDecisionType Int | Catch-all for unknown values |
Instances
PolicyError
data PolicyError Source #
Enum values used to denote the various policy errors.
Constructors
| PolicyErrorFailed | Generic load failure due to policy error |
| PolicyErrorCannotShowMimeType | Load failure due to unsupported mime type |
| PolicyErrorCannotShowUri | Load failure due to URI that can not be shown |
| PolicyErrorFrameLoadInterruptedByPolicyChange | Load failure due to frame load interruption by policy change |
| PolicyErrorCannotUseRestrictedPort | Load failure due to port restriction |
| AnotherPolicyError Int | Catch-all for unknown values |
Instances
catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type PolicyError. This is a specialized version of catchGErrorJustDomain.
handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type PolicyError. This is a specialized version of handleGErrorJustDomain.
PrintError
data PrintError Source #
Enum values used to denote the various print errors.
Constructors
| PrintErrorGeneral | Unspecified error during a print operation |
| PrintErrorPrinterNotFound | Selected printer cannot be found |
| PrintErrorInvalidPageRange | Invalid page range |
| AnotherPrintError Int | Catch-all for unknown values |
Instances
catchPrintError :: IO a -> (PrintError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type PrintError. This is a specialized version of catchGErrorJustDomain.
handlePrintError :: (PrintError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type PrintError. This is a specialized version of handleGErrorJustDomain.
PrintOperationResponse
data PrintOperationResponse Source #
Enum values representing the response of the print dialog shown with
printOperationRunDialog.
Constructors
| PrintOperationResponsePrint | Print button was clicked in print dialog |
| PrintOperationResponseCancel | Print dialog was cancelled |
| AnotherPrintOperationResponse Int | Catch-all for unknown values |
Instances
ProcessModel
data ProcessModel Source #
Deprecated: (Since version 2.40)
Enum values used for determining the WebContext process model.
Since: 2.4
Constructors
| ProcessModelSharedSecondaryProcess | Deprecated 2.26. |
| ProcessModelMultipleSecondaryProcesses | Use one process
for each |
| AnotherProcessModel Int | Catch-all for unknown values |
Instances
SaveMode
Enum values to specify the different ways in which a WebView
can save its current web page into a self-contained file.
Constructors
| SaveModeMhtml | Save the current page using the MHTML format. |
| AnotherSaveMode Int | Catch-all for unknown values |
Instances
| Enum SaveMode Source # | |
| Show SaveMode Source # | |
| Eq SaveMode Source # | |
| Ord SaveMode Source # | |
Defined in GI.WebKit2.Enums | |
| BoxedEnum SaveMode Source # | |
Defined in GI.WebKit2.Enums | |
| TypedObject SaveMode Source # | |
Defined in GI.WebKit2.Enums | |
| HasParentTypes SaveMode Source # | |
Defined in GI.WebKit2.Enums | |
| type ParentTypes SaveMode Source # | |
Defined in GI.WebKit2.Enums | |
ScriptDialogType
data ScriptDialogType Source #
Enum values used for determining the type of ScriptDialog
Constructors
| ScriptDialogTypeAlert | Alert script dialog, used to show a message to the user. |
| ScriptDialogTypeConfirm | Confirm script dialog, used to ask confirmation to the user. |
| ScriptDialogTypePrompt | Prompt script dialog, used to ask information to the user. |
| ScriptDialogTypeBeforeUnloadConfirm | Before unload confirm dialog, used to ask confirmation to leave the current page to the user. Since 2.12 |
| AnotherScriptDialogType Int | Catch-all for unknown values |
Instances
SnapshotError
data SnapshotError Source #
Enum values used to denote errors happening when creating snapshots of WebView
Constructors
| SnapshotErrorCreate | An error occurred when creating a webpage snapshot. |
| AnotherSnapshotError Int | Catch-all for unknown values |
Instances
catchSnapshotError :: IO a -> (SnapshotError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type SnapshotError. This is a specialized version of catchGErrorJustDomain.
handleSnapshotError :: (SnapshotError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type SnapshotError. This is a specialized version of handleGErrorJustDomain.
SnapshotRegion
data SnapshotRegion Source #
Enum values used to specify the region from which to get a WebView
snapshot
Constructors
| SnapshotRegionVisible | Specifies a snapshot only for the area that is visible in the webview |
| SnapshotRegionFullDocument | A snapshot of the entire document. |
| AnotherSnapshotRegion Int | Catch-all for unknown values |
Instances
TLSErrorsPolicy
data TLSErrorsPolicy Source #
Enum values used to denote the TLS errors policy.
Constructors
| TLSErrorsPolicyIgnore | Ignore TLS errors. |
| TLSErrorsPolicyFail | 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. |
| AnotherTLSErrorsPolicy Int | Catch-all for unknown values |
Instances
UserContentFilterError
data UserContentFilterError Source #
Errors that can occur while compiling content filters.
Since: 2.24
Constructors
| UserContentFilterErrorInvalidSource | The JSON source for a content filter is invalid. |
| UserContentFilterErrorNotFound | The requested content filter could not be found. |
| AnotherUserContentFilterError Int | Catch-all for unknown values |
Instances
catchUserContentFilterError :: IO a -> (UserContentFilterError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type UserContentFilterError. This is a specialized version of catchGErrorJustDomain.
handleUserContentFilterError :: (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type UserContentFilterError. This is a specialized version of handleGErrorJustDomain.
UserContentInjectedFrames
data UserContentInjectedFrames Source #
Specifies in which frames user style sheets are to be inserted in.
Since: 2.6
Constructors
| UserContentInjectedFramesAllFrames | Insert the user style sheet in all the frames loaded by the web view, including nested frames. This is the default. |
| UserContentInjectedFramesTopFrame | Insert the user style sheet *only* in the top-level frame loaded by the web view, and *not* in the nested frames. |
| AnotherUserContentInjectedFrames Int | Catch-all for unknown values |
Instances
UserMessageError
data UserMessageError Source #
Enum values used to denote errors happening when sending user messages.
Since: 2.28
Constructors
| UserMessageErrorMessage | The message was not handled by the receiver. |
| AnotherUserMessageError Int | Catch-all for unknown values |
Instances
catchUserMessageError :: IO a -> (UserMessageError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type UserMessageError. This is a specialized version of catchGErrorJustDomain.
handleUserMessageError :: (UserMessageError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type UserMessageError. This is a specialized version of handleGErrorJustDomain.
UserScriptInjectionTime
data UserScriptInjectionTime Source #
Specifies at which place of documents an user script will be inserted.
Since: 2.6
Constructors
| UserScriptInjectionTimeStart | Insert the code of the user script at the beginning of loaded documents. This is the default. |
| UserScriptInjectionTimeEnd | Insert the code of the user script at the end of the loaded documents. |
| AnotherUserScriptInjectionTime Int | Catch-all for unknown values |
Instances
UserStyleLevel
data UserStyleLevel Source #
Specifies how to treat an user style sheet.
Since: 2.6
Constructors
| UserStyleLevelUser | The style sheet is an user style sheet, its contents always override other style sheets. This is the default. |
| UserStyleLevelAuthor | 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. |
| AnotherUserStyleLevel Int | Catch-all for unknown values |
Instances
WebExtensionMode
data WebExtensionMode Source #
Enum values used for setting if a WebView is intended for
WebExtensions.
Since: 2.38
Constructors
| WebExtensionModeNone | Not for an extension. |
| WebExtensionModeManifestv2 | For a ManifestV2 extension. |
| WebExtensionModeManifestv3 | For a ManifestV3 extension. |
| AnotherWebExtensionMode Int | Catch-all for unknown values |
Instances
WebProcessTerminationReason
data WebProcessTerminationReason Source #
Enum values used to specify the reason why the web process terminated abnormally.
Since: 2.20
Constructors
| WebProcessTerminationReasonCrashed | the web process crashed. |
| WebProcessTerminationReasonExceededMemoryLimit | the web process exceeded the memory limit. |
| WebProcessTerminationReasonTerminatedByApi | the web process termination was requested by an API call. Since: 2.34 |
| AnotherWebProcessTerminationReason Int | Catch-all for unknown values |