webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | List of all members
<WebDocumentRepresentation > Protocol Reference

#import <WebDocument.h>

Inheritance diagram for <WebDocumentRepresentation >:

Instance Methods

(void- setDataSource:
 
(void- receivedData:withDataSource:
 
(void- receivedError:withDataSource:
 
(void- finishedLoadingWithDataSource:
 
(BOOL- canProvideDocumentSource
 
(NSString *) - documentSource
 
(NSString *) - title
 

Method Documentation

◆ canProvideDocumentSource()

- (BOOL WebDocumentRepresentation) canProvideDocumentSource

canProvideDocumentSource

Returns
Returns true if the representation can provide document source.

◆ documentSource()

- (NSString * WebDocumentRepresentation) documentSource

documentSource

Returns
Returns the textual source representation of the document. For HTML documents this is the original HTML source.

◆ finishedLoadingWithDataSource:()

- (void WebDocumentRepresentation) finishedLoadingWithDataSource: (WebDataSource *)  dataSource

finishedLoadingWithDataSource: Called when the data source has finished loading.

Parameters
dataSourceThe datasource that has finished loading.

◆ receivedData:withDataSource:()

- (void WebDocumentRepresentation) receivedData: (NSData *)  data
withDataSource: (WebDataSource *)  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.

◆ receivedError:withDataSource:()

- (void WebDocumentRepresentation) receivedError: (NSError *)  error
withDataSource: (WebDataSource *)  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.

◆ setDataSource:()

- (void WebDocumentRepresentation) setDataSource: (WebDataSource *)  dataSource

setDataSource: Called soon after the document representation is created.

Parameters
dataSourceThe data source that is set.

◆ title()

title

Returns
Return the title for the document.

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