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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/chrome/public/nsIChromeRegistry.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIChromeRegistry_h__
       6                 : #define __gen_nsIChromeRegistry_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 nsIURI; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIChromeRegistry */
      21                 : #define NS_ICHROMEREGISTRY_IID_STR "249fb5ad-ae29-4e2c-a728-ba5cf464d188"
      22                 : 
      23                 : #define NS_ICHROMEREGISTRY_IID \
      24                 :   {0x249fb5ad, 0xae29, 0x4e2c, \
      25                 :     { 0xa7, 0x28, 0xba, 0x5c, 0xf4, 0x64, 0xd1, 0x88 }}
      26                 : 
      27            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIChromeRegistry : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHROMEREGISTRY_IID)
      31                 : 
      32                 :   enum {
      33                 :     NONE = 0,
      34                 :     PARTIAL = 1,
      35                 :     FULL = 2
      36                 :   };
      37                 : 
      38                 :   /* nsIURI convertChromeURL (in nsIURI aChromeURL); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL, nsIURI * *_retval NS_OUTPARAM) = 0;
      40                 : 
      41                 :   /* void checkForNewChrome (); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD CheckForNewChrome(void) = 0;
      43                 : 
      44                 :   /* [notxpcom] boolean wrappersEnabled (in nsIURI aURI); */
      45                 :   NS_IMETHOD_(bool) WrappersEnabled(nsIURI *aURI) = 0;
      46                 : 
      47                 : };
      48                 : 
      49                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIChromeRegistry, NS_ICHROMEREGISTRY_IID)
      50                 : 
      51                 : /* Use this macro when declaring classes that implement this interface. */
      52                 : #define NS_DECL_NSICHROMEREGISTRY \
      53                 :   NS_SCRIPTABLE NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL, nsIURI * *_retval NS_OUTPARAM); \
      54                 :   NS_SCRIPTABLE NS_IMETHOD CheckForNewChrome(void); \
      55                 :   NS_IMETHOD_(bool) WrappersEnabled(nsIURI *aURI); 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58                 : #define NS_FORWARD_NSICHROMEREGISTRY(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL, nsIURI * *_retval NS_OUTPARAM) { return _to ConvertChromeURL(aChromeURL, _retval); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD CheckForNewChrome(void) { return _to CheckForNewChrome(); } \
      61                 :   NS_IMETHOD_(bool) WrappersEnabled(nsIURI *aURI) { return _to WrappersEnabled(aURI); } 
      62                 : 
      63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      64                 : #define NS_FORWARD_SAFE_NSICHROMEREGISTRY(_to) \
      65                 :   NS_SCRIPTABLE NS_IMETHOD ConvertChromeURL(nsIURI *aChromeURL, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertChromeURL(aChromeURL, _retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD CheckForNewChrome(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForNewChrome(); } \
      67                 :   NS_IMETHOD_(bool) WrappersEnabled(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrappersEnabled(aURI); } 
      68                 : 
      69                 : #if 0
      70                 : /* Use the code below as a template for the implementation class for this interface. */
      71                 : 
      72                 : /* Header file */
      73                 : class nsChromeRegistry : public nsIChromeRegistry
      74                 : {
      75                 : public:
      76                 :   NS_DECL_ISUPPORTS
      77                 :   NS_DECL_NSICHROMEREGISTRY
      78                 : 
      79                 :   nsChromeRegistry();
      80                 : 
      81                 : private:
      82                 :   ~nsChromeRegistry();
      83                 : 
      84                 : protected:
      85                 :   /* additional members */
      86                 : };
      87                 : 
      88                 : /* Implementation file */
      89                 : NS_IMPL_ISUPPORTS1(nsChromeRegistry, nsIChromeRegistry)
      90                 : 
      91                 : nsChromeRegistry::nsChromeRegistry()
      92                 : {
      93                 :   /* member initializers and constructor code */
      94                 : }
      95                 : 
      96                 : nsChromeRegistry::~nsChromeRegistry()
      97                 : {
      98                 :   /* destructor code */
      99                 : }
     100                 : 
     101                 : /* nsIURI convertChromeURL (in nsIURI aChromeURL); */
     102                 : NS_IMETHODIMP nsChromeRegistry::ConvertChromeURL(nsIURI *aChromeURL, nsIURI * *_retval NS_OUTPARAM)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* void checkForNewChrome (); */
     108                 : NS_IMETHODIMP nsChromeRegistry::CheckForNewChrome()
     109                 : {
     110                 :     return NS_ERROR_NOT_IMPLEMENTED;
     111                 : }
     112                 : 
     113                 : /* [notxpcom] boolean wrappersEnabled (in nsIURI aURI); */
     114                 : NS_IMETHODIMP_(bool) nsChromeRegistry::WrappersEnabled(nsIURI *aURI)
     115                 : {
     116                 :     return NS_ERROR_NOT_IMPLEMENTED;
     117                 : }
     118                 : 
     119                 : /* End of implementation class template. */
     120                 : #endif
     121                 : 
     122                 : 
     123                 : /* starting interface:    nsIXULChromeRegistry */
     124                 : #define NS_IXULCHROMEREGISTRY_IID_STR "c2461347-2b8f-48c7-9d59-3a61fb868828"
     125                 : 
     126                 : #define NS_IXULCHROMEREGISTRY_IID \
     127                 :   {0xc2461347, 0x2b8f, 0x48c7, \
     128                 :     { 0x9d, 0x59, 0x3a, 0x61, 0xfb, 0x86, 0x88, 0x28 }}
     129                 : 
     130            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXULChromeRegistry : public nsIChromeRegistry {
     131                 :  public: 
     132                 : 
     133                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXULCHROMEREGISTRY_IID)
     134                 : 
     135                 :   /* void reloadChrome (); */
     136                 :   NS_SCRIPTABLE NS_IMETHOD ReloadChrome(void) = 0;
     137                 : 
     138                 :   /* ACString getSelectedLocale (in ACString packageName); */
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectedLocale(const nsACString & packageName, nsACString & _retval NS_OUTPARAM) = 0;
     140                 : 
     141                 :   /* boolean isLocaleRTL (in ACString package); */
     142                 :   NS_SCRIPTABLE NS_IMETHOD IsLocaleRTL(const nsACString & package, bool *_retval NS_OUTPARAM) = 0;
     143                 : 
     144                 :   /* void refreshSkins (); */
     145                 :   NS_SCRIPTABLE NS_IMETHOD RefreshSkins(void) = 0;
     146                 : 
     147                 :   /* boolean allowScriptsForPackage (in nsIURI url); */
     148                 :   NS_SCRIPTABLE NS_IMETHOD AllowScriptsForPackage(nsIURI *url, bool *_retval NS_OUTPARAM) = 0;
     149                 : 
     150                 :   /* boolean allowContentToAccess (in nsIURI url); */
     151                 :   NS_SCRIPTABLE NS_IMETHOD AllowContentToAccess(nsIURI *url, bool *_retval NS_OUTPARAM) = 0;
     152                 : 
     153                 : };
     154                 : 
     155                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXULChromeRegistry, NS_IXULCHROMEREGISTRY_IID)
     156                 : 
     157                 : /* Use this macro when declaring classes that implement this interface. */
     158                 : #define NS_DECL_NSIXULCHROMEREGISTRY \
     159                 :   NS_SCRIPTABLE NS_IMETHOD ReloadChrome(void); \
     160                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectedLocale(const nsACString & packageName, nsACString & _retval NS_OUTPARAM); \
     161                 :   NS_SCRIPTABLE NS_IMETHOD IsLocaleRTL(const nsACString & package, bool *_retval NS_OUTPARAM); \
     162                 :   NS_SCRIPTABLE NS_IMETHOD RefreshSkins(void); \
     163                 :   NS_SCRIPTABLE NS_IMETHOD AllowScriptsForPackage(nsIURI *url, bool *_retval NS_OUTPARAM); \
     164                 :   NS_SCRIPTABLE NS_IMETHOD AllowContentToAccess(nsIURI *url, bool *_retval NS_OUTPARAM); 
     165                 : 
     166                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     167                 : #define NS_FORWARD_NSIXULCHROMEREGISTRY(_to) \
     168                 :   NS_SCRIPTABLE NS_IMETHOD ReloadChrome(void) { return _to ReloadChrome(); } \
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectedLocale(const nsACString & packageName, nsACString & _retval NS_OUTPARAM) { return _to GetSelectedLocale(packageName, _retval); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD IsLocaleRTL(const nsACString & package, bool *_retval NS_OUTPARAM) { return _to IsLocaleRTL(package, _retval); } \
     171                 :   NS_SCRIPTABLE NS_IMETHOD RefreshSkins(void) { return _to RefreshSkins(); } \
     172                 :   NS_SCRIPTABLE NS_IMETHOD AllowScriptsForPackage(nsIURI *url, bool *_retval NS_OUTPARAM) { return _to AllowScriptsForPackage(url, _retval); } \
     173                 :   NS_SCRIPTABLE NS_IMETHOD AllowContentToAccess(nsIURI *url, bool *_retval NS_OUTPARAM) { return _to AllowContentToAccess(url, _retval); } 
     174                 : 
     175                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     176                 : #define NS_FORWARD_SAFE_NSIXULCHROMEREGISTRY(_to) \
     177                 :   NS_SCRIPTABLE NS_IMETHOD ReloadChrome(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadChrome(); } \
     178                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectedLocale(const nsACString & packageName, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedLocale(packageName, _retval); } \
     179                 :   NS_SCRIPTABLE NS_IMETHOD IsLocaleRTL(const nsACString & package, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLocaleRTL(package, _retval); } \
     180                 :   NS_SCRIPTABLE NS_IMETHOD RefreshSkins(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshSkins(); } \
     181                 :   NS_SCRIPTABLE NS_IMETHOD AllowScriptsForPackage(nsIURI *url, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AllowScriptsForPackage(url, _retval); } \
     182                 :   NS_SCRIPTABLE NS_IMETHOD AllowContentToAccess(nsIURI *url, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AllowContentToAccess(url, _retval); } 
     183                 : 
     184                 : #if 0
     185                 : /* Use the code below as a template for the implementation class for this interface. */
     186                 : 
     187                 : /* Header file */
     188                 : class nsXULChromeRegistry : public nsIXULChromeRegistry
     189                 : {
     190                 : public:
     191                 :   NS_DECL_ISUPPORTS
     192                 :   NS_DECL_NSIXULCHROMEREGISTRY
     193                 : 
     194                 :   nsXULChromeRegistry();
     195                 : 
     196                 : private:
     197                 :   ~nsXULChromeRegistry();
     198                 : 
     199                 : protected:
     200                 :   /* additional members */
     201                 : };
     202                 : 
     203                 : /* Implementation file */
     204                 : NS_IMPL_ISUPPORTS1(nsXULChromeRegistry, nsIXULChromeRegistry)
     205                 : 
     206                 : nsXULChromeRegistry::nsXULChromeRegistry()
     207                 : {
     208                 :   /* member initializers and constructor code */
     209                 : }
     210                 : 
     211                 : nsXULChromeRegistry::~nsXULChromeRegistry()
     212                 : {
     213                 :   /* destructor code */
     214                 : }
     215                 : 
     216                 : /* void reloadChrome (); */
     217                 : NS_IMETHODIMP nsXULChromeRegistry::ReloadChrome()
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* ACString getSelectedLocale (in ACString packageName); */
     223                 : NS_IMETHODIMP nsXULChromeRegistry::GetSelectedLocale(const nsACString & packageName, nsACString & _retval NS_OUTPARAM)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* boolean isLocaleRTL (in ACString package); */
     229                 : NS_IMETHODIMP nsXULChromeRegistry::IsLocaleRTL(const nsACString & package, bool *_retval NS_OUTPARAM)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* void refreshSkins (); */
     235                 : NS_IMETHODIMP nsXULChromeRegistry::RefreshSkins()
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : 
     240                 : /* boolean allowScriptsForPackage (in nsIURI url); */
     241                 : NS_IMETHODIMP nsXULChromeRegistry::AllowScriptsForPackage(nsIURI *url, bool *_retval NS_OUTPARAM)
     242                 : {
     243                 :     return NS_ERROR_NOT_IMPLEMENTED;
     244                 : }
     245                 : 
     246                 : /* boolean allowContentToAccess (in nsIURI url); */
     247                 : NS_IMETHODIMP nsXULChromeRegistry::AllowContentToAccess(nsIURI *url, bool *_retval NS_OUTPARAM)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* End of implementation class template. */
     253                 : #endif
     254                 : 
     255                 : 
     256                 : #define NS_CHROMEREGISTRY_CONTRACTID \
     257                 :   "@mozilla.org/chrome/chrome-registry;1"
     258                 : /**
     259                 :  * Chrome registry will notify various caches that all chrome files need
     260                 :  * flushing.
     261                 :  */
     262                 : #define NS_CHROME_FLUSH_TOPIC \
     263                 :   "chrome-flush-caches"
     264                 : /**
     265                 :  * Chrome registry will notify various caches that skin files need flushing.
     266                 :  * If "chrome-flush-caches" is notified, this topic will *not* be notified.
     267                 :  */
     268                 : #define NS_CHROME_FLUSH_SKINS_TOPIC \
     269                 :   "chrome-flush-skin-caches"
     270                 : 
     271                 : #endif /* __gen_nsIChromeRegistry_h__ */

Generated by: LCOV version 1.7