Protocol

WebDocumentView

This protocol is adopted by the document view of a WebFrameView. You can extend WebKit to support additional MIME types by implementing your own document view and document representation classes to render data for specific MIME types. You register those classes using the WebFrame registerClass(_:representationClass:forMIMEType:) method. Classes that adopt this protocol are expected to be subclasses of NSView.

Symbols

Setting the data source

func setDataSource(WebDataSource!)
Required.

Invoked when the data source for this document has been changed.

func dataSourceUpdated(WebDataSource!)
Required.

Invoked when additional data has been received.

Controlling the layout

func setNeedsLayout(Bool)
Required.

Sets whether or not the receiver should change its layout.

func layout()
Required.

Invoked when the receiver should change its layout immediately.

Attaching to a window

func viewDidMoveToHostWindow()
Required.

Invoked when a web view's host window is set.

func viewWillMove(toHostWindow: NSWindow!)
Required.

Invoked when a web view’s host window is about to change.

Relationships

Inherits From