LCOV - app.info - objdir/dist/include/nsIScreen.h

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/widget/nsIScreen.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIScreen_h__
           6                 : #define __gen_nsIScreen_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                 :
          18                 : /* starting interface:    nsIScreen */
          19                 : #define NS_ISCREEN_IID_STR "d961f76e-8437-4bc6-9ada-a1c98ace9560"
          20                 :
          21                 : #define NS_ISCREEN_IID \
          22                 :   {0xd961f76e, 0x8437, 0x4bc6, \
          23                 :     { 0x9a, 0xda, 0xa1, 0xc9, 0x8a, 0xce, 0x95, 0x60 }}
          24                 :
          25               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScreen : public nsISupports {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREEN_IID)
          29                 :
          30                 :   enum {
          31                 :     BRIGHTNESS_DIM = 0U,
          32                 :     BRIGHTNESS_FULL = 1U,
          33                 :     BRIGHTNESS_LEVELS = 2U,
          34                 :     ROTATION_0_DEG = 0U,
          35                 :     ROTATION_90_DEG = 1U,
          36                 :     ROTATION_180_DEG = 2U,
          37                 :     ROTATION_270_DEG = 3U
          38                 :   };
          39                 :
          40                 :   /* void GetRect (out long left, out long top, out long width, out long height); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD GetRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) = 0;
          42                 :
          43                 :   /* void GetAvailRect (out long left, out long top, out long width, out long height); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD GetAvailRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) = 0;
          45                 :
          46                 :   /* void lockMinimumBrightness (in unsigned long brightness); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD LockMinimumBrightness(PRUint32 brightness) = 0;
          48                 :
          49                 :   /* void unlockMinimumBrightness (in unsigned long brightness); */
          50                 :   NS_SCRIPTABLE NS_IMETHOD UnlockMinimumBrightness(PRUint32 brightness) = 0;
          51                 :
          52                 :   /* readonly attribute long pixelDepth; */
          53                 :   NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) = 0;
          54                 :
          55                 :   /* readonly attribute long colorDepth; */
          56                 :   NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) = 0;
          57                 :
          58                 :   /* attribute unsigned long rotation; */
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetRotation(PRUint32 *aRotation) = 0;
          60                 :   NS_SCRIPTABLE NS_IMETHOD SetRotation(PRUint32 aRotation) = 0;
          61                 :
          62                 : };
          63                 :
          64                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScreen, NS_ISCREEN_IID)
          65                 :
          66                 : /* Use this macro when declaring classes that implement this interface. */
          67                 : #define NS_DECL_NSISCREEN \
          68                 :   NS_SCRIPTABLE NS_IMETHOD GetRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM); \
          69                 :   NS_SCRIPTABLE NS_IMETHOD GetAvailRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM); \
          70                 :   NS_SCRIPTABLE NS_IMETHOD LockMinimumBrightness(PRUint32 brightness); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD UnlockMinimumBrightness(PRUint32 brightness); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth); \
          74                 :   NS_SCRIPTABLE NS_IMETHOD GetRotation(PRUint32 *aRotation); \
          75                 :   NS_SCRIPTABLE NS_IMETHOD SetRotation(PRUint32 aRotation);
          76                 :
          77                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          78                 : #define NS_FORWARD_NSISCREEN(_to) \
          79                 :   NS_SCRIPTABLE NS_IMETHOD GetRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return _to GetRect(left, top, width, height); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD GetAvailRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return _to GetAvailRect(left, top, width, height); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD LockMinimumBrightness(PRUint32 brightness) { return _to LockMinimumBrightness(brightness); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD UnlockMinimumBrightness(PRUint32 brightness) { return _to UnlockMinimumBrightness(brightness); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return _to GetPixelDepth(aPixelDepth); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return _to GetColorDepth(aColorDepth); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetRotation(PRUint32 *aRotation) { return _to GetRotation(aRotation); } \
          86                 :   NS_SCRIPTABLE NS_IMETHOD SetRotation(PRUint32 aRotation) { return _to SetRotation(aRotation); }
          87                 :
          88                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          89                 : #define NS_FORWARD_SAFE_NSISCREEN(_to) \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRect(left, top, width, height); } \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetAvailRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRect(left, top, width, height); } \
          92                 :   NS_SCRIPTABLE NS_IMETHOD LockMinimumBrightness(PRUint32 brightness) { return !_to ? NS_ERROR_NULL_POINTER : _to->LockMinimumBrightness(brightness); } \
          93                 :   NS_SCRIPTABLE NS_IMETHOD UnlockMinimumBrightness(PRUint32 brightness) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockMinimumBrightness(brightness); } \
          94                 :   NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD GetRotation(PRUint32 *aRotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRotation(aRotation); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD SetRotation(PRUint32 aRotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRotation(aRotation); }
          98                 :
          99                 : #if 0
         100                 : /* Use the code below as a template for the implementation class for this interface. */
         101                 :
         102                 : /* Header file */
         103                 : class nsScreen : public nsIScreen
         104                 : {
         105                 : public:
         106                 :   NS_DECL_ISUPPORTS
         107                 :   NS_DECL_NSISCREEN
         108                 :
         109                 :   nsScreen();
         110                 :
         111                 : private:
         112                 :   ~nsScreen();
         113                 :
         114                 : protected:
         115                 :   /* additional members */
         116                 : };
         117                 :
         118                 : /* Implementation file */
         119                 : NS_IMPL_ISUPPORTS1(nsScreen, nsIScreen)
         120                 :
         121                 : nsScreen::nsScreen()
         122                 : {
         123                 :   /* member initializers and constructor code */
         124                 : }
         125                 :
         126                 : nsScreen::~nsScreen()
         127                 : {
         128                 :   /* destructor code */
         129                 : }
         130                 :
         131                 : /* void GetRect (out long left, out long top, out long width, out long height); */
         132                 : NS_IMETHODIMP nsScreen::GetRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM)
         133                 : {
         134                 :     return NS_ERROR_NOT_IMPLEMENTED;
         135                 : }
         136                 :
         137                 : /* void GetAvailRect (out long left, out long top, out long width, out long height); */
         138                 : NS_IMETHODIMP nsScreen::GetAvailRect(PRInt32 *left NS_OUTPARAM, PRInt32 *top NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM)
         139                 : {
         140                 :     return NS_ERROR_NOT_IMPLEMENTED;
         141                 : }
         142                 :
         143                 : /* void lockMinimumBrightness (in unsigned long brightness); */
         144                 : NS_IMETHODIMP nsScreen::LockMinimumBrightness(PRUint32 brightness)
         145                 : {
         146                 :     return NS_ERROR_NOT_IMPLEMENTED;
         147                 : }
         148                 :
         149                 : /* void unlockMinimumBrightness (in unsigned long brightness); */
         150                 : NS_IMETHODIMP nsScreen::UnlockMinimumBrightness(PRUint32 brightness)
         151                 : {
         152                 :     return NS_ERROR_NOT_IMPLEMENTED;
         153                 : }
         154                 :
         155                 : /* readonly attribute long pixelDepth; */
         156                 : NS_IMETHODIMP nsScreen::GetPixelDepth(PRInt32 *aPixelDepth)
         157                 : {
         158                 :     return NS_ERROR_NOT_IMPLEMENTED;
         159                 : }
         160                 :
         161                 : /* readonly attribute long colorDepth; */
         162                 : NS_IMETHODIMP nsScreen::GetColorDepth(PRInt32 *aColorDepth)
         163                 : {
         164                 :     return NS_ERROR_NOT_IMPLEMENTED;
         165                 : }
         166                 :
         167                 : /* attribute unsigned long rotation; */
         168                 : NS_IMETHODIMP nsScreen::GetRotation(PRUint32 *aRotation)
         169                 : {
         170                 :     return NS_ERROR_NOT_IMPLEMENTED;
         171                 : }
         172                 : NS_IMETHODIMP nsScreen::SetRotation(PRUint32 aRotation)
         173                 : {
         174                 :     return NS_ERROR_NOT_IMPLEMENTED;
         175                 : }
         176                 :
         177                 : /* End of implementation class template. */
         178                 : #endif
         179                 :
         180                 :
         181                 : #endif /* __gen_nsIScreen_h__ */

Generated by: LCOV version 1.7