#import <WebFrame.h>
Every web page is represented by at least one WebFrame. A WebFrame has a WebFrameView and a WebDataSource.
◆ findFrameNamed:()
findFrameNamed: This method returns a frame with the given name. findFrameNamed returns self for _self and _current, the parent frame for _parent and the main frame for _top. findFrameNamed returns self for _parent and _top if the receiver is the mainFrame. findFrameNamed first searches from the current frame to all descending frames then the rest of the frames in the WebView. If still not found, findFrameNamed searches the frames of the other WebViews.
- Parameters
-
name | The name of the frame to find. |
- Returns
- The frame matching the provided name. nil if the frame is not found.
◆ initWithName:webFrameView:webView:()
initWithName:webFrameView:webView: The designated initializer of WebFrame. WebFrames are normally created for you by the WebView. You should not need to invoke this method directly.
- Parameters
-
- Returns
- Returns an initialized WebFrame.
◆ loadAlternateHTMLString:baseURL:forUnreachableURL:()
- (void) loadAlternateHTMLString: |
|
(NSString *) |
string |
baseURL: |
|
(NSURL *) |
baseURL |
forUnreachableURL: |
|
(NSURL *) |
unreachableURL |
|
|
| |
loadAlternateHTMLString:baseURL:forUnreachableURL: Loads a page to display as a substitute for a URL that could not be reached. This allows clients to display page-loading errors in the webview itself. This is typically called while processing the WebFrameLoadDelegate method -webView:didFailProvisionalLoadWithError:forFrame: or one of the the WebPolicyDelegate methods -webView:decidePolicyForMIMEType:request:frame:decisionListener: or -webView:unableToImplementPolicyWithError:frame:. If it is called from within one of those three delegate methods then the back/forward list will be maintained appropriately.
- Parameters
-
string | The string to use for the main page of the document. |
baseURL | The baseURL to apply to relative URLs within the document. |
unreachableURL | The URL for which this page will serve as alternate content. |
◆ loadArchive:()
◆ loadData:MIMEType:textEncodingName:baseURL:()
loadData:MIMEType:textEncodingName:baseURL:
- Parameters
-
data | The data to use for the main page of the document. |
MIMEType | The MIME type of the data. |
encodingName | The encoding of the data. |
URL | The base URL to apply to relative URLs within the document. |
◆ loadHTMLString:baseURL:()
loadHTMLString:baseURL:
- Parameters
-
string | The string to use for the main page of the document. |
URL | The base URL to apply to relative URLs within the document. |
◆ loadRequest:()
loadRequest:
- Parameters
-
request | The web request to load. |
◆ numberOfPagesWithPageWidth:pageHeight:()
- (int) numberOfPagesWithPageWidth: |
|
(float) |
pageWidthInPixels |
pageHeight: |
|
(float) |
pageHeightInPixels |
|
|
| |
◆ printToCGContext:pageWidth:pageHeight:()
- (void) printToCGContext: |
|
(CGContextRef) |
cgContext |
pageWidth: |
|
(float) |
pageWidthInPixels |
pageHeight: |
|
(float) |
pageHeightInPixels |
|
|
| |
◆ reload()
reload Performs HTTP/1.1 end-to-end revalidation using cache-validating conditionals if possible.
◆ reloadFromOrigin()
reloadFromOrigin Performs HTTP/1.1 end-to-end reload.
◆ renderTreeAsExternalRepresentationForPrinting:()
- (NSString *) renderTreeAsExternalRepresentationForPrinting: |
|
(BOOL) |
forPrinting |
|
◆ stopLoading()
stopLoading Stop any pending loads on the frame's data source, and its children.
◆ _private
◆ childFrames
An array of WebFrame. The frames in the array are associated with a frame set or iframe.
◆ dataSource
The datasource for this frame. Returns the committed data source. Will return nil if the provisional data source hasn't yet been loaded.
◆ DOMDocument
The DOM document of the frame. Returns nil if the frame does not contain a DOM document such as a standalone image.
◆ frameElement
◆ frameView
◆ globalContext
The frame's global JavaScript execution context. Use this method to bridge between the WebKit and JavaScriptCore APIs.
◆ name
◆ parentFrame
The frame containing this frame, or nil if this is a top level frame.
◆ provisionalDataSource
The provisional datasource of this frame. Will return the provisional data source. The provisional data source will be nil if no data source has been set on the frame, or the data source has successfully transitioned to the committed data source.
◆ webView
The WebView for the document that includes this frame.
◆ windowObject
The documentation for this class was generated from the following files: