{-# LINE 2 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-- -*-haskell-*-------------------------------------------------------------------------------- Module : Graphics.UI.Gtk.WebKit.WebView-- Author : Cjacker Huang-- Copyright : (c) 2009 Cjacker Huang <jzhuang@redflag-1 .com>-- Copyright : (c) 2010 Andy Stewart <lazycat.manatee@gmail.com>---- This library is free software; you can redistribute it and/or-- modify it under the terms of the GNU Lesser General Public-- License as published by the Free Software Foundation; either-- version 2.1 of the License, or (at your option) any later version.---- This library is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU-- Lesser General Public License for more details.---- |-- Maintainer : gtk2hs-users@lists.sourceforge.net-- Stability : provisional-- Portability : portable (depends on GHC)---- Note:---- Signal `window-object-cleared` can't bidning now, -- because it need JavaScriptCore that haven't binding.---- Signal `create-plugin-widget` can't binding now, -- no idea how to binding `GHaskellTable`------ TODO:---- `webViewGetHitTestResult`---- The central class of the WebKit-----------------------------------------------------------------------------moduleGraphics.UI.Gtk.WebKit.WebView(-- * TypesWebView,WebViewClass,-- * EnumsNavigationResponse(..),TargetInfo(..),LoadStatus(..),-- * ConstructorswebViewNew,-- * Methods-- ** LoadwebViewLoadUri,webViewLoadHtmlString,webViewLoadRequest,webViewLoadString,-- ** ReloadwebViewStopLoading,webViewReload,webViewReloadBypassCache,-- ** HistorywebViewCanGoBack,webViewCanGoForward,webViewGoBack,webViewGoForward,webViewGetBackForwardList,webViewSetMaintainsBackForwardList,webViewGoToBackForwardItem,webViewCanGoBackOrForward,webViewGoBackOrForward,-- ** ZoomwebViewGetZoomLevel,webViewSetZoomLevel,webViewZoomIn,webViewZoomOut,webViewGetFullContentZoom,webViewSetFullContentZoom,-- ** ClipboardwebViewCanCutClipboard,webViewCanCopyClipboard,webViewCanPasteClipboard,webViewCutClipboard,webViewCopyClipboard,webViewPasteClipboard,-- ** Undo/RedowebViewCanRedo,webViewCanUndo,webViewRedo,webViewUndo,-- ** SelectionwebViewDeleteSelection,webViewHasSelection,webViewSelectAll,-- ** EncodingwebViewGetEncoding,webViewSetCustomEncoding,webViewGetCustomEncoding,-- ** Source ModewebViewGetViewSourceMode,webViewSetViewSourceMode,-- ** TransparentwebViewGetTransparent,webViewSetTransparent,-- ** Target ListwebViewGetCopyTargetList,webViewGetPasteTargetList,-- ** Text MatchwebViewMarkTextMatches,webViewUnMarkTextMatches,webViewSetHighlightTextMatches,-- ** OtherwebViewExecuteScript,webViewCanShowMimeType,webViewGetEditable,webViewSetEditable,webViewGetInspector,webViewGetProgress,webViewSearchText,webViewMoveCursor,webViewGetMainFrame,webViewGetFocusedFrame,webViewSetWebSettings,webViewGetWebSettings,webViewGetWindowFeatures,webViewGetIconUri,webViewGetTitle,webViewGetUri,-- * AttributeswebViewZoomLevel,webViewFullContentZoom,webViewEncoding,webViewCustomEncoding,webViewLoadStatus,webViewProgress,webViewTitle,webViewInspector,webViewWebSettings,webViewViewSourceMode,webViewTransparent,webViewEditable,webViewUri,webViewCopyTargetList,webViewPasteTargetList,webViewWindowFeatures,webViewIconUri,webViewImContext,-- * SignalsloadStarted,loadCommitted,progressChanged,loadFinished,loadError,titleChanged,hoveringOverLink,createWebView,webViewReady,closeWebView,consoleMessage,copyClipboard,cutClipboard,pasteClipboard,populatePopup,printRequested,scriptAlert,scriptConfirm,scriptPrompt,statusBarTextChanged,selectAll,selectionChanged,setScrollAdjustments,databaseQuotaExceeded,documentLoadFinished,downloadRequested,iconLoaded,redo,undo,mimeTypePolicyDecisionRequested,moveCursor,navigationPolicyDecisionRequested,newWindowPolicyDecisionRequested,resourceRequestStarting,geolocationPolicyDecisionCancelled,geolocationPolicyDecisionRequested,)whereimportControl.Monad(liftM)importSystem.Glib.FFIimportSystem.Glib.UTFStringimportSystem.Glib.GListimportSystem.Glib.AttributesimportSystem.Glib.PropertiesimportSystem.Glib.GErrorimportGraphics.UI.Gtk.Gdk.EventsimportGraphics.UI.Gtk.Abstract.Object(makeNewObject)importGraphics.UI.Gtk.WebKit.Types{-# LINE 222 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}importGraphics.UI.Gtk.WebKit.Signals{-# LINE 223 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}importGraphics.UI.Gtk.WebKit.Internal{-# LINE 224 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}importSystem.Glib.GObject{-# LINE 225 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}importGraphics.UI.Gtk.General.Selection(TargetList)importGraphics.UI.Gtk.MenuComboToolbar.Menu{-# LINE 227 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}importGraphics.UI.Gtk.General.Enums{-# LINE 228 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}{-# LINE 230 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-------------------- EnumsdataNavigationResponse=NavigationResponseAccept|NavigationResponseIgnore|NavigationResponseDownloadderiving(Enum){-# LINE 235 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}dataTargetInfo=WebViewTargetInfoHtml|WebViewTargetInfoText|WebViewTargetInfoImage|WebViewTargetInfoUriList|WebViewTargetInfoNetscapeUrlderiving(Enum){-# LINE 237 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}dataLoadStatus=LoadProvisional|LoadCommitted|LoadFinished|LoadFirstVisuallyNonEmptyLayout|LoadFailedderiving(Enum){-# LINE 239 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-------------------- Constructors-- | Create a new 'WebView' widget.---- It is a 'Widget' you can embed in a 'ScrolledWindow'.---- You can load any URI into the 'WebView' or any kind of data string.webViewNew::IOWebViewwebViewNew=doisGthreadInited<-liftMtoBoolg_thread_get_initialized{-# LINE 252 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}ifnotisGthreadInitedtheng_thread_initnullPtrelsereturn()makeNewObjectmkWebView$liftMcastPtrwebkit_web_view_new{-# LINE 255 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-- | Apply 'WebSettings' to a given 'WebView'---- !!NOTE!!, currently lack of useful APIs of 'WebSettings' in webkitgtk.-- If you want to set the encoding, font family or font size of the 'WebView',-- please use related functions.webViewSetWebSettings::(WebViewClassself,WebSettingsClasssettings)=>self->settings->IO()webViewSetWebSettingswebviewwebsettings=(\(WebViewarg1)(WebSettingsarg2)->withForeignPtrarg1$\argPtr1->withForeignPtrarg2$\argPtr2->webkit_web_view_set_settingsargPtr1argPtr2)(toWebViewwebview)(toWebSettingswebsettings)-- | Return the 'WebSettings' currently used by 'WebView'.webViewGetWebSettings::WebViewClassself=>self->IOWebSettingswebViewGetWebSettingswebview=makeNewGObjectmkWebSettings$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_settingsargPtr1)(toWebViewwebview)-- | Returns the instance of WebKitWebWindowFeatures held by the given WebKitWebView.webViewGetWindowFeatures::WebViewClassself=>self->IOWebWindowFeatureswebViewGetWindowFeatureswebview=makeNewGObjectmkWebWindowFeatures$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_window_featuresargPtr1)(toWebViewwebview)-- | Obtains the URI for the favicon for the given WebKitWebView, or 'Nothing' if there is none.---- * Since 1.1.18webViewGetIconUri::WebViewClassself=>self->IO(MaybeString)webViewGetIconUriwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_icon_uriargPtr1)(toWebViewwebview)>>=maybePeekpeekUTFString-- | Return the main 'WebFrame' of the given 'WebView'.webViewGetMainFrame::WebViewClassself=>self->IOWebFramewebViewGetMainFramewebview=makeNewGObjectmkWebFrame$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_main_frameargPtr1)(toWebViewwebview)-- | Return the focused 'WebFrame' of the given 'WebView'.webViewGetFocusedFrame::WebViewClassself=>self->IOWebFramewebViewGetFocusedFramewebview=makeNewGObjectmkWebFrame$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_focused_frameargPtr1)(toWebViewwebview)-- |Requests loading of the specified URI string in a 'WebView'webViewLoadUri::WebViewClassself=>self->String-- ^ @uri@ - an URI string.->IO()webViewLoadUriwebviewurl=withCStringurl$\urlPtr->(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_load_uriargPtr1arg2){-# LINE 317 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)urlPtr-- |Determine whether 'WebView' has a previous history item.webViewCanGoBack::WebViewClassself=>self->IOBool-- ^ True if able to move back, False otherwise.webViewCanGoBackwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_go_backargPtr1)(toWebViewwebview)-- |Determine whether 'WebView' has a next history item.webViewCanGoForward::WebViewClassself=>self->IOBool-- ^ True if able to move forward, False otherwise.webViewCanGoForwardwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_go_forwardargPtr1)(toWebViewwebview)-- |Loads the previous history item.webViewGoBack::WebViewClassself=>self->IO()webViewGoBackwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_go_backargPtr1)(toWebViewwebview)-- |Loads the next history item.webViewGoForward::WebViewClassself=>self->IO()webViewGoForwardwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_go_forwardargPtr1)(toWebViewwebview)-- |Set the 'WebView' to maintian a back or forward list of history items.webViewSetMaintainsBackForwardList::WebViewClassself=>self->Bool-- ^ @flag@ - to tell the view to maintain a back or forward list.->IO()webViewSetMaintainsBackForwardListwebviewflag=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_maintains_back_forward_listargPtr1arg2){-# LINE 355 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)(fromBoolflag)-- |Return the 'WebBackForwardList'webViewGetBackForwardList::WebViewClassself=>self->IOWebBackForwardListwebViewGetBackForwardListwebview=makeNewGObjectmkWebBackForwardList$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_back_forward_listargPtr1){-# LINE 365 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)-- |Go to the specified 'WebHistoryItem'webViewGoToBackForwardItem::(WebViewClassself,WebHistoryItemClassitem)=>self->item->IOBool-- ^ True if loading of item is successful, False if not.webViewGoToBackForwardItemwebviewitem=liftMtoBool$(\(WebViewarg1)(WebHistoryItemarg2)->withForeignPtrarg1$\argPtr1->withForeignPtrarg2$\argPtr2->webkit_web_view_go_to_back_forward_itemargPtr1argPtr2)(toWebViewwebview)(toWebHistoryItemitem)-- |Determines whether 'WebView' has a history item of @steps@.---- Negative values represent steps backward while positive values-- represent steps forwardwebViewCanGoBackOrForward::WebViewClassself=>self->Int-- ^ @steps@ - the number of steps->IOBool-- ^ True if able to move back or forward the given number of steps,-- False otherwisewebViewCanGoBackOrForwardwebviewsteps=liftMtoBool$(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_can_go_back_or_forwardargPtr1arg2){-# LINE 389 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)(fromIntegralsteps)-- |Loads the history item that is the number of @steps@ away from the current item.---- Negative values represent steps backward while positive values represent steps forward.webViewGoBackOrForward::WebViewClassself=>self->Int->IO()webViewGoBackOrForwardwebviewsteps=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_go_back_or_forwardargPtr1arg2){-# LINE 402 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)(fromIntegralsteps)-- |Determines whether or not it is currently possible to redo the last editing command in the viewwebViewCanRedo::WebViewClassself=>self->IOBoolwebViewCanRedowebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_redoargPtr1)(toWebViewwebview)-- |Determines whether or not it is currently possible to undo the last editing command in the viewwebViewCanUndo::WebViewClassself=>self->IOBoolwebViewCanUndowebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_undoargPtr1)(toWebViewwebview)-- |Redoes the last editing command in the view, if possible.webViewRedo::WebViewClassself=>self->IO()webViewRedowebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_redoargPtr1)(toWebViewwebview)-- |Undoes the last editing command in the view, if possible.webViewUndo::WebViewClassself=>self->IO()webViewUndowebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_undoargPtr1)(toWebViewwebview)-- | Returns whether or not a @mimetype@ can be displayed using this view.webViewCanShowMimeType::WebViewClassself=>self->String-- ^ @mimetype@ - a MIME type->IOBool-- ^ True if the @mimetype@ can be displayed, otherwise FalsewebViewCanShowMimeTypewebviewmime=withCStringmime$\mimePtr->liftMtoBool$(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_can_show_mime_typeargPtr1arg2){-# LINE 443 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)mimePtr-- | Returns whether the user is allowed to edit the document.webViewGetEditable::WebViewClassself=>self->IOBoolwebViewGetEditablewebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_editableargPtr1)(toWebViewwebview)-- | Sets whether allows the user to edit its HTML document.webViewSetEditable::WebViewClassself=>self->Bool->IO()webViewSetEditablewebvieweditable=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_editableargPtr1arg2)(toWebViewwebview)(fromBooleditable)-- | Returns whether 'WebView' is in view source modewebViewGetViewSourceMode::WebViewClassself=>self->IOBoolwebViewGetViewSourceModewebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_view_source_modeargPtr1)(toWebViewwebview)-- | Set whether the view should be in view source mode.---- Setting this mode to (!(0)) before loading a URI will display-- the source of the web page in a nice and readable format.webViewSetViewSourceMode::WebViewClassself=>self->Bool->IO()webViewSetViewSourceModewebviewmode=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_view_source_modeargPtr1arg2)(toWebViewwebview)(fromBoolmode)-- | Returns whether the 'WebView' has a transparent backgroundwebViewGetTransparent::WebViewClassself=>self->IOBoolwebViewGetTransparentwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_transparentargPtr1)(toWebViewwebview)-- |Sets whether the WebKitWebView has a transparent background.---- Pass False to have the 'WebView' draw a solid background (the default),-- otherwise pass True.webViewSetTransparent::WebViewClassself=>self->Bool->IO()webViewSetTransparentwebviewtrans=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_transparentargPtr1arg2)(toWebViewwebview)(fromBooltrans)-- |Obtains the 'WebInspector' associated with the 'WebView'webViewGetInspector::WebViewClassself=>self->IOWebInspectorwebViewGetInspectorwebview=makeNewGObjectmkWebInspector$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_inspectorargPtr1)(toWebViewwebview)-- |Requests loading of the specified asynchronous client request.---- Creates a provisional data source that will transition to a committed data source once-- any data has been received.-- use 'webViewStopLoading' to stop the load.webViewLoadRequest::(WebViewClassself,NetworkRequestClassrequest)=>self->request->IO()webViewLoadRequestwebviewrequest=(\(WebViewarg1)(NetworkRequestarg2)->withForeignPtrarg1$\argPtr1->withForeignPtrarg2$\argPtr2->webkit_web_view_load_requestargPtr1argPtr2)(toWebViewwebview)(toNetworkRequestrequest)-- |Returns the zoom level of 'WebView'---- i.e. the factor by which elements in the page are scaled with respect to their original size.webViewGetZoomLevel::WebViewClassself=>self->IOFloat-- ^ the zoom level of 'WebView'webViewGetZoomLevelwebview=liftMrealToFrac$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_zoom_levelargPtr1)(toWebViewwebview)-- |Sets the zoom level of 'WebView'.webViewSetZoomLevel::WebViewClassself=>self->Float-- ^ @zoom_level@ - the new zoom level->IO()webViewSetZoomLevelwebviewzlevel=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_zoom_levelargPtr1arg2)(toWebViewwebview)(realToFraczlevel)-- |Loading the @content@ string as html. The URI passed in base_uri has to be an absolute URI.webViewLoadHtmlString::WebViewClassself=>self->String-- ^ @content@ - the html string->String-- ^ @base_uri@ - the base URI->IO()webViewLoadHtmlStringwebviewhtmlstrurl=withCStringhtmlstr$\htmlPtr->withCStringurl$\urlPtr->(\(WebViewarg1)arg2arg3->withForeignPtrarg1$\argPtr1->webkit_web_view_load_html_stringargPtr1arg2arg3)(toWebViewwebview)htmlPtrurlPtr-- | Requests loading of the given @content@ with the specified @mime_type@, @encoding@ and @base_uri@.---- If @mime_type@ is @Nothing@, "text/html" is assumed.---- If @encoding@ is @Nothing@, "UTF-8" is assumed.--webViewLoadString::WebViewClassself=>self->String-- ^ @content@ - the content string to be loaded.->(MaybeString)-- ^ @mime_type@ - the MIME type or @Nothing@.->(MaybeString)-- ^ @encoding@ - the encoding or @Nothing@.->String-- ^ @base_uri@ - the base URI for relative locations.->IO()webViewLoadStringwebviewcontentmimetypeencodingbaseuri=withCStringcontent$\contentPtr->maybeWithwithCStringmimetype$\mimetypePtr->maybeWithwithCStringencoding$\encodingPtr->withCStringbaseuri$\baseuriPtr->(\(WebViewarg1)arg2arg3arg4arg5->withForeignPtrarg1$\argPtr1->webkit_web_view_load_stringargPtr1arg2arg3arg4arg5){-# LINE 572 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)contentPtrmimetypePtrencodingPtrbaseuriPtr-- |Returns the 'WebView' document titlewebViewGetTitle::WebViewClassself=>self->IO(MaybeString)-- ^ the title of 'WebView' or Nothing in case of failed.webViewGetTitlewebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_titleargPtr1)(toWebViewwebview)>>=maybePeekpeekUTFString-- |Returns the current URI of the contents displayed by the 'WebView'webViewGetUri::WebViewClassself=>self->IO(MaybeString)-- ^ the URI of 'WebView' or Nothing in case of failed.webViewGetUriwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_uriargPtr1)(toWebViewwebview)>>=maybePeekpeekUTFString-- | Stops and pending loads on the given data source.webViewStopLoading::WebViewClassself=>self->IO()webViewStopLoadingwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_stop_loadingargPtr1)(toWebViewwebview)-- | Reloads the 'WebView'webViewReload::WebViewClassself=>self->IO()webViewReloadwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_reloadargPtr1)(toWebViewwebview)-- | Reloads the 'WebView' without using any cached data.webViewReloadBypassCache::WebViewClassself=>self->IO()webViewReloadBypassCachewebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_reload_bypass_cacheargPtr1)(toWebViewwebview)-- | Increases the zoom level of 'WebView'.webViewZoomIn::WebViewClassself=>self->IO()webViewZoomInwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_zoom_inargPtr1)(toWebViewwebview)-- | Decreases the zoom level of 'WebView'.webViewZoomOut::WebViewClassself=>self->IO()webViewZoomOutwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_zoom_outargPtr1)(toWebViewwebview)-- | Looks for a specified string inside 'WebView'webViewSearchText::WebViewClassself=>self->String-- ^ @text@ - a string to look for->Bool-- ^ @case_sensitive@ - whether to respect the case of text->Bool-- ^ @forward@ - whether to find forward or not->Bool-- ^ @wrap@ - whether to continue looking at beginning-- after reaching the end->IOBool-- ^ True on success or False on failurewebViewSearchTextwebviewtextcase_sensitiveforwardwrap=withCStringtext$\textPtr->liftMtoBool$(\(WebViewarg1)arg2arg3arg4arg5->withForeignPtrarg1$\argPtr1->webkit_web_view_search_textargPtr1arg2arg3arg4arg5){-# LINE 641 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)textPtr(fromBoolcase_sensitive)(fromBoolforward)(fromBoolwrap)-- |Attempts to highlight all occurances of string inside 'WebView'webViewMarkTextMatches::WebViewClassself=>self->String-- ^ @string@ - a string to look for->Bool-- ^ @case_sensitive@ - whether to respect the case of text->Int-- ^ @limit@ - the maximum number of strings to look for or 0 for all->IOInt-- ^ the number of strings highlightedwebViewMarkTextMatcheswebviewtextcase_sensitivelimit=withCStringtext$\textPtr->liftMfromIntegral$(\(WebViewarg1)arg2arg3arg4->withForeignPtrarg1$\argPtr1->webkit_web_view_mark_text_matchesargPtr1arg2arg3arg4){-# LINE 658 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)textPtr(fromBoolcase_sensitive)(fromIntegrallimit)-- | Move the cursor in view as described by step and count.webViewMoveCursor::WebViewClassself=>self->MovementStep->Int->IO()webViewMoveCursorwebviewstepcount=(\(WebViewarg1)arg2arg3->withForeignPtrarg1$\argPtr1->webkit_web_view_move_cursorargPtr1arg2arg3)(toWebViewwebview)(fromIntegral$fromEnumstep)(fromIntegralcount)-- | Removes highlighting previously set by 'webViewMarkTextMarches'webViewUnMarkTextMatches::WebViewClassself=>self->IO()webViewUnMarkTextMatcheswebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_unmark_text_matchesargPtr1)(toWebViewwebview)-- | Highlights text matches previously marked by 'webViewMarkTextMatches'webViewSetHighlightTextMatches::WebViewClassself=>self->Bool-- ^ @highlight@ - whether to highlight text matches->IO()webViewSetHighlightTextMatcheswebviewhighlight=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_highlight_text_matchesargPtr1arg2){-# LINE 686 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}(toWebViewwebview)(fromBoolhighlight)-- | Execute the script specified by @script@webViewExecuteScript::WebViewClassself=>self->String-- ^ @script@ - script to be executed->IO()webViewExecuteScriptwebviewscript=withCStringscript$\scriptPtr->(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_execute_scriptargPtr1arg2)(toWebViewwebview)scriptPtr-- | Determines whether can cuts the current selection-- inside 'WebView' to the clipboardwebViewCanCutClipboard::WebViewClassself=>self->IOBoolwebViewCanCutClipboardwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_cut_clipboardargPtr1)(toWebViewwebview)-- | Determines whether can copies the current selection-- inside 'WebView' to the clipboardwebViewCanCopyClipboard::WebViewClassself=>self->IOBoolwebViewCanCopyClipboardwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_copy_clipboardargPtr1)(toWebViewwebview)-- | Determines whether can pastes the current contents of the clipboard-- to the 'WebView'webViewCanPasteClipboard::WebViewClassself=>self->IOBoolwebViewCanPasteClipboardwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_can_paste_clipboardargPtr1)(toWebViewwebview)-- | Cuts the current selection inside 'WebView' to the clipboard.webViewCutClipboard::WebViewClassself=>self->IO()webViewCutClipboardwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_cut_clipboardargPtr1)(toWebViewwebview)-- | Copies the current selection inside 'WebView' to the clipboard.webViewCopyClipboard::WebViewClassself=>self->IO()webViewCopyClipboardwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_copy_clipboardargPtr1)(toWebViewwebview)-- | Pastes the current contents of the clipboard to the 'WebView'webViewPasteClipboard::WebViewClassself=>self->IO()webViewPasteClipboardwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_paste_clipboardargPtr1)(toWebViewwebview)-- | Deletes the current selection inside the 'WebView'webViewDeleteSelection::WebViewClassself=>self->IO()webViewDeleteSelectionwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_delete_selectionargPtr1)(toWebViewwebview)-- | Determines whether text was selectedwebViewHasSelection::WebViewClassself=>self->IOBoolwebViewHasSelectionwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_has_selectionargPtr1)(toWebViewwebview)-- | Attempts to select everything inside the 'WebView'webViewSelectAll::WebViewClassself=>self->IO()webViewSelectAllwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_select_allargPtr1)(toWebViewwebview)-- | Returns whether the zoom level affects only text or all elements.webViewGetFullContentZoom::WebViewClassself=>self->IOBool-- ^ False if only text should be scaled(the default)-- True if the full content of the view should be scaled.webViewGetFullContentZoomwebview=liftMtoBool$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_full_content_zoomargPtr1)(toWebViewwebview)-- | Sets whether the zoom level affects only text or all elements.webViewSetFullContentZoom::WebViewClassself=>self->Bool-- ^ @full_content_zoom@ - False if only text should be scaled (the default)-- True if the full content of the view should be scaled.->IO()webViewSetFullContentZoomwebviewfull=(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_full_content_zoomargPtr1arg2)(toWebViewwebview)(fromBoolfull)-- | Returns the default encoding of the 'WebView'webViewGetEncoding::WebViewClassself=>self->IO(MaybeString)-- ^ the default encoding or @Nothing@ in case of failedwebViewGetEncodingwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_encodingargPtr1)(toWebViewwebview)>>=maybePeekpeekUTFString-- | Sets the current 'WebView' encoding,-- without modifying the default one, and reloads the pagewebViewSetCustomEncoding::WebViewClassself=>self->(MaybeString)-- ^ @encoding@ - the new encoding,-- or @Nothing@ to restore the default encoding.->IO()webViewSetCustomEncodingwebviewencoding=maybeWithwithCStringencoding$\encodingPtr->(\(WebViewarg1)arg2->withForeignPtrarg1$\argPtr1->webkit_web_view_set_custom_encodingargPtr1arg2)(toWebViewwebview)encodingPtr-- | Returns the current encoding of 'WebView',not the default encoding.webViewGetCustomEncoding::WebViewClassself=>self->IO(MaybeString)-- ^ the current encoding string-- or @Nothing@ if there is none set.webViewGetCustomEncodingwebview=(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_custom_encodingargPtr1)(toWebViewwebview)>>=maybePeekpeekUTFString-- | Determines the current status of the load.webViewGetLoadStatus::WebViewClassself=>self->IOLoadStatus-- ^ the current load status:'LoadStatus'webViewGetLoadStatuswebview=liftM(toEnum.fromIntegral)$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_load_statusargPtr1)(toWebViewwebview)-- | Determines the current progress of the loadwebViewGetProgress::WebViewClassself=>self->IODouble-- ^ the load progresswebViewGetProgresswebview=liftMrealToFrac$(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_progressargPtr1)(toWebViewwebview)-- | This function returns the list of targets this 'WebView' can provide for clipboard copying and as DND source.-- The targets in the list are added with values from the 'WebViewTargetInfo' enum,-- using 'targetListAdd' and 'targetListAddTextTargets'.webViewGetCopyTargetList::WebViewClassself=>self->IO(MaybeTargetList)webViewGetCopyTargetListwebview=dotlPtr<-(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_copy_target_listargPtr1)(toWebViewwebview)iftlPtr==nullPtrthenreturnNothingelseliftMJust(mkTargetListtlPtr)-- | This function returns the list of targets this 'WebView' can provide for clipboard pasteing and as DND source.-- The targets in the list are added with values from the 'WebViewTargetInfo' enum,-- using 'targetListAdd' and 'targetListAddTextTargets'.webViewGetPasteTargetList::WebViewClassself=>self->IO(MaybeTargetList)webViewGetPasteTargetListwebview=dotlPtr<-(\(WebViewarg1)->withForeignPtrarg1$\argPtr1->webkit_web_view_get_paste_target_listargPtr1)(toWebViewwebview)iftlPtr==nullPtrthenreturnNothingelseliftMJust(mkTargetListtlPtr)-- * Attibutes-- | Zoom level of the 'WebView' instancewebViewZoomLevel::WebViewClassself=>AttrselfFloatwebViewZoomLevel=newAttrwebViewGetZoomLevelwebViewSetZoomLevel-- | Whether the full content is scaled when zooming---- Default value: FalsewebViewFullContentZoom::WebViewClassself=>AttrselfBoolwebViewFullContentZoom=newAttrwebViewGetFullContentZoomwebViewSetFullContentZoom-- | The default encoding of the 'WebView' instance---- Default value: @Nothing@webViewEncoding::WebViewClassself=>ReadAttrself(MaybeString)webViewEncoding=readAttrwebViewGetEncoding-- | Determines the current status of the load.---- Default value: @LoadFinished@webViewLoadStatus::WebViewClassself=>ReadAttrselfLoadStatuswebViewLoadStatus=readAttrwebViewGetLoadStatus-- |Determines the current progress of the load---- Default Value: 1webViewProgress::WebViewClassself=>ReadAttrselfDoublewebViewProgress=readAttrwebViewGetProgress-- | The associated webSettings of the 'WebView' instancewebViewWebSettings::WebViewClassself=>AttrselfWebSettingswebViewWebSettings=newAttrwebViewGetWebSettingswebViewSetWebSettings-- | Title of the 'WebView' instancewebViewTitle::WebViewClassself=>ReadAttrself(MaybeString)webViewTitle=readAttrwebViewGetTitle-- | The associated webInspector instance of the 'WebView'webViewInspector::WebViewClassself=>ReadAttrselfWebInspectorwebViewInspector=readAttrwebViewGetInspector-- | The custom encoding of the 'WebView' instance---- Default value: @Nothing@webViewCustomEncoding::WebViewClassself=>Attrself(MaybeString)webViewCustomEncoding=newAttrwebViewGetCustomEncodingwebViewSetCustomEncoding-- | view source mode of the 'WebView' instancewebViewViewSourceMode::WebViewClassself=>AttrselfBoolwebViewViewSourceMode=newAttrwebViewGetViewSourceModewebViewSetViewSourceMode-- | transparent background of the 'WebView' instancewebViewTransparent::WebViewClassself=>AttrselfBoolwebViewTransparent=newAttrwebViewGetTransparentwebViewSetTransparent-- | Whether content of the 'WebView' can be modified by the user---- Default value: @False@webViewEditable::WebViewClassself=>AttrselfBoolwebViewEditable=newAttrwebViewGetEditablewebViewSetEditable-- | Returns the current URI of the contents displayed by the @web_view@.---- Default value: NothingwebViewUri::WebViewClassself=>ReadAttrself(MaybeString)webViewUri=readAttrwebViewGetUri-- | The list of targets this web view supports for clipboard copying.webViewCopyTargetList::WebViewClassself=>ReadAttrself(MaybeTargetList)webViewCopyTargetList=readAttrwebViewGetCopyTargetList-- | The list of targets this web view supports for clipboard pasteing.webViewPasteTargetList::WebViewClassself=>ReadAttrself(MaybeTargetList)webViewPasteTargetList=readAttrwebViewGetPasteTargetList-- | An associated 'WebWindowFeatures' instance.webViewWindowFeatures::WebViewClassself=>AttrselfWebWindowFeatureswebViewWindowFeatures=newAttrFromObjectProperty"window-features"webkit_web_window_features_get_type{-# LINE 923 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-- | The URI for the favicon for the WebKitWebView.---- Default value: 'Nothing'---- * Since 1.1.18webViewIconUri::WebViewClassself=>ReadAttrselfStringwebViewIconUri=readAttrFromStringProperty"icon-uri"-- | The 'IMMulticontext' for the WebKitWebView.---- This is the input method context used for all text entry widgets inside the WebKitWebView. It can be-- used to generate context menu items for controlling the active input method.---- * Since 1.1.20webViewImContext::WebViewClassself=>ReadAttrselfIMContextwebViewImContext=readAttrFromObjectProperty"im-context"gtk_im_context_get_type{-# LINE 945 "./Graphics/UI/Gtk/WebKit/WebView.chs" #-}-- * Signals-- | When Document title changed, this signal is emitted.---- It can be used to set the Application 'Window' title.---- the user function signature is (WebFrame->String->IO())---- webframe - which 'WebFrame' changes the document title.---- title - current title string.titleChanged::WebViewClassself=>Signalself(WebFrame->String->IO())titleChanged=Signal(connect_OBJECT_STRING__NONE"title-changed")-- | When the cursor is over a link, this signal is emitted.---- the user function signature is (Maybe String -> Maybe String -> IO () )---- title - the link's title or @Nothing@ in case of failure.---- uri - the URI the link points to or @Nothing@ in case of failure.hoveringOverLink::WebViewClassself=>Signalself(String->String->IO())hoveringOverLink=Signal(connect_STRING_STRING__NONE"hovering-over-link")-- | When a 'WebFrame' begins to load, this signal is emittedloadStarted::WebViewClassself=>Signalself(WebFrame->IO())loadStarted=Signal(connect_OBJECT__NONE"load-started")-- | When a 'WebFrame' loaded the first data, this signal is emittedloadCommitted::WebViewClassself=>Signalself(WebFrame->IO())loadCommitted=Signal(connect_OBJECT__NONE"load-committed")-- | When the global progress changed, this signal is emitted---- the global progress will be passed back to user functionprogressChanged::WebViewClassself=>Signalself(Int->IO())progressChanged=Signal(connect_INT__NONE"load-progress-changed")-- | When loading finished, this signal is emittedloadFinished::WebViewClassself=>Signalself(WebFrame->IO())loadFinished=Signal(connect_OBJECT__NONE"load-finished")-- | When An error occurred while loading.---- By default, if the signal is not handled,-- the WebView will display a stock error page.---- You need to handle the signal-- if you want to provide your own error page.---- The URI that triggered the error and the 'GError' will be passed back to user function.loadError::WebViewClassself=>Signalself(WebFrame->String->GError->IOBool)loadError=Signal(connect_OBJECT_STRING_BOXED__BOOL"load-error"peek)createWebView::WebViewClassself=>Signalself(WebFrame->IOWebView)createWebView=Signal(connect_OBJECT__OBJECTPTR"create-web-view")-- | Emitted when closing a WebView is requested.---- This occurs when a call is made from JavaScript's window.close function. -- The default signal handler does not do anything.-- It is the owner's responsibility to hide or delete the 'WebView', if necessary.---- User function should return True to stop the handlers from being invoked for the event-- or False to propagate the event furtercloseWebView::WebViewClassself=>Signalself(IOBool)closeWebView=Signal(connect_NONE__BOOL"close-web-view")-- | A JavaScript console message was created.consoleMessage::WebViewClassself=>Signalself(String->String->Int->String->IOBool)consoleMessage=Signal(connect_STRING_STRING_INT_STRING__BOOL"console-message")-- | The 'copyClipboard' signal is a keybinding signal which gets emitted to copy the selection to the clipboard.---- The default bindings for this signal are Ctrl-c and Ctrl-Insert.copyClipboard::WebViewClassself=>Signalself(IO())copyClipboard=Signal(connect_NONE__NONE"copy-clipboard")-- | The 'cutClipboard' signal is a keybinding signal which gets emitted to cut the selection to the clipboard.---- The default bindings for this signal are Ctrl-x and Shift-Delete.cutClipboard::WebViewClassself=>Signalself(IO())cutClipboard=Signal(connect_NONE__NONE"cut-clipboard")-- | The 'pasteClipboard' signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the Web view.---- The default bindings for this signal are Ctrl-v and Shift-Insert.pasteClipboard::WebViewClassself=>Signalself(IO())pasteClipboard=Signal(connect_NONE__NONE"paste-clipboard")-- | When a context menu is about to be displayed this signal is emitted.populatePopup::WebViewClassself=>Signalself(Menu->IO())populatePopup=Signal(connect_OBJECT__NONE"populate-popup")-- | Emitted when printing is requested by the frame, usually because of a javascript call.-- When handling this signal you should call 'webFramePrintFull' or 'webFramePrint' to do the actual printing.---- The default handler will present a print dialog and carry a print operation.-- Notice that this means that if you intend to ignore a print-- request you must connect to this signal, and return True.printRequested::WebViewClassself=>Signalself(WebFrame->IOBool)printRequested=Signal(connect_OBJECT__BOOL"print-requested")-- | A JavaScript alert dialog was created.scriptAlert::WebViewClassself=>Signalself(WebFrame->String->IOBool)scriptAlert=Signal(connect_OBJECT_STRING__BOOL"scriptAlert")-- | A JavaScript confirm dialog was created, providing Yes and No buttons.scriptConfirm::WebViewClassself=>Signalself(WebFrame->String->IOBool)scriptConfirm=Signal(connect_OBJECT_STRING__BOOL"script-confirm")-- | A JavaScript prompt dialog was created, providing an entry to input text.scriptPrompt::WebViewClassself=>Signalself(WebFrame->String->String->IOBool)scriptPrompt=Signal(connect_OBJECT_STRING_STRING__BOOL"script-prompt")-- | When status-bar text changed, this signal will emitted.statusBarTextChanged::WebViewClassself=>Signalself(String->IO())statusBarTextChanged=Signal(connect_STRING__NONE"status-bar-text-changed")-- | The 'selectAll' signal is a keybinding signal which gets emitted to select the complete contents of the text view.---- The default bindings for this signal is Ctrl-a.selectAll::WebViewClassself=>Signalself(IO())selectAll=Signal(connect_NONE__NONE"select-all")-- | When selection changed, this signal is emitted.selectionChanged::WebViewClassself=>Signalself(IO())selectionChanged=Signal(connect_NONE__NONE"selection-changed")-- | When set scroll adjustments, this signal is emitted.setScrollAdjustments::WebViewClassself=>Signalself(Adjustment->Adjustment->IO())setScrollAdjustments=Signal(connect_OBJECT_OBJECT__NONE"set-scroll-adjustments")-- | The 'databaseQuotaExceeded' signal will be emitted when a Web Database exceeds the quota of its security origin.-- This signal may be used to increase the size of the quota before the originating operation fails.databaseQuotaExceeded::WebViewClassself=>Signalself(WebFrame->WebDatabase->IO())databaseQuotaExceeded=Signal(connect_OBJECT_OBJECT__NONE"database-quota-exceeded")-- | When document loading finished, this signal is emitteddocumentLoadFinished::WebViewClassself=>Signalself(WebFrame->IO())documentLoadFinished=Signal(connect_OBJECT__NONE"document-load-finished")-- | Emitted after new 'WebView' instance had been created in 'onCreateWebView' user function-- when the new 'WebView' should be displayed to the user.---- All the information about how the window should look,-- including size,position,whether the location, status and scroll bars should be displayed,-- is ready set.webViewReady::WebViewClassself=>Signalself(IOBool)webViewReady=Signal(connect_NONE__BOOL"web-view-ready")-- | Emitted after A new 'Download' is being requested.---- By default, if the signal is not handled, the download is cancelled.---- Notice that while handling this signal you must set the target URI using 'downloadSetDestinationUri'---- If you intend to handle downloads yourself, return False in user function.downloadRequested::WebViewClassself=>Signalself(Download->IOBool)downloadRequested=Signal(connect_OBJECT__BOOL"download-requested")-- | Emitted after Icon loadediconLoaded::WebViewClassself=>Signalself(IO())iconLoaded=Signal(connect_NONE__NONE"icon-loaded")-- | The "redo" signal is a keybinding signal which gets emitted to redo the last editing command.---- The default binding for this signal is Ctrl-Shift-zredo::WebViewClassself=>Signalself(IO())redo=Signal(connect_NONE__NONE"redo")-- | The "undo" signal is a keybinding signal which gets emitted to undo the last editing command.---- The default binding for this signal is Ctrl-zundo::WebViewClassself=>Signalself(IO())undo=Signal(connect_NONE__NONE"undo")-- | Decide whether or not to display the given MIME type.-- If this signal is not handled, the default behavior is to show the content of the-- requested URI if WebKit can show this MIME type and the content disposition is not a download;-- if WebKit is not able to show the MIME type nothing happens.---- Notice that if you return True, meaning that you handled the signal,-- you are expected to be aware of the "Content-Disposition" header.-- A value of "attachment" usually indicates a download regardless of the MIME type,-- see also soupMessageHeadersGetContentDisposition'-- And you must call 'webPolicyDecisionIgnore', 'webPolicyDecisionDownload', or 'webPolicyDecisionUse'-- on the 'webPolicyDecision' object.mimeTypePolicyDecisionRequested::WebViewClassself=>Signalself(WebFrame->NetworkRequest->String->WebPolicyDecision->IOBool)mimeTypePolicyDecisionRequested=Signal(connect_OBJECT_OBJECT_STRING_OBJECT__BOOL"mime-type-policy-decision-requested")-- | The 'moveCursor' will be emitted to apply the cursor movement described by its parameters to the view.moveCursor::WebViewClassself=>Signalself(MovementStep->Int->IOBool)moveCursor=Signal(connect_ENUM_INT__BOOL"move-cursor")-- | Emitted when frame requests a navigation to another page.-- If this signal is not handled, the default behavior is to allow the navigation.---- Notice that if you return True, meaning that you handled the signal,-- you are expected to be aware of the "Content-Disposition" header.-- A value of "attachment" usually indicates a download regardless of the MIME type,-- see also soupMessageHeadersGetContentDisposition'-- And you must call 'webPolicyDecisionIgnore', 'webPolicyDecisionDownload', or 'webPolicyDecisionUse'-- on the 'webPolicyDecision' object.navigationPolicyDecisionRequested::WebViewClassself=>Signalself(WebFrame->NetworkRequest->WebNavigationAction->WebPolicyDecision->IOBool)navigationPolicyDecisionRequested=Signal(connect_OBJECT_OBJECT_OBJECT_OBJECT__BOOL"navigation-policy-decision-requested")-- | Emitted when frame requests opening a new window.-- With this signal the browser can use the context of the request to decide about the new window.-- If the request is not handled the default behavior is to allow opening the new window to load the URI,-- which will cause a 'createWebView' signal emission where the browser handles the new window action-- but without information of the context that caused the navigation.-- The following 'navigationPolicyDecisionRequested' emissions will load the page-- after the creation of the new window just with the information of this new navigation context,-- without any information about the action that made this new window to be opened.---- Notice that if you return True, meaning that you handled the signal,-- you are expected to be aware of the "Content-Disposition" header.-- A value of "attachment" usually indicates a download regardless of the MIME type,-- see also soupMessageHeadersGetContentDisposition'-- And you must call 'webPolicyDecisionIgnore', 'webPolicyDecisionDownload', or 'webPolicyDecisionUse'-- on the 'webPolicyDecision' object.newWindowPolicyDecisionRequested::WebViewClassself=>Signalself(WebFrame->NetworkRequest->WebNavigationAction->WebPolicyDecision->IOBool)newWindowPolicyDecisionRequested=Signal(connect_OBJECT_OBJECT_OBJECT_OBJECT__BOOL"new-window-policy-decision-requested")-- | Emitted when a request is about to be sent.-- You can modify the request while handling this signal.-- You can set the URI in the 'NetworkRequest' object itself,-- and add/remove/replace headers using the SoupMessage object it carries,-- if it is present. See 'networkRequestGetMessage'.-- Setting the request URI to "about:blank" will effectively cause the request to load nothing,-- and can be used to disable the loading of specific resources.---- Notice that information about an eventual redirect is available in response's SoupMessage, -- not in the SoupMessage carried by the request.-- If response is ((void *)0), then this is not a redirected request.---- The 'WebResource' object will be the same throughout all the lifetime of the resource,-- but the contents may change from inbetween signal emissions.resourceRequestStarting::WebViewClassself=>Signalself(WebFrame->WebResource->NetworkRequest->NetworkResponse->IO())resourceRequestStarting=Signal(connect_OBJECT_OBJECT_OBJECT_OBJECT__NONE"resource-request-starting")-- | When a frame wants to cancel geolocation permission it had requested before.---- * Since 1.1.23geolocationPolicyDecisionCancelled::WebViewClassself=>Signalself(WebFrame->IO())geolocationPolicyDecisionCancelled=Signal(connect_OBJECT__NONE"geolocation-policy-decision-cancelled")-- | When a frame wants to get its geolocation permission. The receiver must reply with a boolean wether-- it handled or not the request. If the request is not handled, default behaviour is to deny-- geolocation.---- * Since 1.1.23geolocationPolicyDecisionRequested::WebViewClassself=>Signalself(WebFrame->GeolocationPolicyDecision->IO())geolocationPolicyDecisionRequested=Signal(connect_OBJECT_OBJECT__NONE"geolocation-policy-decision-requested")foreignimportccallsafe"g_thread_get_initialized"g_thread_get_initialized::(IOCInt)foreignimportccallsafe"g_thread_init"g_thread_init::((Ptr())->(IO()))foreignimportccallsafe"webkit_web_view_new"webkit_web_view_new::(IO(PtrWidget))foreignimportccallsafe"webkit_web_view_set_settings"webkit_web_view_set_settings::((PtrWebView)->((PtrWebSettings)->(IO())))foreignimportccallsafe"webkit_web_view_get_settings"webkit_web_view_get_settings::((PtrWebView)->(IO(PtrWebSettings)))foreignimportccallsafe"webkit_web_view_get_window_features"webkit_web_view_get_window_features::((PtrWebView)->(IO(PtrWebWindowFeatures)))foreignimportccallsafe"webkit_web_view_get_icon_uri"webkit_web_view_get_icon_uri::((PtrWebView)->(IO(PtrCChar)))foreignimportccallsafe"webkit_web_view_get_main_frame"webkit_web_view_get_main_frame::((PtrWebView)->(IO(PtrWebFrame)))foreignimportccallsafe"webkit_web_view_get_focused_frame"webkit_web_view_get_focused_frame::((PtrWebView)->(IO(PtrWebFrame)))foreignimportccallsafe"webkit_web_view_load_uri"webkit_web_view_load_uri::((PtrWebView)->((PtrCChar)->(IO())))foreignimportccallsafe"webkit_web_view_can_go_back"webkit_web_view_can_go_back::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_can_go_forward"webkit_web_view_can_go_forward::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_go_back"webkit_web_view_go_back::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_go_forward"webkit_web_view_go_forward::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_set_maintains_back_forward_list"webkit_web_view_set_maintains_back_forward_list::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_get_back_forward_list"webkit_web_view_get_back_forward_list::((PtrWebView)->(IO(PtrWebBackForwardList)))foreignimportccallsafe"webkit_web_view_go_to_back_forward_item"webkit_web_view_go_to_back_forward_item::((PtrWebView)->((PtrWebHistoryItem)->(IOCInt)))foreignimportccallsafe"webkit_web_view_can_go_back_or_forward"webkit_web_view_can_go_back_or_forward::((PtrWebView)->(CInt->(IOCInt)))foreignimportccallsafe"webkit_web_view_go_back_or_forward"webkit_web_view_go_back_or_forward::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_can_redo"webkit_web_view_can_redo::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_can_undo"webkit_web_view_can_undo::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_redo"webkit_web_view_redo::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_undo"webkit_web_view_undo::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_can_show_mime_type"webkit_web_view_can_show_mime_type::((PtrWebView)->((PtrCChar)->(IOCInt)))foreignimportccallsafe"webkit_web_view_get_editable"webkit_web_view_get_editable::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_set_editable"webkit_web_view_set_editable::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_get_view_source_mode"webkit_web_view_get_view_source_mode::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_set_view_source_mode"webkit_web_view_set_view_source_mode::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_get_transparent"webkit_web_view_get_transparent::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_set_transparent"webkit_web_view_set_transparent::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_get_inspector"webkit_web_view_get_inspector::((PtrWebView)->(IO(PtrWebInspector)))foreignimportccallsafe"webkit_web_view_load_request"webkit_web_view_load_request::((PtrWebView)->((PtrNetworkRequest)->(IO())))foreignimportccallsafe"webkit_web_view_get_zoom_level"webkit_web_view_get_zoom_level::((PtrWebView)->(IOCFloat))foreignimportccallsafe"webkit_web_view_set_zoom_level"webkit_web_view_set_zoom_level::((PtrWebView)->(CFloat->(IO())))foreignimportccallsafe"webkit_web_view_load_html_string"webkit_web_view_load_html_string::((PtrWebView)->((PtrCChar)->((PtrCChar)->(IO()))))foreignimportccallsafe"webkit_web_view_load_string"webkit_web_view_load_string::((PtrWebView)->((PtrCChar)->((PtrCChar)->((PtrCChar)->((PtrCChar)->(IO()))))))foreignimportccallsafe"webkit_web_view_get_title"webkit_web_view_get_title::((PtrWebView)->(IO(PtrCChar)))foreignimportccallsafe"webkit_web_view_get_uri"webkit_web_view_get_uri::((PtrWebView)->(IO(PtrCChar)))foreignimportccallsafe"webkit_web_view_stop_loading"webkit_web_view_stop_loading::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_reload"webkit_web_view_reload::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_reload_bypass_cache"webkit_web_view_reload_bypass_cache::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_zoom_in"webkit_web_view_zoom_in::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_zoom_out"webkit_web_view_zoom_out::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_search_text"webkit_web_view_search_text::((PtrWebView)->((PtrCChar)->(CInt->(CInt->(CInt->(IOCInt))))))foreignimportccallsafe"webkit_web_view_mark_text_matches"webkit_web_view_mark_text_matches::((PtrWebView)->((PtrCChar)->(CInt->(CUInt->(IOCUInt)))))foreignimportccallsafe"webkit_web_view_move_cursor"webkit_web_view_move_cursor::((PtrWebView)->(CInt->(CInt->(IO()))))foreignimportccallsafe"webkit_web_view_unmark_text_matches"webkit_web_view_unmark_text_matches::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_set_highlight_text_matches"webkit_web_view_set_highlight_text_matches::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_execute_script"webkit_web_view_execute_script::((PtrWebView)->((PtrCChar)->(IO())))foreignimportccallsafe"webkit_web_view_can_cut_clipboard"webkit_web_view_can_cut_clipboard::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_can_copy_clipboard"webkit_web_view_can_copy_clipboard::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_can_paste_clipboard"webkit_web_view_can_paste_clipboard::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_cut_clipboard"webkit_web_view_cut_clipboard::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_copy_clipboard"webkit_web_view_copy_clipboard::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_paste_clipboard"webkit_web_view_paste_clipboard::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_delete_selection"webkit_web_view_delete_selection::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_has_selection"webkit_web_view_has_selection::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_select_all"webkit_web_view_select_all::((PtrWebView)->(IO()))foreignimportccallsafe"webkit_web_view_get_full_content_zoom"webkit_web_view_get_full_content_zoom::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_set_full_content_zoom"webkit_web_view_set_full_content_zoom::((PtrWebView)->(CInt->(IO())))foreignimportccallsafe"webkit_web_view_get_encoding"webkit_web_view_get_encoding::((PtrWebView)->(IO(PtrCChar)))foreignimportccallsafe"webkit_web_view_set_custom_encoding"webkit_web_view_set_custom_encoding::((PtrWebView)->((PtrCChar)->(IO())))foreignimportccallsafe"webkit_web_view_get_custom_encoding"webkit_web_view_get_custom_encoding::((PtrWebView)->(IO(PtrCChar)))foreignimportccallsafe"webkit_web_view_get_load_status"webkit_web_view_get_load_status::((PtrWebView)->(IOCInt))foreignimportccallsafe"webkit_web_view_get_progress"webkit_web_view_get_progress::((PtrWebView)->(IOCDouble))foreignimportccallsafe"webkit_web_view_get_copy_target_list"webkit_web_view_get_copy_target_list::((PtrWebView)->(IO(PtrTargetList)))foreignimportccallsafe"webkit_web_view_get_paste_target_list"webkit_web_view_get_paste_target_list::((PtrWebView)->(IO(PtrTargetList)))foreignimportccallsafe"webkit_web_window_features_get_type"webkit_web_window_features_get_type::CUIntforeignimportccallsafe"gtk_im_context_get_type"gtk_im_context_get_type::CUInt