WebPage

Constructors

this
this(WebKitWebPage* webKitWebPage, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnConsoleMessageSent
gulong addOnConsoleMessageSent(void delegate(ConsoleMessage, WebPage) dlg, ConnectFlags connectFlags)

Emitted when a message is sent to the console. This can be a message produced by the use of JavaScript console API, a JavaScript exception, a security error or other errors, warnings, debug or log messages. The @console_message contains information of the message.

addOnContextMenu
gulong addOnContextMenu(bool delegate(ContextMenu, WebHitTestResult, WebPage) dlg, ConnectFlags connectFlags)

Emitted before a context menu is displayed in the UI Process to give the application a chance to customize the proposed menu, build its own context menu or pass user data to the UI Process. This signal is useful when the information available in the UI Process is not enough to build or customize the context menu, for example, to add menu entries depending on the #WebKitDOMNode at the coordinates of the @hit_test_result. Otherwise, it's recommended to use #WebKitWebView::context-menu signal instead.

addOnDocumentLoaded
gulong addOnDocumentLoaded(void delegate(WebPage) dlg, ConnectFlags connectFlags)

This signal is emitted when the DOM document of a #WebKitWebPage has been loaded.

addOnFormControlsAssociated
gulong addOnFormControlsAssociated(void delegate(PtrArray, WebPage) dlg, ConnectFlags connectFlags)

Emitted after form elements (or form associated elements) are associated to a particular web page. This is useful to implement form auto filling for web pages where form fields are added dynamically. This signal might be emitted multiple times for the same web page.

addOnFormControlsAssociatedForFrame
gulong addOnFormControlsAssociatedForFrame(void delegate(PtrArray, Frame, WebPage) dlg, ConnectFlags connectFlags)

Emitted after form elements (or form associated elements) are associated to a particular web page. This is useful to implement form auto filling for web pages where form fields are added dynamically. This signal might be emitted multiple times for the same web page.

addOnSendRequest
gulong addOnSendRequest(bool delegate(URIRequest, URIResponse, WebPage) dlg, ConnectFlags connectFlags)

This signal is emitted when @request is about to be sent to the server. This signal can be used to modify the #WebKitURIRequest that will be sent to the server. You can also cancel the resource load operation by connecting to this signal and returning %TRUE.

addOnUserMessageReceived
gulong addOnUserMessageReceived(bool delegate(UserMessage, WebPage) dlg, ConnectFlags connectFlags)

This signal is emitted when a #WebKitUserMessage is received from the #WebKitWebView corresponding to @web_page. You can reply to the message using webkit_user_message_send_reply().

addOnWillSubmitForm
gulong addOnWillSubmitForm(void delegate(DOMElement, WebKitFormSubmissionStep, Frame, Frame, PtrArray, PtrArray, WebPage) dlg, ConnectFlags connectFlags)

This signal is emitted to indicate various points during form submission. @step indicates the current stage of form submission.

getDomDocument
DOMDocument getDomDocument()

Get the #WebKitDOMDocument currently loaded in @web_page

getEditor
WebEditor getEditor()

Gets the #WebKitWebEditor of a #WebKitWebPage.

getId
ulong getId()

Get the identifier of the #WebKitWebPage

getMainFrame
Frame getMainFrame()

Returns the main frame of a #WebKitWebPage.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUri
string getUri()

Returns the current active URI of @web_page.

getWebPageStruct
WebKitWebPage* getWebPageStruct(bool transferOwnership)

Get the main Gtk struct

sendMessageToView
void sendMessageToView(UserMessage message, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Send @message to the #WebKitWebView corresponding to @web_page. If @message is floating, it's consumed.

sendMessageToViewFinish
UserMessage sendMessageToViewFinish(AsyncResultIF result)

Finish an asynchronous operation started with webkit_web_page_send_message_to_view().

Static functions

getType
GType getType()

Variables

webKitWebPage
WebKitWebPage* webKitWebPage;

the main Gtk struct

Meta