webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
import"IWebView.idl";
HRESULT IWebView::accessibilityDelegate | ( | [retval] IAccessibilityDelegate ** | d | ) |
setAccessibilityDelegate: Set the WebView's accessibilityDelegate.
applicationNameForUserAgent
HRESULT IWebView::backForwardList | ( | [retval, out] IWebBackForwardList ** | list | ) |
backForwardList
HRESULT IWebView::centerSelectionInVisibleArea | ( | [in] IUnknown * | sender | ) |
centerSelectionInVisibleArea Centers the selected text in the WebView
HRESULT IWebView::close | ( | ) |
close Closes the receiver, unloading its web page and canceling any pending loads. Once the receiver has closed, it will no longer respond to requests or fire delegate methods. (However, the -close method itself may fire delegate methods.) A garbage collected application is required to call close when the receiver is no longer needed. The close method will be called automatically when the window or hostWindow closes and shouldCloseWithWindow returns YES. A non-garbage collected application can still call close, providing a convenient way to prevent receiver from doing any more loading and firing any future delegate methods.
customTextEncodingName
customUserAgent
HRESULT IWebView::downloadDelegate | ( | [retval, out] IWebDownloadDelegate ** | d | ) |
downloadDelegate Return the WebView's WebDownloadDelegate.
drawsBackground
HRESULT IWebView::elementAtPoint | ( | [in] LPPOINT | point, |
[out, retval] IPropertyBag ** | elementDictionary | ||
) |
HRESULT IWebView::estimatedProgress | ( | [out, retval] double * | estimatedProgress | ) |
estimatedProgress An estimate of the percent complete for a document load. This value will range from 0 to 1.0 and, once a load completes, will remain at 1.0 until a new load starts, at which point it will be reset to 0. The value is an estimate based on the total number of bytes expected to be received for a document, including all it's possible subresources. For more accurate progress indication it is recommended that you implement a WebFrameLoadDelegate and a WebResourceLoadDelegate.
focusedFrame Return the frame that has the current focus.
HRESULT IWebView::frameLoadDelegate | ( | [retval, out] IWebFrameLoadDelegate ** | d | ) |
frameLoadDelegate Return the WebView's WebFrameLoadDelegate delegate.
goBack Go back to the previous URL in the backforward list.
goForward Go forward to the next URL in the backforward list.
HRESULT IWebView::goToBackForwardItem | ( | [in] IWebHistoryItem * | item, |
[out, retval] BOOL * | succeeded | ||
) |
goToBackForwardItem: Go back or forward to an item in the backforward list.
hostWindow
initWithFrame:frameName:groupName: The designated initializer for WebView. Initialize a WebView with the supplied parameters. This method will create a main WebFrame with the view. Passing a top level frame name is useful if you handle a targetted frame navigation that would normally open a window in some other way that still ends up creating a new WebView.
frame | The frame used to create the view. |
frameName | The name to use for the top level frame. May be nil. |
groupName | The name of the webView set to which this webView will be added. May be nil. |
isLoading Returns YES if there are any pending loads.
HRESULT IWebView::mainFrameDocument | ( | [out, retval] IDOMDocument ** | document | ) |
mainFrameDocument
HRESULT IWebView::mainFrameIcon | ( | [out, retval] HBITMAP * | hBitmap | ) |
mainFrameIcon The methods returns the site icon for the current page loaded in the mainFrame.
mainFrameTitle
mainFrameURL
mediaStyle
HRESULT IWebView::MIMETypesShownAsHTML | ( | [out, retval] IEnumVARIANT ** | enumVariant | ) |
MIMETypesShownAsHTML
HRESULT IWebView::moveDragCaretToPoint | ( | [in] LPPOINT | point | ) |
HRESULT IWebView::pasteboardTypesForElement | ( | [in] IPropertyBag * | elementDictionary, |
[out, retval] IEnumVARIANT ** | enumVariant | ||
) |
HRESULT IWebView::pasteboardTypesForSelection | ( | [out, retval] IEnumVARIANT ** | enumVariant | ) |
pasteboardTypesForSelection Returns the pasteboard types that WebView can use for the current selection
HRESULT IWebView::policyDelegate | ( | [retval, out] IWebPolicyDelegate ** | d | ) |
policyDelegate Return the WebView's WebPolicyDelegate.
HRESULT IWebView::preferences | ( | [out, retval] IWebPreferences ** | prefs | ) |
preferences
preferencesIdentifier
registerURLSchemeAsLocal Adds the scheme to the list of schemes to be treated as local.
scheme | The scheme to register.
|
HRESULT IWebView::registerViewClass | ( | [in] IWebDocumentView * | view, |
[in] IWebDocumentRepresentation * | representation, | ||
[in] BSTR | forMIMEType | ||
) |
registerViewClass:representationClass:forMIMEType: Register classes that implement WebDocumentView and WebDocumentRepresentation respectively. A document class may register for a primary MIME type by excluding a subtype, i.e. "video/" will match the document class with all video types. More specific matching takes precedence over general matching.
viewClass | The WebDocumentView class to use to render data for a given MIME type. |
representationClass | The WebDocumentRepresentation class to use to represent data of the given MIME type. |
MIMEType | The MIME type to represent with an object of the given class.
|
HRESULT IWebView::removeDragCaret | ( | ) |
HRESULT IWebView::resourceLoadDelegate | ( | [retval, out] IWebResourceLoadDelegate ** | d | ) |
resourceLoadDelegate
HRESULT IWebView::searchFor | ( | [in] BSTR | str, |
[in] BOOL | forward, | ||
[in] BOOL | caseFlag, | ||
[in] BOOL | wrapFlag, | ||
[out, retval] BOOL * | found | ||
) |
searchFor:direction:caseSensitive: Searches a document view for a string and highlights the string if it is found. Starts the search from the current selection. Will search across all frames.
string | The string to search for. |
forward | YES to search forward, NO to seach backwards. |
caseFlag | YES to for case-sensitive search, NO for case-insensitive search. |
selectedText Returns the selection as a string
HRESULT IWebView::setAccessibilityDelegate | ( | [in] IAccessibilityDelegate * | d | ) |
accessibilityDelegate: Return the WebView's accessibilityDelegate.
delegate | The WebUIDelegate to set as the delegate.
|
setApplicationNameForUserAgent: Set the application name. This name will be used in user-agent strings that are chosen for best results in rendering web pages.
applicationName | The application name
|
setCustomTextEncodingName: Make the page display with a different text encoding; stops any load in progress. The text encoding passed in overrides the normal text encoding smarts including what's specified in a web page's header or HTTP response. The text encoding automatically goes back to the default when the top level frame changes to a new location. Setting the text encoding name to nil makes the webView use default encoding rules.
encoding | The text encoding name to use to display a page or nil.
|
setCustomUserAgent: Set the user agent. Setting this means that the webView should use this user-agent string instead of constructing a user-agent string for each URL. Setting it to nil causes the webView to construct the user-agent string for each URL for best results rendering web pages.
userAgentString | The user agent description
|
HRESULT IWebView::setDownloadDelegate | ( | [in] IWebDownloadDelegate * | d | ) |
setDownloadDelegate: Set the WebView's WebDownloadDelegate. The download delegate is retained by WebDownload when any downloads are in progress.
delegate | The WebDownloadDelegate to set as the download delegate.
|
setDrawsBackground:
drawsBackround | YES to cause the receiver to draw a default white background, NO otherwise. Sets whether the receiver draws a default white background when the loaded page has no background specified.
|
Implemented in WebView.
HRESULT IWebView::setFrameLoadDelegate | ( | [in] IWebFrameLoadDelegate * | d | ) |
setFrameLoadDelegate: Set the WebView's WebFrameLoadDelegate delegate.
delegate | The WebFrameLoadDelegate to set as the delegate.
|
setHostWindow:
setMainFrameURL:
URLString | The URL to load in the mainFrame.
|
setMaintainsBackForwardList: Enable or disable the use of a backforward list for this webView.
flag | Turns use of the back forward list on or off
|
Implemented in WebView.
HRESULT IWebView::setMIMETypesShownAsHTML | ( | [in, size_is(cMimeTypes)] BSTR * | mimeTypes, |
[in] int | cMimeTypes | ||
) |
setMIMETypesShownAsHTML: Sets the array of NSString MIME types that WebKit will attempt to render as HTML. Typically you will retrieve the built-in array using MIMETypesShownAsHTML and add additional MIME types to that array.
HRESULT IWebView::setPolicyDelegate | ( | [in] IWebPolicyDelegate * | d | ) |
setPolicyDelegate: Set the WebView's WebPolicyDelegate delegate.
delegate | The WebPolicyDelegate to set as the delegate.
|
HRESULT IWebView::setPreferences | ( | [in] IWebPreferences * | prefs | ) |
setPreferences:
preferences | The preferences to use for the webView. Override the standard setting for the webView.
|
setPreferencesIdentifier:
anIdentifier | The string to use a prefix for storing values for this WebView in the user defaults database. If the WebPreferences for this WebView are stored in the user defaults database, the string set in this method will be used a key prefix.
|
HRESULT IWebView::setResourceLoadDelegate | ( | [in] IWebResourceLoadDelegate * | d | ) |
setResourceLoadDelegate: Set the WebView's WebResourceLoadDelegate load delegate.
delegate | The WebResourceLoadDelegate to set as the load delegate.
|
HRESULT IWebView::setTextSizeMultiplier | ( | [in] float | multiplier | ) |
HRESULT IWebView::setUIDelegate | ( | [in] IWebUIDelegate * | d | ) |
setUIDelegate: Set the WebView's WebUIDelegate.
delegate | The WebUIDelegate to set as the delegate.
|
supportsTextEncoding Find out if the current web page supports text encodings.
HRESULT IWebView::textSizeMultiplier | ( | [out, retval] float * | multiplier | ) |
textSizeMultiplier
HRESULT IWebView::uiDelegate | ( | [retval, out] IWebUIDelegate ** | d | ) |
UIDelegate Return the WebView's WebUIDelegate.
URLFromPasteboard: Returns a URL from a pasteboard
pasteboard | The pasteboard with a URL |
HRESULT IWebView::URLTitleFromPasteboard | ( | [in] IDataObject * | pasteboard, |
[out, retval] BSTR * | urlTitle | ||
) |
URLTitleFromPasteboard: Returns a URL title from a pasteboard
pasteboard | The pasteboard with a URL title |
HRESULT IWebView::windowScriptObject | ( | [out, retval] IWebScriptObject ** | webScriptObject | ) |
windowScriptObject windowScriptObject return a WebScriptObject that represents the window object from the script environment.
HRESULT IWebView::writeElement | ( | [in] IPropertyBag * | elementDictionary, |
[in, size_is(cWithPasteboardTypes)] BSTR * | withPasteboardTypes, | ||
[in] int | cWithPasteboardTypes, | ||
[in] IDataObject * | pasteboard | ||
) |
writeElement:withPasteboardTypes:toPasteboard: Writes an element to the pasteboard