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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStyleSheetService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStyleSheetService_h__
       6             : #define __gen_nsIStyleSheetService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : class nsIPreloadedStyleSheet; /* forward declaration */
      20             : 
      21             : class nsIURI; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIStyleSheetService */
      25             : #define NS_ISTYLESHEETSERVICE_IID_STR "4de68896-e8eb-41de-8237-a797b570ac4a"
      26             : 
      27             : #define NS_ISTYLESHEETSERVICE_IID \
      28             :   {0x4de68896, 0xe8eb, 0x41de, \
      29             :     { 0x82, 0x37, 0xa7, 0x97, 0xb5, 0x70, 0xac, 0x4a }}
      30             : 
      31           3 : class NS_NO_VTABLE nsIStyleSheetService : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTYLESHEETSERVICE_IID)
      35             : 
      36             :   enum {
      37             :     AGENT_SHEET = 0U,
      38             :     USER_SHEET = 1U,
      39             :     AUTHOR_SHEET = 2U
      40             :   };
      41             : 
      42             :   /* void loadAndRegisterSheet (in nsIURI sheetURI, in unsigned long type); */
      43             :   NS_IMETHOD LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type) = 0;
      44             : 
      45             :   /* boolean sheetRegistered (in nsIURI sheetURI, in unsigned long type); */
      46             :   NS_IMETHOD SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval) = 0;
      47             : 
      48             :   /* nsIPreloadedStyleSheet preloadSheet (in nsIURI sheetURI, in unsigned long type); */
      49             :   NS_IMETHOD PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval) = 0;
      50             : 
      51             :   /* [implicit_jscontext] jsval preloadSheetAsync (in nsIURI sheetURI, in unsigned long type); */
      52             :   NS_IMETHOD PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval) = 0;
      53             : 
      54             :   /* void unregisterSheet (in nsIURI sheetURI, in unsigned long type); */
      55             :   NS_IMETHOD UnregisterSheet(nsIURI *sheetURI, uint32_t type) = 0;
      56             : 
      57             : };
      58             : 
      59             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStyleSheetService, NS_ISTYLESHEETSERVICE_IID)
      60             : 
      61             : /* Use this macro when declaring classes that implement this interface. */
      62             : #define NS_DECL_NSISTYLESHEETSERVICE \
      63             :   NS_IMETHOD LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type) override; \
      64             :   NS_IMETHOD SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval) override; \
      65             :   NS_IMETHOD PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval) override; \
      66             :   NS_IMETHOD PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval) override; \
      67             :   NS_IMETHOD UnregisterSheet(nsIURI *sheetURI, uint32_t type) override; 
      68             : 
      69             : /* Use this macro when declaring the members of this interface when the
      70             :    class doesn't implement the interface. This is useful for forwarding. */
      71             : #define NS_DECL_NON_VIRTUAL_NSISTYLESHEETSERVICE \
      72             :   nsresult LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type); \
      73             :   nsresult SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval); \
      74             :   nsresult PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval); \
      75             :   nsresult PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval); \
      76             :   nsresult UnregisterSheet(nsIURI *sheetURI, uint32_t type); 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      79             : #define NS_FORWARD_NSISTYLESHEETSERVICE(_to) \
      80             :   NS_IMETHOD LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type) override { return _to LoadAndRegisterSheet(sheetURI, type); } \
      81             :   NS_IMETHOD SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval) override { return _to SheetRegistered(sheetURI, type, _retval); } \
      82             :   NS_IMETHOD PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval) override { return _to PreloadSheet(sheetURI, type, _retval); } \
      83             :   NS_IMETHOD PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval) override { return _to PreloadSheetAsync(sheetURI, type, cx, _retval); } \
      84             :   NS_IMETHOD UnregisterSheet(nsIURI *sheetURI, uint32_t type) override { return _to UnregisterSheet(sheetURI, type); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_NSISTYLESHEETSERVICE(_to) \
      88             :   NS_IMETHOD LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAndRegisterSheet(sheetURI, type); } \
      89             :   NS_IMETHOD SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SheetRegistered(sheetURI, type, _retval); } \
      90             :   NS_IMETHOD PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PreloadSheet(sheetURI, type, _retval); } \
      91             :   NS_IMETHOD PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PreloadSheetAsync(sheetURI, type, cx, _retval); } \
      92             :   NS_IMETHOD UnregisterSheet(nsIURI *sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterSheet(sheetURI, type); } 
      93             : 
      94             : #if 0
      95             : /* Use the code below as a template for the implementation class for this interface. */
      96             : 
      97             : /* Header file */
      98             : class nsStyleSheetService : public nsIStyleSheetService
      99             : {
     100             : public:
     101             :   NS_DECL_ISUPPORTS
     102             :   NS_DECL_NSISTYLESHEETSERVICE
     103             : 
     104             :   nsStyleSheetService();
     105             : 
     106             : private:
     107             :   ~nsStyleSheetService();
     108             : 
     109             : protected:
     110             :   /* additional members */
     111             : };
     112             : 
     113             : /* Implementation file */
     114             : NS_IMPL_ISUPPORTS(nsStyleSheetService, nsIStyleSheetService)
     115             : 
     116             : nsStyleSheetService::nsStyleSheetService()
     117             : {
     118             :   /* member initializers and constructor code */
     119             : }
     120             : 
     121             : nsStyleSheetService::~nsStyleSheetService()
     122             : {
     123             :   /* destructor code */
     124             : }
     125             : 
     126             : /* void loadAndRegisterSheet (in nsIURI sheetURI, in unsigned long type); */
     127             : NS_IMETHODIMP nsStyleSheetService::LoadAndRegisterSheet(nsIURI *sheetURI, uint32_t type)
     128             : {
     129             :     return NS_ERROR_NOT_IMPLEMENTED;
     130             : }
     131             : 
     132             : /* boolean sheetRegistered (in nsIURI sheetURI, in unsigned long type); */
     133             : NS_IMETHODIMP nsStyleSheetService::SheetRegistered(nsIURI *sheetURI, uint32_t type, bool *_retval)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* nsIPreloadedStyleSheet preloadSheet (in nsIURI sheetURI, in unsigned long type); */
     139             : NS_IMETHODIMP nsStyleSheetService::PreloadSheet(nsIURI *sheetURI, uint32_t type, nsIPreloadedStyleSheet * *_retval)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* [implicit_jscontext] jsval preloadSheetAsync (in nsIURI sheetURI, in unsigned long type); */
     145             : NS_IMETHODIMP nsStyleSheetService::PreloadSheetAsync(nsIURI *sheetURI, uint32_t type, JSContext* cx, JS::MutableHandleValue _retval)
     146             : {
     147             :     return NS_ERROR_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150             : /* void unregisterSheet (in nsIURI sheetURI, in unsigned long type); */
     151             : NS_IMETHODIMP nsStyleSheetService::UnregisterSheet(nsIURI *sheetURI, uint32_t type)
     152             : {
     153             :     return NS_ERROR_NOT_IMPLEMENTED;
     154             : }
     155             : 
     156             : /* End of implementation class template. */
     157             : #endif
     158             : 
     159             : 
     160             : #endif /* __gen_nsIStyleSheetService_h__ */

Generated by: LCOV version 1.13