| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit.Enums
Contents
Description
- catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a
- handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a
- catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a
- handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a
- catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a
- handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a
- data WebViewViewMode
- data WebViewTargetInfo
- data WebNavigationReason
- data SelectionAffinity
- data PolicyError
- data PluginError
- data NetworkError
- data NavigationResponse
- data LoadStatus
- data InsertAction
- data EditingBehavior
- data DownloadStatus
- data DownloadError
- 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
- | ContextMenuActionOpenMediaInNewWindow
- | ContextMenuActionCopyMediaLinkToClipboard
- | ContextMenuActionToggleMediaControls
- | ContextMenuActionToggleMediaLoop
- | ContextMenuActionEnterVideoFullscreen
- | ContextMenuActionMediaPlayPause
- | ContextMenuActionMediaMute
- | AnotherContextMenuAction Int
- data CacheModel
Documentation
catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a Source #
handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a Source #
handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a Source #
handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Exported types
data WebViewViewMode Source #
Enum values used to denote the various types of view modes. See the
WebView:view-mode property.
Constructors
| WebViewViewModeWindowed | Windowed view mode |
| WebViewViewModeFloating | Floating view mode |
| WebViewViewModeFullscreen | Fullscreen view mode |
| WebViewViewModeMaximized | Maximized view mode |
| WebViewViewModeMinimized | Minimized view mode |
| AnotherWebViewViewMode Int | Catch-all for unknown values |
data WebViewTargetInfo Source #
Enum values used to denote the info value of various selection types. These can be used to interpret the data WebKitGTK+ publishes via GtkClipboard and drag-and-drop.
Constructors
| WebViewTargetInfoHtml | Rich markup data |
| WebViewTargetInfoText | Text data |
| WebViewTargetInfoImage | Image data |
| WebViewTargetInfoUriList | URI list data |
| WebViewTargetInfoNetscapeUrl | A single URL in the Netscape protocol |
| AnotherWebViewTargetInfo Int | Catch-all for unknown values |
data WebNavigationReason Source #
Enum values used to denote the various navigation reasons.
Constructors
| WebNavigationReasonLinkClicked | The navigation was triggered by clicking a link. |
| WebNavigationReasonFormSubmitted | The navigation was triggered by submitting a form. |
| WebNavigationReasonBackForward | The navigation was triggered by navigating forward or backward. |
| WebNavigationReasonReload | The navigation was triggered by reloading. |
| WebNavigationReasonFormResubmitted | The navigation was triggered by resubmitting a form. |
| WebNavigationReasonOther | The navigation was triggered by some other action. |
| AnotherWebNavigationReason Int | Catch-all for unknown values |
data SelectionAffinity Source #
No description available in the introspection data.
Constructors
| SelectionAffinityUpstream | No description available in the introspection data. |
| SelectionAffinityDownstream | No description available in the introspection data. |
| AnotherSelectionAffinity Int | Catch-all for unknown values |
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 |
| PolicyErrorCannotShowUrl | 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 |
data PluginError Source #
Enum values used to denote the various plugin errors.
Constructors
| PluginErrorFailed | Generic plugin load failure |
| PluginErrorCannotFindPlugin | Load failure due to missing plugin |
| PluginErrorCannotLoadPlugin | Load failure due to inability to load plugin |
| PluginErrorJavaUnavailable | Load failue due to missing Java support that is required to load plugin |
| PluginErrorConnectionCancelled | Load failure due to connection cancellation |
| PluginErrorWillHandleLoad | Load failure since plugin handles the load |
| AnotherPluginError Int | Catch-all for unknown values |
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 |
data NavigationResponse Source #
Enum values used to denote the various responses to a navigation policy decision.
Constructors
| NavigationResponseAccept | Instruct WebKit to allow the navigation. |
| NavigationResponseIgnore | Instruct WebKit to ignore the navigation. |
| NavigationResponseDownload | Instruct WebKit to start a download of the destination instead. |
| AnotherNavigationResponse Int | Catch-all for unknown values |
data LoadStatus Source #
No description available in the introspection data.
Constructors
| LoadStatusProvisional | No data has been received yet, empty structures have been allocated to perform the load; the load may still fail for transport issues such as not being able to resolve a name, or connect to a port. |
| LoadStatusCommitted | The first data chunk has arrived, meaning that the necessary transport requirements are stabilished, and the load is being performed. |
| LoadStatusFinished | This state means that everything that was required to display the page has been loaded. |
| LoadStatusFirstVisuallyNonEmptyLayout | The first layout with actual visible content happened; one or more layouts may have happened before that caused nothing to be visible on the screen, because the data available at the time was not significant enough. |
| LoadStatusFailed | This state means that some error occurred
during the page load that prevented it from being completed. You
can connect to the |
| AnotherLoadStatus Int | Catch-all for unknown values |
Instances
data InsertAction Source #
No description available in the introspection data.
Constructors
| InsertActionTyped | No description available in the introspection data. |
| InsertActionPasted | No description available in the introspection data. |
| InsertActionDropped | No description available in the introspection data. |
| AnotherInsertAction Int | Catch-all for unknown values |
data EditingBehavior Source #
Enum values used for determining the editing behavior of editable elements.
Constructors
| EditingBehaviorMac | Editing behavior mimicking OS X user interfaces. |
| EditingBehaviorWindows | Editing behavior mimicking Windows user interfaces. |
| EditingBehaviorUnix | Editing behavior mimicking free desktop user interfaces. |
| AnotherEditingBehavior Int | Catch-all for unknown values |
data DownloadStatus Source #
Enum values used to denote the various states of a download.
Constructors
| DownloadStatusError | The download failed because of an error other than user cancellation. |
| DownloadStatusCreated | The download has not started yet. |
| DownloadStatusStarted | The download has started, but has not completed yet. |
| DownloadStatusCancelled | The user canceled the download. |
| DownloadStatusFinished | The download completed successfully. |
| AnotherDownloadStatus Int | Catch-all for unknown values |
data DownloadError Source #
Enum values used to denote the various download errors.
Constructors
| DownloadErrorCancelledByUser | The download failed due to user cancellation. |
| DownloadErrorDestination | The download failed due to disk write failure. |
| DownloadErrorNetwork | The download failed due to a network error. |
| AnotherDownloadError Int | Catch-all for unknown values |
data ContextMenuAction Source #
Enum values used to denote actions of items in the default context menu.
Since: 1.10
Constructors
data CacheModel Source #
Enum values used for determining the webview cache model.
Constructors
| CacheModelDefault | The default cache model. This is WEBKIT_CACHE_MODEL_WEB_BROWSER. |
| 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