Trait NSObjectWebPlugInContainer

Source
pub unsafe trait NSObjectWebPlugInContainer:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn webPlugInContainerLoadRequest_inFrame(
        &self,
        request: Option<&NSURLRequest>,
        target: Option<&NSString>,
    ) { ... }
    unsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>) { ... }
    unsafe fn webFrame(&self) -> Option<Retained<WebFrame>> { ... }
}
Available on crate feature WebPluginContainer only.
Expand description

Category “WebPlugInContainer” on NSObject. This informal protocol enables a plug-in to request that its containing application perform certain operations.

Provided Methods§

Source

unsafe fn webPlugInContainerLoadRequest_inFrame( &self, request: Option<&NSURLRequest>, target: Option<&NSString>, )

Tell the application to show a URL in a target frame

Parameter request: The request to be loaded.

Parameter target: The target frame. If the frame with the specified target is not found, a new window is opened and the main frame of the new window is named with the specified target. If nil is specified, the frame that contains the applet is targeted.

Source

unsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>)

Tell the application to show the specified status message.

Parameter message: The string to be shown.

Source

unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>

Available on crate feature WebFrame only.

Allows the plug-in to access the WebFrame that contains the plug-in. This method will not be implemented by containers that are not WebKit based.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSObjectWebPlugInContainer for NSObject

Implementors§