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
67
68
69
70
71
72
73
74
75
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
/// the plug-in's view.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webpluginbaseurlkey?language=objc)
pub static WebPlugInBaseURLKey: Option<&'static NSString>;
}
extern "C" {
/// and values of all attributes of the HTML element associated with the plug-in AND
/// the names and values of all parameters to be passed to the plug-in (e.g. PARAM
/// elements within an APPLET element). In the case of a conflict between names,
/// the attributes of an element take precedence over any PARAMs. All of the keys
/// and values in this NSDictionary must be NSStrings.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webpluginattributeskey?language=objc)
pub static WebPlugInAttributesKey: Option<&'static NSString>;
}
extern "C" {
/// WebPlugInContainer informal protocol. This object is used for
/// callbacks from the plug-in to the app. if this argument is nil, no callbacks will
/// occur.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webplugincontainerkey?language=objc)
pub static WebPlugInContainerKey: Option<&'static NSString>;
}
extern "C" {
/// the plug-in. May be nil.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webplugincontainingelementkey?language=objc)
pub static WebPlugInContainingElementKey: Option<&'static NSString>;
}
extern "C" {
/// own main resource (the "src" URL, in most cases). If YES, the plug-in should load its own main resource. If NO, the
/// plug-in should use the data provided by WebKit. See -webPlugInMainResourceReceivedData: in WebPluginPrivate.h.
/// For compatibility with older versions of WebKit, the plug-in should assume that the value for
/// WebPlugInShouldLoadMainResourceKey is NO if it is absent from the arguments dictionary.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webpluginshouldloadmainresourcekey?language=objc)
pub static WebPlugInShouldLoadMainResourceKey: Option<&'static NSString>;
}
extern_protocol!(
/// WebPlugInViewFactory are used to create the NSView for a plug-in.
/// The principal class of the plug-in bundle must implement this protocol.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/webpluginviewfactory?language=objc)
#[deprecated]
pub unsafe trait WebPlugInViewFactory: NSObjectProtocol {
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
/// Parameter `arguments`: The arguments dictionary with the mentioned keys and objects. This method is required to implement.
///
/// Returns: Returns an NSView object that conforms to the WebPlugIn informal protocol.
#[deprecated]
#[unsafe(method(plugInViewWithArguments:))]
#[unsafe(method_family = none)]
unsafe fn plugInViewWithArguments(
arguments: Option<&NSDictionary>,
mtm: MainThreadMarker,
) -> Option<Retained<NSView>>;
}
);