LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPluginInstanceOwner.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/plugins/base/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 "nsNPAPIPluginInstance.h"
      29                 : class nsPluginEvent;
      30                 : 
      31                 : /* starting interface:    nsIPluginInstanceOwner */
      32                 : #define NS_IPLUGININSTANCEOWNER_IID_STR "23bd0a76-a5dc-4a1d-be76-13d7a0dfd9ff"
      33                 : 
      34                 : #define NS_IPLUGININSTANCEOWNER_IID \
      35                 :   {0x23bd0a76, 0xa5dc, 0x4a1d, \
      36                 :     { 0xbe, 0x76, 0x13, 0xd7, 0xa0, 0xdf, 0xd9, 0xff }}
      37                 : 
      38               0 : class nsIPluginInstanceOwner : public nsISupports {
      39                 :  public: 
      40                 : 
      41                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGININSTANCEOWNER_IID)
      42                 : 
      43                 :   /* void setInstance (in nsNPAPIPluginInstancePtr aInstance); */
      44                 :   NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) = 0;
      45                 : 
      46                 :   /* nsNPAPIPluginInstancePtr getInstance (); */
      47                 :   NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval NS_OUTPARAM) = 0;
      48                 : 
      49                 :   /* void getWindow (in NPWindowStarRef aWindow); */
      50                 :   NS_IMETHOD GetWindow(NPWindow * & aWindow) = 0;
      51                 : 
      52                 :   /* readonly attribute PRInt32 mode; */
      53                 :   NS_IMETHOD GetMode(PRInt32 *aMode) = 0;
      54                 : 
      55                 :   /* void createWidget (); */
      56                 :   NS_IMETHOD CreateWidget(void) = 0;
      57                 : 
      58                 :    /**
      59                 :    * Called when there is a valid target so that the proper
      60                 :    * frame can be updated with new content. will not be called
      61                 :    * with nsnull aTarget.
      62                 :    */
      63                 :   NS_IMETHOD
      64                 :   GetURL(const char *aURL, const char *aTarget, 
      65                 :          nsIInputStream *aPostStream,
      66                 :          void *aHeadersData, PRUint32 aHeadersDataLen) = 0;
      67                 :   /* void showStatus (in string aStatusMsg); */
      68                 :   NS_IMETHOD ShowStatus(const char * aStatusMsg) = 0;
      69                 : 
      70                 :    NS_IMETHOD ShowStatus(const PRUnichar *aStatusMsg) = 0;
      71                 :   /* readonly attribute nsIDocument document; */
      72                 :   NS_IMETHOD GetDocument(nsIDocument * *aDocument) = 0;
      73                 : 
      74                 :   /* void invalidateRect (in NPRectPtr aRect); */
      75                 :   NS_IMETHOD InvalidateRect(NPRect *aRect) = 0;
      76                 : 
      77                 :   /* void invalidateRegion (in NPRegion aRegion); */
      78                 :   NS_IMETHOD InvalidateRegion(NPRegion aRegion) = 0;
      79                 : 
      80                 :   /* void redrawPlugin (); */
      81                 :   NS_IMETHOD RedrawPlugin(void) = 0;
      82                 : 
      83                 :   /* void getNetscapeWindow (in voidPtr aValue); */
      84                 :   NS_IMETHOD GetNetscapeWindow(void *aValue) = 0;
      85                 : 
      86                 :    virtual NPError ShowNativeContextMenu(NPMenu* menu, void* event) = 0;
      87                 :   virtual NPBool  ConvertPoint(double sourceX, double sourceY, NPCoordinateSpace sourceSpace,
      88                 :                                double *destX, double *destY, NPCoordinateSpace destSpace) = 0;
      89                 :   virtual NPError InitAsyncSurface(NPSize *size, NPImageFormat format,
      90                 :                                    void *initData, NPAsyncSurface *surface) = 0;
      91                 :   virtual NPError FinalizeAsyncSurface(NPAsyncSurface *surface) = 0;
      92                 :   virtual void SetCurrentAsyncSurface(NPAsyncSurface *surface, NPRect *changed) = 0;
      93                 :   /* void setEventModel (in PRInt32 eventModel); */
      94                 :   NS_IMETHOD SetEventModel(PRInt32 eventModel) = 0;
      95                 : 
      96                 :    virtual void SendIdleEvent() = 0;
      97                 :   /* void callSetWindow (); */
      98                 :   NS_IMETHOD CallSetWindow(void) = 0;
      99                 : 
     100                 : };
     101                 : 
     102                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginInstanceOwner, NS_IPLUGININSTANCEOWNER_IID)
     103                 : 
     104                 : /* Use this macro when declaring classes that implement this interface. */
     105                 : #define NS_DECL_NSIPLUGININSTANCEOWNER \
     106                 :   NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance); \
     107                 :   NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval NS_OUTPARAM); \
     108                 :   NS_IMETHOD GetWindow(NPWindow * & aWindow); \
     109                 :   NS_IMETHOD GetMode(PRInt32 *aMode); \
     110                 :   NS_IMETHOD CreateWidget(void); \
     111                 :   NS_IMETHOD ShowStatus(const char * aStatusMsg); \
     112                 :   NS_IMETHOD GetDocument(nsIDocument * *aDocument); \
     113                 :   NS_IMETHOD InvalidateRect(NPRect *aRect); \
     114                 :   NS_IMETHOD InvalidateRegion(NPRegion aRegion); \
     115                 :   NS_IMETHOD RedrawPlugin(void); \
     116                 :   NS_IMETHOD GetNetscapeWindow(void *aValue); \
     117                 :   NS_IMETHOD SetEventModel(PRInt32 eventModel); \
     118                 :   NS_IMETHOD CallSetWindow(void); 
     119                 : 
     120                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     121                 : #define NS_FORWARD_NSIPLUGININSTANCEOWNER(_to) \
     122                 :   NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) { return _to SetInstance(aInstance); } \
     123                 :   NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval NS_OUTPARAM) { return _to GetInstance(_retval); } \
     124                 :   NS_IMETHOD GetWindow(NPWindow * & aWindow) { return _to GetWindow(aWindow); } \
     125                 :   NS_IMETHOD GetMode(PRInt32 *aMode) { return _to GetMode(aMode); } \
     126                 :   NS_IMETHOD CreateWidget(void) { return _to CreateWidget(); } \
     127                 :   NS_IMETHOD ShowStatus(const char * aStatusMsg) { return _to ShowStatus(aStatusMsg); } \
     128                 :   NS_IMETHOD GetDocument(nsIDocument * *aDocument) { return _to GetDocument(aDocument); } \
     129                 :   NS_IMETHOD InvalidateRect(NPRect *aRect) { return _to InvalidateRect(aRect); } \
     130                 :   NS_IMETHOD InvalidateRegion(NPRegion aRegion) { return _to InvalidateRegion(aRegion); } \
     131                 :   NS_IMETHOD RedrawPlugin(void) { return _to RedrawPlugin(); } \
     132                 :   NS_IMETHOD GetNetscapeWindow(void *aValue) { return _to GetNetscapeWindow(aValue); } \
     133                 :   NS_IMETHOD SetEventModel(PRInt32 eventModel) { return _to SetEventModel(eventModel); } \
     134                 :   NS_IMETHOD CallSetWindow(void) { return _to CallSetWindow(); } 
     135                 : 
     136                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     137                 : #define NS_FORWARD_SAFE_NSIPLUGININSTANCEOWNER(_to) \
     138                 :   NS_IMETHOD SetInstance(nsNPAPIPluginInstance *aInstance) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInstance(aInstance); } \
     139                 :   NS_IMETHOD GetInstance(nsNPAPIPluginInstance **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstance(_retval); } \
     140                 :   NS_IMETHOD GetWindow(NPWindow * & aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
     141                 :   NS_IMETHOD GetMode(PRInt32 *aMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMode(aMode); } \
     142                 :   NS_IMETHOD CreateWidget(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateWidget(); } \
     143                 :   NS_IMETHOD ShowStatus(const char * aStatusMsg) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowStatus(aStatusMsg); } \
     144                 :   NS_IMETHOD GetDocument(nsIDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
     145                 :   NS_IMETHOD InvalidateRect(NPRect *aRect) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRect(aRect); } \
     146                 :   NS_IMETHOD InvalidateRegion(NPRegion aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRegion(aRegion); } \
     147                 :   NS_IMETHOD RedrawPlugin(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RedrawPlugin(); } \
     148                 :   NS_IMETHOD GetNetscapeWindow(void *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetscapeWindow(aValue); } \
     149                 :   NS_IMETHOD SetEventModel(PRInt32 eventModel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventModel(eventModel); } \
     150                 :   NS_IMETHOD CallSetWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CallSetWindow(); } 
     151                 : 
     152                 : #if 0
     153                 : /* Use the code below as a template for the implementation class for this interface. */
     154                 : 
     155                 : /* Header file */
     156                 : class nsPluginInstanceOwner : public nsIPluginInstanceOwner
     157                 : {
     158                 : public:
     159                 :   NS_DECL_ISUPPORTS
     160                 :   NS_DECL_NSIPLUGININSTANCEOWNER
     161                 : 
     162                 :   nsPluginInstanceOwner();
     163                 : 
     164                 : private:
     165                 :   ~nsPluginInstanceOwner();
     166                 : 
     167                 : protected:
     168                 :   /* additional members */
     169                 : };
     170                 : 
     171                 : /* Implementation file */
     172                 : NS_IMPL_ISUPPORTS1(nsPluginInstanceOwner, nsIPluginInstanceOwner)
     173                 : 
     174                 : nsPluginInstanceOwner::nsPluginInstanceOwner()
     175                 : {
     176                 :   /* member initializers and constructor code */
     177                 : }
     178                 : 
     179                 : nsPluginInstanceOwner::~nsPluginInstanceOwner()
     180                 : {
     181                 :   /* destructor code */
     182                 : }
     183                 : 
     184                 : /* void setInstance (in nsNPAPIPluginInstancePtr aInstance); */
     185                 : NS_IMETHODIMP nsPluginInstanceOwner::SetInstance(nsNPAPIPluginInstance *aInstance)
     186                 : {
     187                 :     return NS_ERROR_NOT_IMPLEMENTED;
     188                 : }
     189                 : 
     190                 : /* nsNPAPIPluginInstancePtr getInstance (); */
     191                 : NS_IMETHODIMP nsPluginInstanceOwner::GetInstance(nsNPAPIPluginInstance **_retval NS_OUTPARAM)
     192                 : {
     193                 :     return NS_ERROR_NOT_IMPLEMENTED;
     194                 : }
     195                 : 
     196                 : /* void getWindow (in NPWindowStarRef aWindow); */
     197                 : NS_IMETHODIMP nsPluginInstanceOwner::GetWindow(NPWindow * & aWindow)
     198                 : {
     199                 :     return NS_ERROR_NOT_IMPLEMENTED;
     200                 : }
     201                 : 
     202                 : /* readonly attribute PRInt32 mode; */
     203                 : NS_IMETHODIMP nsPluginInstanceOwner::GetMode(PRInt32 *aMode)
     204                 : {
     205                 :     return NS_ERROR_NOT_IMPLEMENTED;
     206                 : }
     207                 : 
     208                 : /* void createWidget (); */
     209                 : NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget()
     210                 : {
     211                 :     return NS_ERROR_NOT_IMPLEMENTED;
     212                 : }
     213                 : 
     214                 : /* void showStatus (in string aStatusMsg); */
     215                 : NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char * aStatusMsg)
     216                 : {
     217                 :     return NS_ERROR_NOT_IMPLEMENTED;
     218                 : }
     219                 : 
     220                 : /* readonly attribute nsIDocument document; */
     221                 : NS_IMETHODIMP nsPluginInstanceOwner::GetDocument(nsIDocument * *aDocument)
     222                 : {
     223                 :     return NS_ERROR_NOT_IMPLEMENTED;
     224                 : }
     225                 : 
     226                 : /* void invalidateRect (in NPRectPtr aRect); */
     227                 : NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(NPRect *aRect)
     228                 : {
     229                 :     return NS_ERROR_NOT_IMPLEMENTED;
     230                 : }
     231                 : 
     232                 : /* void invalidateRegion (in NPRegion aRegion); */
     233                 : NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRegion(NPRegion aRegion)
     234                 : {
     235                 :     return NS_ERROR_NOT_IMPLEMENTED;
     236                 : }
     237                 : 
     238                 : /* void redrawPlugin (); */
     239                 : NS_IMETHODIMP nsPluginInstanceOwner::RedrawPlugin()
     240                 : {
     241                 :     return NS_ERROR_NOT_IMPLEMENTED;
     242                 : }
     243                 : 
     244                 : /* void getNetscapeWindow (in voidPtr aValue); */
     245                 : NS_IMETHODIMP nsPluginInstanceOwner::GetNetscapeWindow(void *aValue)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : 
     250                 : /* void setEventModel (in PRInt32 eventModel); */
     251                 : NS_IMETHODIMP nsPluginInstanceOwner::SetEventModel(PRInt32 eventModel)
     252                 : {
     253                 :     return NS_ERROR_NOT_IMPLEMENTED;
     254                 : }
     255                 : 
     256                 : /* void callSetWindow (); */
     257                 : NS_IMETHODIMP nsPluginInstanceOwner::CallSetWindow()
     258                 : {
     259                 :     return NS_ERROR_NOT_IMPLEMENTED;
     260                 : }
     261                 : 
     262                 : /* End of implementation class template. */
     263                 : #endif
     264                 : 
     265                 : 
     266                 : #endif /* __gen_nsIPluginInstanceOwner_h__ */

Generated by: LCOV version 1.7