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

#import <WebFrameLoadDelegate.h>

Inheritance diagram for <WebFrameLoadDelegate >:

Instance Methods

(void- webView:didStartProvisionalLoadForFrame:
 
(void- webView:didReceiveServerRedirectForProvisionalLoadForFrame:
 
(void- webView:didFailProvisionalLoadWithError:forFrame:
 
(void- webView:didCommitLoadForFrame:
 
(void- webView:didReceiveTitle:forFrame:
 
(void- webView:didReceiveIcon:forFrame:
 
(void- webView:didFinishLoadForFrame:
 
(void- webView:didFailLoadWithError:forFrame:
 
(void- webView:didChangeLocationWithinPageForFrame:
 
(void- webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:
 
(void- webView:didCancelClientRedirectForFrame:
 
(void- webView:willCloseFrame:
 
(void- webView:didClearWindowObject:forFrame:
 
(void- webView:windowScriptObjectAvailable:
 

Method Documentation

◆ webView:didCancelClientRedirectForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didCancelClientRedirectForFrame: (WebFrame *)  frame 
optional

webView:didCancelClientRedirectForFrame: Notifies the delegate that a pending client-side redirect has been cancelled

Parameters
senderThe WebView sending the message
frameThe frame for which the pending redirect was cancelled A client-side redirect can be cancelled if a frame changes location before the timeout.

◆ webView:didChangeLocationWithinPageForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didChangeLocationWithinPageForFrame: (WebFrame *)  frame 
optional

webView:didChangeLocationWithinPageForFrame: Notifies the delegate that the scroll position in a frame has changed

Parameters
senderThe WebView sending the message
frameThe frame that scrolled This method is called when anchors within a page have been clicked.

◆ webView:didClearWindowObject:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  webView
didClearWindowObject: (WebScriptObject *)  windowObject
forFrame: (WebFrame *)  frame 
optional

webView:didClearWindowObject:forFrame: Notifies the delegate that the JavaScript window object in a frame has been cleared in preparation for a new load. This is the preferred place to set custom properties on the window object using the WebScriptObject and JavaScriptCore APIs.

Parameters
webViewThe webView sending the message.
windowObjectThe WebScriptObject representing the frame's JavaScript window object.
frameThe WebFrame to which windowObject belongs. If a delegate implements both webView:didClearWindowObject:forFrame: and webView:windowScriptObjectAvailable:, only webView:didClearWindowObject:forFrame: will be invoked. This enables a delegate to implement both methods for backwards compatibility with older versions of WebKit.

◆ webView:didCommitLoadForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didCommitLoadForFrame: (WebFrame *)  frame 
optional

webView:didCommitLoadForFrame: Notifies the delegate that the load has changed from provisional to committed

Parameters
senderThe WebView sending the message
frameThe frame for which the load has committed This method is called after the provisional data source has become the committed data source.

In some cases, a single load may be committed more than once. This happens in the case of multipart/x-mixed-replace, also known as "server push". In this case, a single location change leads to multiple documents that are loaded in sequence. When this happens, a new commit will be sent for each document.

◆ webView:didFailLoadWithError:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didFailLoadWithError: (NSError *)  error
forFrame: (WebFrame *)  frame 
optional

webView:didFailLoadWithError:forFrame: Notifies the delegate that the committed load of a frame has failed

Parameters
senderThe WebView sending the message
errorThe error that occurred
frameThe frame that failed to load This method is called after a data source has committed but failed to completely load.

◆ webView:didFailProvisionalLoadWithError:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didFailProvisionalLoadWithError: (NSError *)  error
forFrame: (WebFrame *)  frame 
optional

webView:didFailProvisionalLoadWithError:forFrame: Notifies the delegate that the provisional load has failed

Parameters
senderThe WebView sending the message
errorThe error that occurred
frameThe frame for which the error occurred This method is called after the provisional data source has failed to load. The frame will continue to display the contents of the committed data source if there is one.

◆ webView:didFinishLoadForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didFinishLoadForFrame: (WebFrame *)  frame 
optional

webView:didFinishLoadForFrame: Notifies the delegate that the committed load of a frame has completed

Parameters
senderThe WebView sending the message
frameThe frame that finished loading This method is called after the committed data source of a frame has successfully loaded and will only be called when all subresources such as images and stylesheets are done loading. Plug-In content and JavaScript-requested loads may occur after this method is called.

◆ webView:didReceiveIcon:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didReceiveIcon: (NSImage *)  image
forFrame: (WebFrame *)  frame 
optional

webView:didReceiveIcon:forFrame: Notifies the delegate that a page icon image for a frame has been received

Parameters
webViewThe WebView sending the message
imageThe icon image. Also known as a "favicon".
frameThe frame for which a page icon has been received

◆ webView:didReceiveServerRedirectForProvisionalLoadForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didReceiveServerRedirectForProvisionalLoadForFrame: (WebFrame *)  frame 
optional

webView:didReceiveServerRedirectForProvisionalLoadForFrame: Notifies the delegate that a server redirect occurred during the provisional load

Parameters
senderThe WebView sending the message
frameThe frame for which the redirect occurred

◆ webView:didReceiveTitle:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didReceiveTitle: (NSString *)  title
forFrame: (WebFrame *)  frame 
optional

webView:didReceiveTitle:forFrame: Notifies the delegate that the page title for a frame has been received

Parameters
senderThe WebView sending the message
titleThe new page title
frameThe frame for which the title has been received The title may update during loading; clients should be prepared for this.

◆ webView:didStartProvisionalLoadForFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
didStartProvisionalLoadForFrame: (WebFrame *)  frame 
optional

webView:didStartProvisionalLoadForFrame: Notifies the delegate that the provisional load of a frame has started

Parameters
senderThe WebView sending the message
frameThe frame for which the provisional load has started This method is called after the provisional data source of a frame has started to load.

◆ webView:willCloseFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
willCloseFrame: (WebFrame *)  frame 
optional

webView:willCloseFrame: Notifies the delegate that a frame will be closed

Parameters
senderThe WebView sending the message
frameThe frame that will be closed This method is called right before WebKit is done with the frame and the objects that it contains.

◆ webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:()

- (void WebFrameLoadDelegate) webView: (WebView *)  sender
willPerformClientRedirectToURL: (NSURL *)  URL
delay: (NSTimeInterval seconds
fireDate: (NSDate *)  date
forFrame: (WebFrame *)  frame 
optional

webView:willPerformClientRedirectToURL:delay:fireDate:forFrame: Notifies the delegate that a frame will perform a client-side redirect

Parameters
senderThe WebView sending the message
URLThe URL to be redirected to
secondsSeconds in which the redirect will happen
dateThe fire date
frameThe frame on which the redirect will occur This method can be used to continue progress feedback while a client-side redirect is pending.

◆ webView:windowScriptObjectAvailable:()

- (void WebFrameLoadDelegate) webView: (WebView *)  webView
windowScriptObjectAvailable: (10_4) 
(10_5)  WEBKIT_DEPRECATED_MAC 
optional

webView:windowScriptObjectAvailable: Notifies the delegate that the scripting object for a page is available. This is called before the page is loaded. It may be useful to allow delegates to bind native objects to the window.

Parameters
webViewThe webView sending the message.
windowScriptObjectThe WebScriptObject for the window in the scripting environment. This method is deprecated. Consider using webView:didClearWindowObject:forFrame: instead.

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