LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPluginInstanceOwner.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13