2
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions
7
* 1. Redistributions of source code must retain the above copyright
8
* notice, this list of conditions and the following disclaimer.
9
* 2. Redistributions in binary form must reproduce the above copyright
10
* notice, this list of conditions and the following disclaimer in the
11
* documentation and/or other materials provided with the distribution.
13
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
#include <WebKit/WebKitPluginHostTypes.defs>
28
// FIXME: Come up with a better name.
29
subsystem WebKitPluginClient 300;
34
simpleroutine PCStatusText(clientPort :mach_port_t;
38
routine PCLoadURL(clientPort :mach_port_t;
44
out resultCode :uint16_t;
45
out requestID :uint32_t);
47
simpleroutine PCCancelLoadURL(clientPort :mach_port_t;
52
simpleroutine PCInvalidateRect(clientPort :mach_port_t;
59
routine PCGetCookies(clientPort :mach_port_t;
62
out returnValue :boolean_t;
63
out cookies :data_t, dealloc);
65
routine PCSetCookies(clientPort :mach_port_t;
69
out returnValue :boolean_t);
71
routine PCGetProxy(clientPort :mach_port_t;
74
out returnValue :boolean_t;
75
out proxy :data_t, dealloc);
77
routine PCGetAuthenticationInfo(clientPort :mach_port_t;
84
out returnValue :boolean_t;
85
out username :data_t, dealloc;
86
out password :data_t, dealloc);
88
routine PCConvertPoint(clientPort :mach_port_t;
92
sourceSpace :uint32_t;
94
out returnValue :boolean_t;
100
routine PCGetStringIdentifier(clientPort :mach_port_t;
102
out identifier :uint64_t);
104
routine PCGetIntIdentifier(clientPort :mach_port_t;
106
out identifier: uint64_t);
108
routine PCGetWindowNPObject(clientPort :mach_port_t;
110
out objectID :uint32_t);
111
routine PCGetPluginElementNPObject(clientPort :mach_port_t;
113
out objectID :uint32_t);
115
routine PCForgetBrowserObject(clientPort :mach_port_t;
119
simpleroutine PCEvaluate(clientPort :mach_port_t;
124
allowPopups :boolean_t);
126
simpleroutine PCInvoke(clientPort :mach_port_t;
130
methodNameIdentifier :uint64_t;
133
simpleroutine PCInvokeDefault(clientPort :mach_port_t;
139
routine PCConstruct(clientPort :mach_port_t;
143
out returnValue :boolean_t;
144
out result :data_t, dealloc);
146
simpleroutine PCGetProperty(clientPort :mach_port_t;
150
propertyNameIdentifier :uint64_t);
152
simpleroutine PCSetProperty(clientPort :mach_port_t;
156
propertyNameIdentifier :uint64_t;
159
simpleroutine PCRemoveProperty(clientPort :mach_port_t;
163
propertyNameIdentifier :uint64_t);
165
simpleroutine PCHasProperty(clientPort :mach_port_t;
169
propertyNameIdentifier :uint64_t);
171
simpleroutine PCHasMethod(clientPort :mach_port_t;
175
methodNameIdentifier :uint64_t);
177
routine PCIdentifierInfo(clientPort :mach_port_t;
178
identifier :uint64_t;
179
out info :data_t, dealloc);
181
simpleroutine PCEnumerate(clientPort :mach_port_t;
188
simpleroutine PCSetMenuBarVisible(clientPort :mach_port_t;
191
simpleroutine PCSetModal(clientPort :mach_port_t;
194
routine PCCheckIfAllowedToLoadURL(clientPort :mach_port_t;
198
out checkID :uint32_t);
200
simpleroutine PCCancelCheckIfAllowedToLoadURL(clientPort :mach_port_t;
204
routine PCResolveURL(clientPort :mach_port_t;
208
out resolvedURL :data_t, dealloc);
211
simpleroutine PCInstantiatePluginReply(clientPort :mach_port_t;
214
result :kern_return_t;
215
renderContextID :uint32_t;
216
rendererType :uint32_t);
218
simpleroutine PCGetScriptableNPObjectReply(clientPort :mach_port_t;
223
simpleroutine PCBooleanReply(clientPort :mach_port_t;
228
simpleroutine PCBooleanAndDataReply(clientPort :mach_port_t;
231
returnValue :boolean_t;
234
simpleroutine PCSetFullscreenWindowIsShowing(clientPort :mach_port_t;
235
isShowing :boolean_t);
237
simpleroutine PCSetException(clientPort :mach_port_t;