LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - imgITools.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/imgITools.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_imgITools_h__
       6             : #define __gen_imgITools_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 nsIInputStream; /* forward declaration */
      18             : 
      19             : class imgIContainer; /* forward declaration */
      20             : 
      21             : class imgILoader; /* forward declaration */
      22             : 
      23             : class imgICache; /* forward declaration */
      24             : 
      25             : class nsIDOMDocument; /* forward declaration */
      26             : 
      27             : class imgIScriptedNotificationObserver; /* forward declaration */
      28             : 
      29             : class imgINotificationObserver; /* forward declaration */
      30             : 
      31             : 
      32             : /* starting interface:    imgITools */
      33             : #define IMGITOOLS_IID_STR "4c2383a4-931c-484d-8c4a-973590f66e3f"
      34             : 
      35             : #define IMGITOOLS_IID \
      36             :   {0x4c2383a4, 0x931c, 0x484d, \
      37             :     { 0x8c, 0x4a, 0x97, 0x35, 0x90, 0xf6, 0x6e, 0x3f }}
      38             : 
      39           3 : class NS_NO_VTABLE imgITools : public nsISupports {
      40             :  public:
      41             : 
      42             :   NS_DECLARE_STATIC_IID_ACCESSOR(IMGITOOLS_IID)
      43             : 
      44             :   /* imgIContainer decodeImage (in nsIInputStream aStream, in ACString aMimeType); */
      45             :   NS_IMETHOD DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval) = 0;
      46             : 
      47             :   /* [deprecated] void decodeImageData (in nsIInputStream aStream, in ACString aMimeType, inout imgIContainer aContainer); */
      48             :   NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer) = 0;
      49             : 
      50             :   /* nsIInputStream encodeImage (in imgIContainer aContainer, in ACString aMimeType, [optional] in AString outputOptions); */
      51             :   NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval) = 0;
      52             : 
      53             :   /* nsIInputStream encodeScaledImage (in imgIContainer aContainer, in ACString aMimeType, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
      54             :   NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) = 0;
      55             : 
      56             :   /* imgILoader getImgLoaderForDocument (in nsIDOMDocument doc); */
      57             :   NS_IMETHOD GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval) = 0;
      58             : 
      59             :   /* imgICache getImgCacheForDocument (in nsIDOMDocument doc); */
      60             :   NS_IMETHOD GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval) = 0;
      61             : 
      62             :   /* nsIInputStream encodeCroppedImage (in imgIContainer aContainer, in ACString aMimeType, in long aOffsetX, in long aOffsetY, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
      63             :   NS_IMETHOD EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) = 0;
      64             : 
      65             :   /* imgINotificationObserver createScriptedObserver (in imgIScriptedNotificationObserver aObserver); */
      66             :   NS_IMETHOD CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval) = 0;
      67             : 
      68             : };
      69             : 
      70             :   NS_DEFINE_STATIC_IID_ACCESSOR(imgITools, IMGITOOLS_IID)
      71             : 
      72             : /* Use this macro when declaring classes that implement this interface. */
      73             : #define NS_DECL_IMGITOOLS \
      74             :   NS_IMETHOD DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval) override; \
      75             :   NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer) override; \
      76             :   NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval) override; \
      77             :   NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override; \
      78             :   NS_IMETHOD GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval) override; \
      79             :   NS_IMETHOD GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval) override; \
      80             :   NS_IMETHOD EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override; \
      81             :   NS_IMETHOD CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval) override; 
      82             : 
      83             : /* Use this macro when declaring the members of this interface when the
      84             :    class doesn't implement the interface. This is useful for forwarding. */
      85             : #define NS_DECL_NON_VIRTUAL_IMGITOOLS \
      86             :   nsresult DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval); \
      87             :   nsresult DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer); \
      88             :   nsresult EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval); \
      89             :   nsresult EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval); \
      90             :   nsresult GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval); \
      91             :   nsresult GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval); \
      92             :   nsresult EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval); \
      93             :   nsresult CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval); 
      94             : 
      95             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      96             : #define NS_FORWARD_IMGITOOLS(_to) \
      97             :   NS_IMETHOD DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval) override { return _to DecodeImage(aStream, aMimeType, _retval); } \
      98             :   NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer) override { return _to DecodeImageData(aStream, aMimeType, aContainer); } \
      99             :   NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval) override { return _to EncodeImage(aContainer, aMimeType, outputOptions, _retval); } \
     100             :   NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override { return _to EncodeScaledImage(aContainer, aMimeType, aWidth, aHeight, outputOptions, _retval); } \
     101             :   NS_IMETHOD GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval) override { return _to GetImgLoaderForDocument(doc, _retval); } \
     102             :   NS_IMETHOD GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval) override { return _to GetImgCacheForDocument(doc, _retval); } \
     103             :   NS_IMETHOD EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override { return _to EncodeCroppedImage(aContainer, aMimeType, aOffsetX, aOffsetY, aWidth, aHeight, outputOptions, _retval); } \
     104             :   NS_IMETHOD CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval) override { return _to CreateScriptedObserver(aObserver, _retval); } 
     105             : 
     106             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     107             : #define NS_FORWARD_SAFE_IMGITOOLS(_to) \
     108             :   NS_IMETHOD DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeImage(aStream, aMimeType, _retval); } \
     109             :   NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeImageData(aStream, aMimeType, aContainer); } \
     110             :   NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeImage(aContainer, aMimeType, outputOptions, _retval); } \
     111             :   NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeScaledImage(aContainer, aMimeType, aWidth, aHeight, outputOptions, _retval); } \
     112             :   NS_IMETHOD GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImgLoaderForDocument(doc, _retval); } \
     113             :   NS_IMETHOD GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImgCacheForDocument(doc, _retval); } \
     114             :   NS_IMETHOD EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeCroppedImage(aContainer, aMimeType, aOffsetX, aOffsetY, aWidth, aHeight, outputOptions, _retval); } \
     115             :   NS_IMETHOD CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateScriptedObserver(aObserver, _retval); } 
     116             : 
     117             : #if 0
     118             : /* Use the code below as a template for the implementation class for this interface. */
     119             : 
     120             : /* Header file */
     121             : class _MYCLASS_ : public imgITools
     122             : {
     123             : public:
     124             :   NS_DECL_ISUPPORTS
     125             :   NS_DECL_IMGITOOLS
     126             : 
     127             :   _MYCLASS_();
     128             : 
     129             : private:
     130             :   ~_MYCLASS_();
     131             : 
     132             : protected:
     133             :   /* additional members */
     134             : };
     135             : 
     136             : /* Implementation file */
     137             : NS_IMPL_ISUPPORTS(_MYCLASS_, imgITools)
     138             : 
     139             : _MYCLASS_::_MYCLASS_()
     140             : {
     141             :   /* member initializers and constructor code */
     142             : }
     143             : 
     144             : _MYCLASS_::~_MYCLASS_()
     145             : {
     146             :   /* destructor code */
     147             : }
     148             : 
     149             : /* imgIContainer decodeImage (in nsIInputStream aStream, in ACString aMimeType); */
     150             : NS_IMETHODIMP _MYCLASS_::DecodeImage(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *_retval)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* [deprecated] void decodeImageData (in nsIInputStream aStream, in ACString aMimeType, inout imgIContainer aContainer); */
     156             : NS_IMETHODIMP _MYCLASS_::DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* nsIInputStream encodeImage (in imgIContainer aContainer, in ACString aMimeType, [optional] in AString outputOptions); */
     162             : NS_IMETHODIMP _MYCLASS_::EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* nsIInputStream encodeScaledImage (in imgIContainer aContainer, in ACString aMimeType, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
     168             : NS_IMETHODIMP _MYCLASS_::EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* imgILoader getImgLoaderForDocument (in nsIDOMDocument doc); */
     174             : NS_IMETHODIMP _MYCLASS_::GetImgLoaderForDocument(nsIDOMDocument *doc, imgILoader * *_retval)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* imgICache getImgCacheForDocument (in nsIDOMDocument doc); */
     180             : NS_IMETHODIMP _MYCLASS_::GetImgCacheForDocument(nsIDOMDocument *doc, imgICache * *_retval)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* nsIInputStream encodeCroppedImage (in imgIContainer aContainer, in ACString aMimeType, in long aOffsetX, in long aOffsetY, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
     186             : NS_IMETHODIMP _MYCLASS_::EncodeCroppedImage(imgIContainer *aContainer, const nsACString & aMimeType, int32_t aOffsetX, int32_t aOffsetY, int32_t aWidth, int32_t aHeight, const nsAString & outputOptions, nsIInputStream * *_retval)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* imgINotificationObserver createScriptedObserver (in imgIScriptedNotificationObserver aObserver); */
     192             : NS_IMETHODIMP _MYCLASS_::CreateScriptedObserver(imgIScriptedNotificationObserver *aObserver, imgINotificationObserver * *_retval)
     193             : {
     194             :     return NS_ERROR_NOT_IMPLEMENTED;
     195             : }
     196             : 
     197             : /* End of implementation class template. */
     198             : #endif
     199             : 
     200             : 
     201             : #endif /* __gen_imgITools_h__ */

Generated by: LCOV version 1.13