webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Attributes | List of all members
_WebKitFileChooserRequestPrivate Struct Reference

Public Attributes

RefPtr< API::OpenPanelParametersparameters
 
RefPtr< WebOpenPanelResultListenerProxylistener
 
GRefPtr< GtkFileFilter > filter
 
GRefPtr< GPtrArray > mimeTypes
 
GRefPtr< GPtrArray > selectedFiles
 
bool handledRequest
 

Detailed Description

SECTION: WebKitFileChooserRequest : A request to open a file chooser : WebKitFileChooserRequest : WebKitWebView

Whenever the user interacts with an <input type='file' /> HTML element, WebKit will need to show a dialog to choose one or more files to be uploaded to the server along with the rest of the form data. For that to happen in a general way, instead of just opening a #GtkFileChooserDialog (which might be not desirable in some cases, which could prefer to use their own file chooser dialog), WebKit will fire the #WebKitWebView::run-file-chooser signal with a WebKitFileChooserRequest object, which will allow the client application to specify the files to be selected, to inspect the details of the request (e.g. if multiple selection should be allowed) and to cancel the request, in case nothing was selected.

In case the client application does not wish to handle this signal, WebKit will provide a default handler which will asynchronously run a regular #GtkFileChooserDialog for the user to interact with.

Member Data Documentation

◆ filter

GRefPtr<GtkFileFilter> _WebKitFileChooserRequestPrivate::filter

◆ handledRequest

bool _WebKitFileChooserRequestPrivate::handledRequest

◆ listener

RefPtr<WebOpenPanelResultListenerProxy> _WebKitFileChooserRequestPrivate::listener

◆ mimeTypes

GRefPtr<GPtrArray> _WebKitFileChooserRequestPrivate::mimeTypes

◆ parameters

RefPtr<API::OpenPanelParameters> _WebKitFileChooserRequestPrivate::parameters

◆ selectedFiles

GRefPtr<GPtrArray> _WebKitFileChooserRequestPrivate::selectedFiles

The documentation for this struct was generated from the following file: