webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
IWebDocumentRepresentation Interface Reference

import"IWebDocument.idl";

Inheritance diagram for IWebDocumentRepresentation:
WebHTMLRepresentation

Public Member Functions

HRESULT setDataSource ([in] IWebDataSource *dataSource)
 
HRESULT receivedData ([in] IStream *data, [in] IWebDataSource *dataSource)
 
HRESULT receivedError ([in] IWebError *error, [in] IWebDataSource *dataSource)
 
HRESULT finishedLoadingWithDataSource ([in] IWebDataSource *dataSource)
 
HRESULT canProvideDocumentSource ([out, retval] BOOL *result)
 
HRESULT documentSource ([out, retval] BSTR *source)
 
HRESULT title ([out, retval] BSTR *docTitle)
 

Member Function Documentation

◆ canProvideDocumentSource()

HRESULT IWebDocumentRepresentation::canProvideDocumentSource ( [out, retval] BOOL result)

canProvideDocumentSource

Returns
Returns true if the representation can provide document source.
  • (BOOL)canProvideDocumentSource;

◆ documentSource()

HRESULT IWebDocumentRepresentation::documentSource ( [out, retval] BSTR source)

documentSource

Returns
Returns the textual source representation of the document. For HTML documents this is the original HTML source.
  • (NSString *)documentSource;

◆ finishedLoadingWithDataSource()

HRESULT IWebDocumentRepresentation::finishedLoadingWithDataSource ( [in] IWebDataSource dataSource)

finishedLoadingWithDataSource: Called when the data source has finished loading.

Parameters
dataSourceThe datasource that has finished loading.
  • (void)finishedLoadingWithDataSource:(WebDataSource *)dataSource;

◆ receivedData()

HRESULT IWebDocumentRepresentation::receivedData ( [in] IStream *  data,
[in] IWebDataSource dataSource 
)

receivedData:withDataSource: Called when the data source has received data.

Parameters
dataThe data that the data source has received.
dataSourceThe data source that has received data.
  • (void)receivedData:(NSData *)data withDataSource:(WebDataSource *)dataSource;

◆ receivedError()

HRESULT IWebDocumentRepresentation::receivedError ( [in] IWebError error,
[in] IWebDataSource dataSource 
)

receivedError:withDataSource: Called when the data source has received an error.

Parameters
errorThe error that the data source has received.
dataSourceThe data source that has received the error.
  • (void)receivedError:(NSError *)error withDataSource:(WebDataSource *)dataSource;

◆ setDataSource()

HRESULT IWebDocumentRepresentation::setDataSource ( [in] IWebDataSource dataSource)

setDataSource: Called soon after the document representation is created.

Parameters
dataSourceThe data source that is set.
  • (void)setDataSource:(WebDataSource *)dataSource;

◆ title()

HRESULT IWebDocumentRepresentation::title ( [out, retval] BSTR docTitle)

title

Returns
Return the title for the document.
  • (NSString *)title;

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