/usr/include/thunderbird/nsIPluginInstanceOwner.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPluginInstanceOwner.idl
*/
#ifndef __gen_nsIPluginInstanceOwner_h__
#define __gen_nsIPluginInstanceOwner_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nspluginroot_h__
#include "nspluginroot.h"
#endif
#ifndef __gen_nsIInputStream_h__
#include "nsIInputStream.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDocument; /* forward declaration */
#include "npapi.h"
#include "mozilla/EventForwards.h"
class nsNPAPIPluginInstance;
enum nsPluginTagType {
nsPluginTagType_Unknown,
nsPluginTagType_Embed,
nsPluginTagType_Object,
nsPluginTagType_Applet
};
/* starting interface: nsIPluginInstanceOwner */
#define NS_IPLUGININSTANCEOWNER_IID_STR "7d65452e-c167-4cba-a0e3-ddc61bdde8c3"
#define NS_IPLUGININSTANCEOWNER_IID \
{0x7d65452e, 0xc167, 0x4cba, \
{ 0xa0, 0xe3, 0xdd, 0xc6, 0x1b, 0xdd, 0xe8, 0xc3 }}
class nsIPluginInstanceOwner : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGININSTANCEOWNER_IID)
/* void setInstance (in nsNPAPIPluginInstancePtr aInstance); */
NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) = 0;
/* nsNPAPIPluginInstancePtr getInstance (); */
NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval) = 0;
/* void getWindow (in NPWindowStarRef aWindow); */
NS_IMETHOD GetWindow(NPWindow * & aWindow) = 0;
/* readonly attribute int32_t mode; */
NS_IMETHOD GetMode(int32_t *aMode) = 0;
/* void createWidget (); */
NS_IMETHOD CreateWidget(void) = 0;
/**
* Called when there is a valid target so that the proper
* frame can be updated with new content. will not be called
* with nullptr aTarget.
*/
NS_IMETHOD
GetURL(const char *aURL, const char *aTarget,
nsIInputStream *aPostStream,
void *aHeadersData, uint32_t aHeadersDataLen,
bool aDoCheckLoadURIChecks) = 0;
/* readonly attribute nsIDocument document; */
NS_IMETHOD GetDocument(nsIDocument * *aDocument) = 0;
/* void invalidateRect (in NPRectPtr aRect); */
NS_IMETHOD InvalidateRect(NPRect *aRect) = 0;
/* void invalidateRegion (in NPRegion aRegion); */
NS_IMETHOD InvalidateRegion(NPRegion aRegion) = 0;
/* void redrawPlugin (); */
NS_IMETHOD RedrawPlugin(void) = 0;
/* void getNetscapeWindow (in voidPtr aValue); */
NS_IMETHOD GetNetscapeWindow(void *aValue) = 0;
virtual NPBool ConvertPoint(double sourceX, double sourceY, NPCoordinateSpace sourceSpace,
double *destX, double *destY, NPCoordinateSpace destSpace) = 0;
virtual NPError InitAsyncSurface(NPSize *size, NPImageFormat format,
void *initData, NPAsyncSurface *surface) = 0;
virtual NPError FinalizeAsyncSurface(NPAsyncSurface *surface) = 0;
virtual void SetCurrentAsyncSurface(NPAsyncSurface *surface, NPRect *changed) = 0;
/* void setEventModel (in int32_t eventModel); */
NS_IMETHOD SetEventModel(int32_t eventModel) = 0;
/* void callSetWindow (); */
NS_IMETHOD CallSetWindow(void) = 0;
/* double getContentsScaleFactor (); */
NS_IMETHOD GetContentsScaleFactor(double *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginInstanceOwner, NS_IPLUGININSTANCEOWNER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPLUGININSTANCEOWNER \
NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) override; \
NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval) override; \
NS_IMETHOD GetWindow(NPWindow * & aWindow) override; \
NS_IMETHOD GetMode(int32_t *aMode) override; \
NS_IMETHOD CreateWidget(void) override; \
NS_IMETHOD GetDocument(nsIDocument * *aDocument) override; \
NS_IMETHOD InvalidateRect(NPRect *aRect) override; \
NS_IMETHOD InvalidateRegion(NPRegion aRegion) override; \
NS_IMETHOD RedrawPlugin(void) override; \
NS_IMETHOD GetNetscapeWindow(void *aValue) override; \
NS_IMETHOD SetEventModel(int32_t eventModel) override; \
NS_IMETHOD CallSetWindow(void) override; \
NS_IMETHOD GetContentsScaleFactor(double *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPLUGININSTANCEOWNER \
NS_METHOD SetInstance(nsNPAPIPluginInstance *aInstance); \
NS_METHOD GetInstance(nsNPAPIPluginInstance **_retval); \
NS_METHOD GetWindow(NPWindow * & aWindow); \
NS_METHOD GetMode(int32_t *aMode); \
NS_METHOD CreateWidget(void); \
NS_METHOD GetDocument(nsIDocument * *aDocument); \
NS_METHOD InvalidateRect(NPRect *aRect); \
NS_METHOD InvalidateRegion(NPRegion aRegion); \
NS_METHOD RedrawPlugin(void); \
NS_METHOD GetNetscapeWindow(void *aValue); \
NS_METHOD SetEventModel(int32_t eventModel); \
NS_METHOD CallSetWindow(void); \
NS_METHOD GetContentsScaleFactor(double *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPLUGININSTANCEOWNER(_to) \
NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) override { return _to SetInstance(aInstance); } \
NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval) override { return _to GetInstance(_retval); } \
NS_IMETHOD GetWindow(NPWindow * & aWindow) override { return _to GetWindow(aWindow); } \
NS_IMETHOD GetMode(int32_t *aMode) override { return _to GetMode(aMode); } \
NS_IMETHOD CreateWidget(void) override { return _to CreateWidget(); } \
NS_IMETHOD GetDocument(nsIDocument * *aDocument) override { return _to GetDocument(aDocument); } \
NS_IMETHOD InvalidateRect(NPRect *aRect) override { return _to InvalidateRect(aRect); } \
NS_IMETHOD InvalidateRegion(NPRegion aRegion) override { return _to InvalidateRegion(aRegion); } \
NS_IMETHOD RedrawPlugin(void) override { return _to RedrawPlugin(); } \
NS_IMETHOD GetNetscapeWindow(void *aValue) override { return _to GetNetscapeWindow(aValue); } \
NS_IMETHOD SetEventModel(int32_t eventModel) override { return _to SetEventModel(eventModel); } \
NS_IMETHOD CallSetWindow(void) override { return _to CallSetWindow(); } \
NS_IMETHOD GetContentsScaleFactor(double *_retval) override { return _to GetContentsScaleFactor(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPLUGININSTANCEOWNER(_to) \
NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInstance(aInstance); } \
NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstance(_retval); } \
NS_IMETHOD GetWindow(NPWindow * & aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
NS_IMETHOD GetMode(int32_t *aMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMode(aMode); } \
NS_IMETHOD CreateWidget(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateWidget(); } \
NS_IMETHOD GetDocument(nsIDocument * *aDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
NS_IMETHOD InvalidateRect(NPRect *aRect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRect(aRect); } \
NS_IMETHOD InvalidateRegion(NPRegion aRegion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRegion(aRegion); } \
NS_IMETHOD RedrawPlugin(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RedrawPlugin(); } \
NS_IMETHOD GetNetscapeWindow(void *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetscapeWindow(aValue); } \
NS_IMETHOD SetEventModel(int32_t eventModel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventModel(eventModel); } \
NS_IMETHOD CallSetWindow(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CallSetWindow(); } \
NS_IMETHOD GetContentsScaleFactor(double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentsScaleFactor(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPluginInstanceOwner : public nsIPluginInstanceOwner
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPLUGININSTANCEOWNER
nsPluginInstanceOwner();
private:
~nsPluginInstanceOwner();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsPluginInstanceOwner, nsIPluginInstanceOwner)
nsPluginInstanceOwner::nsPluginInstanceOwner()
{
/* member initializers and constructor code */
}
nsPluginInstanceOwner::~nsPluginInstanceOwner()
{
/* destructor code */
}
/* void setInstance (in nsNPAPIPluginInstancePtr aInstance); */
NS_IMETHODIMP nsPluginInstanceOwner::SetInstance(nsNPAPIPluginInstance *aInstance)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsNPAPIPluginInstancePtr getInstance (); */
NS_IMETHODIMP nsPluginInstanceOwner::GetInstance(nsNPAPIPluginInstance **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getWindow (in NPWindowStarRef aWindow); */
NS_IMETHODIMP nsPluginInstanceOwner::GetWindow(NPWindow * & aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute int32_t mode; */
NS_IMETHODIMP nsPluginInstanceOwner::GetMode(int32_t *aMode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void createWidget (); */
NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDocument document; */
NS_IMETHODIMP nsPluginInstanceOwner::GetDocument(nsIDocument * *aDocument)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void invalidateRect (in NPRectPtr aRect); */
NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(NPRect *aRect)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void invalidateRegion (in NPRegion aRegion); */
NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRegion(NPRegion aRegion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void redrawPlugin (); */
NS_IMETHODIMP nsPluginInstanceOwner::RedrawPlugin()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getNetscapeWindow (in voidPtr aValue); */
NS_IMETHODIMP nsPluginInstanceOwner::GetNetscapeWindow(void *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setEventModel (in int32_t eventModel); */
NS_IMETHODIMP nsPluginInstanceOwner::SetEventModel(int32_t eventModel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void callSetWindow (); */
NS_IMETHODIMP nsPluginInstanceOwner::CallSetWindow()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* double getContentsScaleFactor (); */
NS_IMETHODIMP nsPluginInstanceOwner::GetContentsScaleFactor(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIPluginInstanceOwner_h__ */
|