1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
mod private_NSObjectWebPlugInContainer {
pub trait Sealed {}
}
/// Category "WebPlugInContainer" on [`NSObject`].
/// This informal protocol enables a plug-in to request that its containing application
/// perform certain operations.
#[doc(alias = "WebPlugInContainer")]
pub unsafe trait NSObjectWebPlugInContainer:
ClassType + Sized + private_NSObjectWebPlugInContainer::Sealed
{
extern_methods!(
/// 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.
#[unsafe(method(webPlugInContainerLoadRequest:inFrame:))]
#[unsafe(method_family = none)]
unsafe fn webPlugInContainerLoadRequest_inFrame(
&self,
request: Option<&NSURLRequest>,
target: Option<&NSString>,
);
/// Tell the application to show the specified status message.
///
/// Parameter `message`: The string to be shown.
#[unsafe(method(webPlugInContainerShowStatus:))]
#[unsafe(method_family = none)]
unsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
/// The color that should be used for any special drawing when
/// plug-in is selected.
#[unsafe(method(webPlugInContainerSelectionColor))]
#[unsafe(method_family = none)]
unsafe fn webPlugInContainerSelectionColor(&self) -> Option<Retained<NSColor>>;
#[cfg(feature = "WebFrame")]
/// 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.
#[unsafe(method(webFrame))]
#[unsafe(method_family = none)]
unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>;
);
}
impl private_NSObjectWebPlugInContainer::Sealed for NSObject {}
unsafe impl NSObjectWebPlugInContainer for NSObject {}