LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIObjectLoadingContent.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/content/base/public/nsIObjectLoadingContent.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIObjectLoadingContent_h__
       6                 : #define __gen_nsIObjectLoadingContent_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIFrame; /* forward declaration */
      18                 : 
      19                 : class nsIObjectFrame; /* forward declaration */
      20                 : 
      21                 : class nsIPluginTag; /* forward declaration */
      22                 : 
      23                 : class nsIDOMElement; /* forward declaration */
      24                 : 
      25                 : class nsIDOMClientRect; /* forward declaration */
      26                 : 
      27                 : class nsIURI; /* forward declaration */
      28                 : 
      29                 : #include "nsNPAPIPluginInstance.h"
      30                 : 
      31                 : /* starting interface:    nsIObjectLoadingContent */
      32                 : #define NS_IOBJECTLOADINGCONTENT_IID_STR "6d8914c7-0e22-4452-8962-11b69bbe84d7"
      33                 : 
      34                 : #define NS_IOBJECTLOADINGCONTENT_IID \
      35                 :   {0x6d8914c7, 0x0e22, 0x4452, \
      36                 :     { 0x89, 0x62, 0x11, 0xb6, 0x9b, 0xbe, 0x84, 0xd7 }}
      37                 : 
      38               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIObjectLoadingContent : public nsISupports {
      39                 :  public: 
      40                 : 
      41                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOBJECTLOADINGCONTENT_IID)
      42                 : 
      43                 :   enum {
      44                 :     TYPE_LOADING = 0U,
      45                 :     TYPE_IMAGE = 1U,
      46                 :     TYPE_PLUGIN = 2U,
      47                 :     TYPE_DOCUMENT = 3U,
      48                 :     TYPE_NULL = 4U
      49                 :   };
      50                 : 
      51                 :   /* readonly attribute ACString actualType; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetActualType(nsACString & aActualType) = 0;
      53                 : 
      54                 :   /* readonly attribute unsigned long displayedType; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayedType(PRUint32 *aDisplayedType) = 0;
      56                 : 
      57                 :   /* unsigned long getContentTypeForMIMEType (in AUTF8String aMimeType); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, PRUint32 *_retval NS_OUTPARAM) = 0;
      59                 : 
      60                 :   /* [noscript] readonly attribute nsNPAPIPluginInstancePtr pluginInstance; */
      61                 :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) = 0;
      62                 : 
      63                 :   /* [noscript] void hasNewFrame (in nsIObjectFrame aFrame); */
      64                 :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) = 0;
      65                 : 
      66                 :   /* [noscript] void disconnectFrame (); */
      67                 :   NS_IMETHOD DisconnectFrame(void) = 0;
      68                 : 
      69                 :   /* [noscript] nsIFrame getPrintFrame (); */
      70                 :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval NS_OUTPARAM) = 0;
      71                 : 
      72                 :   /* [noscript] void pluginCrashed (in nsIPluginTag pluginTag, in AString pluginDumpID, in AString browserDumpID, in boolean submittedCrashReport); */
      73                 :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) = 0;
      74                 : 
      75                 :   /* void playPlugin (); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD PlayPlugin(void) = 0;
      77                 : 
      78                 :   /* [noscript] void stopPluginInstance (); */
      79                 :   NS_IMETHOD StopPluginInstance(void) = 0;
      80                 : 
      81                 :   /* [noscript] void syncStartPluginInstance (); */
      82                 :   NS_IMETHOD SyncStartPluginInstance(void) = 0;
      83                 : 
      84                 :   /* [noscript] void asyncStartPluginInstance (); */
      85                 :   NS_IMETHOD AsyncStartPluginInstance(void) = 0;
      86                 : 
      87                 :   /* readonly attribute nsIURI srcURI; */
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) = 0;
      89                 : 
      90                 : };
      91                 : 
      92                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIObjectLoadingContent, NS_IOBJECTLOADINGCONTENT_IID)
      93                 : 
      94                 : /* Use this macro when declaring classes that implement this interface. */
      95                 : #define NS_DECL_NSIOBJECTLOADINGCONTENT \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetActualType(nsACString & aActualType); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayedType(PRUint32 *aDisplayedType); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, PRUint32 *_retval NS_OUTPARAM); \
      99                 :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance); \
     100                 :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame); \
     101                 :   NS_IMETHOD DisconnectFrame(void); \
     102                 :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval NS_OUTPARAM); \
     103                 :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD PlayPlugin(void); \
     105                 :   NS_IMETHOD StopPluginInstance(void); \
     106                 :   NS_IMETHOD SyncStartPluginInstance(void); \
     107                 :   NS_IMETHOD AsyncStartPluginInstance(void); \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI); 
     109                 : 
     110                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     111                 : #define NS_FORWARD_NSIOBJECTLOADINGCONTENT(_to) \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetActualType(nsACString & aActualType) { return _to GetActualType(aActualType); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayedType(PRUint32 *aDisplayedType) { return _to GetDisplayedType(aDisplayedType); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, PRUint32 *_retval NS_OUTPARAM) { return _to GetContentTypeForMIMEType(aMimeType, _retval); } \
     115                 :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) { return _to GetPluginInstance(aPluginInstance); } \
     116                 :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) { return _to HasNewFrame(aFrame); } \
     117                 :   NS_IMETHOD DisconnectFrame(void) { return _to DisconnectFrame(); } \
     118                 :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval NS_OUTPARAM) { return _to GetPrintFrame(_retval); } \
     119                 :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) { return _to PluginCrashed(pluginTag, pluginDumpID, browserDumpID, submittedCrashReport); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD PlayPlugin(void) { return _to PlayPlugin(); } \
     121                 :   NS_IMETHOD StopPluginInstance(void) { return _to StopPluginInstance(); } \
     122                 :   NS_IMETHOD SyncStartPluginInstance(void) { return _to SyncStartPluginInstance(); } \
     123                 :   NS_IMETHOD AsyncStartPluginInstance(void) { return _to AsyncStartPluginInstance(); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) { return _to GetSrcURI(aSrcURI); } 
     125                 : 
     126                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     127                 : #define NS_FORWARD_SAFE_NSIOBJECTLOADINGCONTENT(_to) \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetActualType(nsACString & aActualType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActualType(aActualType); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayedType(PRUint32 *aDisplayedType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayedType(aDisplayedType); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentTypeForMIMEType(aMimeType, _retval); } \
     131                 :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginInstance(aPluginInstance); } \
     132                 :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasNewFrame(aFrame); } \
     133                 :   NS_IMETHOD DisconnectFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisconnectFrame(); } \
     134                 :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrame(_retval); } \
     135                 :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) { return !_to ? NS_ERROR_NULL_POINTER : _to->PluginCrashed(pluginTag, pluginDumpID, browserDumpID, submittedCrashReport); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD PlayPlugin(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PlayPlugin(); } \
     137                 :   NS_IMETHOD StopPluginInstance(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPluginInstance(); } \
     138                 :   NS_IMETHOD SyncStartPluginInstance(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncStartPluginInstance(); } \
     139                 :   NS_IMETHOD AsyncStartPluginInstance(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncStartPluginInstance(); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcURI(aSrcURI); } 
     141                 : 
     142                 : #if 0
     143                 : /* Use the code below as a template for the implementation class for this interface. */
     144                 : 
     145                 : /* Header file */
     146                 : class nsObjectLoadingContent : public nsIObjectLoadingContent
     147                 : {
     148                 : public:
     149                 :   NS_DECL_ISUPPORTS
     150                 :   NS_DECL_NSIOBJECTLOADINGCONTENT
     151                 : 
     152                 :   nsObjectLoadingContent();
     153                 : 
     154                 : private:
     155                 :   ~nsObjectLoadingContent();
     156                 : 
     157                 : protected:
     158                 :   /* additional members */
     159                 : };
     160                 : 
     161                 : /* Implementation file */
     162                 : NS_IMPL_ISUPPORTS1(nsObjectLoadingContent, nsIObjectLoadingContent)
     163                 : 
     164                 : nsObjectLoadingContent::nsObjectLoadingContent()
     165                 : {
     166                 :   /* member initializers and constructor code */
     167                 : }
     168                 : 
     169                 : nsObjectLoadingContent::~nsObjectLoadingContent()
     170                 : {
     171                 :   /* destructor code */
     172                 : }
     173                 : 
     174                 : /* readonly attribute ACString actualType; */
     175                 : NS_IMETHODIMP nsObjectLoadingContent::GetActualType(nsACString & aActualType)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* readonly attribute unsigned long displayedType; */
     181                 : NS_IMETHODIMP nsObjectLoadingContent::GetDisplayedType(PRUint32 *aDisplayedType)
     182                 : {
     183                 :     return NS_ERROR_NOT_IMPLEMENTED;
     184                 : }
     185                 : 
     186                 : /* unsigned long getContentTypeForMIMEType (in AUTF8String aMimeType); */
     187                 : NS_IMETHODIMP nsObjectLoadingContent::GetContentTypeForMIMEType(const nsACString & aMimeType, PRUint32 *_retval NS_OUTPARAM)
     188                 : {
     189                 :     return NS_ERROR_NOT_IMPLEMENTED;
     190                 : }
     191                 : 
     192                 : /* [noscript] readonly attribute nsNPAPIPluginInstancePtr pluginInstance; */
     193                 : NS_IMETHODIMP nsObjectLoadingContent::GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance)
     194                 : {
     195                 :     return NS_ERROR_NOT_IMPLEMENTED;
     196                 : }
     197                 : 
     198                 : /* [noscript] void hasNewFrame (in nsIObjectFrame aFrame); */
     199                 : NS_IMETHODIMP nsObjectLoadingContent::HasNewFrame(nsIObjectFrame *aFrame)
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* [noscript] void disconnectFrame (); */
     205                 : NS_IMETHODIMP nsObjectLoadingContent::DisconnectFrame()
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : 
     210                 : /* [noscript] nsIFrame getPrintFrame (); */
     211                 : NS_IMETHODIMP nsObjectLoadingContent::GetPrintFrame(nsIFrame * *_retval NS_OUTPARAM)
     212                 : {
     213                 :     return NS_ERROR_NOT_IMPLEMENTED;
     214                 : }
     215                 : 
     216                 : /* [noscript] void pluginCrashed (in nsIPluginTag pluginTag, in AString pluginDumpID, in AString browserDumpID, in boolean submittedCrashReport); */
     217                 : NS_IMETHODIMP nsObjectLoadingContent::PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* void playPlugin (); */
     223                 : NS_IMETHODIMP nsObjectLoadingContent::PlayPlugin()
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* [noscript] void stopPluginInstance (); */
     229                 : NS_IMETHODIMP nsObjectLoadingContent::StopPluginInstance()
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* [noscript] void syncStartPluginInstance (); */
     235                 : NS_IMETHODIMP nsObjectLoadingContent::SyncStartPluginInstance()
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : 
     240                 : /* [noscript] void asyncStartPluginInstance (); */
     241                 : NS_IMETHODIMP nsObjectLoadingContent::AsyncStartPluginInstance()
     242                 : {
     243                 :     return NS_ERROR_NOT_IMPLEMENTED;
     244                 : }
     245                 : 
     246                 : /* readonly attribute nsIURI srcURI; */
     247                 : NS_IMETHODIMP nsObjectLoadingContent::GetSrcURI(nsIURI * *aSrcURI)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* End of implementation class template. */
     253                 : #endif
     254                 : 
     255                 : 
     256                 : #endif /* __gen_nsIObjectLoadingContent_h__ */

Generated by: LCOV version 1.7