webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Class Methods | Protected Member Functions | Protected Attributes | List of all members
WebFramePolicyListener Class Reference

#import <WebFramePolicyListener.h>

Inheritance diagram for WebFramePolicyListener:
IWebPolicyDecisionListener IWebFormSubmissionListener NSObject <WebPolicyDecisionListener> <WebFormSubmissionListener>

Instance Methods

(id- initWithFrame:policyFunction:
 
(void- invalidate
 
(virtual HRESULT STDMETHODCALLTYPE) - QueryInterface
 
(virtual ULONG STDMETHODCALLTYPE) - AddRef
 
(virtual ULONG STDMETHODCALLTYPE) - Release
 
(virtual HRESULT STDMETHODCALLTYPE) - use
 
(virtual HRESULT STDMETHODCALLTYPE) - download
 
(virtual HRESULT STDMETHODCALLTYPE) - ignore
 
(virtual HRESULT STDMETHODCALLTYPE) - continueSubmit
 
(void- receivedPolicyDecision
 
(void- invalidate
 

Class Methods

(static WebFramePolicyListener *) + createInstance
 

Protected Member Functions

() - WebFramePolicyListener
 
() - ~WebFramePolicyListener
 

Protected Attributes

RefPtr< Frame_frame
 
FramePolicyFunction _policyFunction
 

Constructor & Destructor Documentation

◆ WebFramePolicyListener()

◆ ~WebFramePolicyListener()

Method Documentation

◆ AddRef()

- (ULONG) AddRef (void

◆ continueSubmit()

- (HRESULT) continueSubmit

◆ createInstance()

+ (WebFramePolicyListener *) createInstance (PassRefPtr< WebCore::Frame >)  frame

◆ download()

- (HRESULT) download

download Download the resource instead of displaying it. This method is more than just a convenience because it allows an in-progress navigation to be converted to a download based on content type, without having to stop and restart the load.

  • (void)download;

Implements IWebPolicyDecisionListener.

◆ ignore()

- (HRESULT) ignore

ignore Do nothing (but the client may choose to handle the request itself) A policy of ignore prevents WebKit from doing anything further with the load, however, the client is still free to handle the request in some other way, such as opening a new window, opening a new window behind the current one, opening the URL in an external app, revealing the location in Finder if a file URL, etc.

  • (void)ignore;

Implements IWebPolicyDecisionListener.

◆ initWithFrame:policyFunction:()

- (id) initWithFrame: (Frame*)  frame
policyFunction: (FramePolicyFunction policyFunction 

◆ invalidate() [1/2]

- (void) invalidate

◆ invalidate() [2/2]

- (void) invalidate

◆ QueryInterface()

- (HRESULT) QueryInterface (_In_ REFIID)  riid
(_COM_Outptr_ void **)  ppvObject 

◆ receivedPolicyDecision()

- (void) receivedPolicyDecision (WebCore::PolicyAction action

◆ Release()

- (ULONG) Release (void

◆ use()

- (HRESULT) use

use Use the resource If there remain more policy decisions to be made, then the next policy delegate method gets to decide. This will be either the next navigation policy delegate if there is a redirect, or the content policy delegate. If there are no more policy decisions to be made, the resource will be displayed inline if possible. If there is no view available to display the resource inline, then unableToImplementPolicyWithError:frame: will be called with an appropriate error.

If a new window is going to be created for this navigation as a result of frame targeting, then it will be created once you call this method.

  • (void)use;

Implements IWebPolicyDecisionListener.

Member Data Documentation

◆ _frame

- (RefPtr<Frame>) _frame
protected

◆ _policyFunction

- (FramePolicyFunction) _policyFunction
protected

The documentation for this class was generated from the following files: