LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIScreen.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/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             :  * The display type of nsIScreen belongs to.
      19             :  */
      20             : enum class DisplayType: int32_t {
      21             :   DISPLAY_PRIMARY,  // primary screen
      22             :   DISPLAY_EXTERNAL, // wired displays, such as HDMI, DisplayPort, etc.
      23             :   DISPLAY_VIRTUAL   // wireless displays, such as Chromecast, WiFi-Display, etc.
      24             : };
      25             : 
      26             : /* starting interface:    nsIScreen */
      27             : #define NS_ISCREEN_IID_STR "826e80c8-d70f-42e2-8aa9-82c05f2a370a"
      28             : 
      29             : #define NS_ISCREEN_IID \
      30             :   {0x826e80c8, 0xd70f, 0x42e2, \
      31             :     { 0x8a, 0xa9, 0x82, 0xc0, 0x5f, 0x2a, 0x37, 0x0a }}
      32             : 
      33           3 : class NS_NO_VTABLE nsIScreen : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREEN_IID)
      37             : 
      38             :   /* void GetRect (out long left, out long top, out long width, out long height); */
      39             :   NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
      40             : 
      41             :   /* void GetAvailRect (out long left, out long top, out long width, out long height); */
      42             :   NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
      43             : 
      44             :   /* void GetRectDisplayPix (out long left, out long top, out long width, out long height); */
      45             :   NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
      46             : 
      47             :   /* void GetAvailRectDisplayPix (out long left, out long top, out long width, out long height); */
      48             :   NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
      49             : 
      50             :   /* readonly attribute long pixelDepth; */
      51             :   NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) = 0;
      52             : 
      53             :   /* readonly attribute long colorDepth; */
      54             :   NS_IMETHOD GetColorDepth(int32_t *aColorDepth) = 0;
      55             : 
      56             :   /* readonly attribute double contentsScaleFactor; */
      57             :   NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) = 0;
      58             : 
      59             :   /* readonly attribute double defaultCSSScaleFactor; */
      60             :   NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) = 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_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
      69             :   NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
      70             :   NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
      71             :   NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
      72             :   NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override; \
      73             :   NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override; \
      74             :   NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override; \
      75             :   NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) override; 
      76             : 
      77             : /* Use this macro when declaring the members of this interface when the
      78             :    class doesn't implement the interface. This is useful for forwarding. */
      79             : #define NS_DECL_NON_VIRTUAL_NSISCREEN \
      80             :   nsresult GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
      81             :   nsresult GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
      82             :   nsresult GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
      83             :   nsresult GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
      84             :   nsresult GetPixelDepth(int32_t *aPixelDepth); \
      85             :   nsresult GetColorDepth(int32_t *aColorDepth); \
      86             :   nsresult GetContentsScaleFactor(double *aContentsScaleFactor); \
      87             :   nsresult GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor); 
      88             : 
      89             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      90             : #define NS_FORWARD_NSISCREEN(_to) \
      91             :   NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetRect(left, top, width, height); } \
      92             :   NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetAvailRect(left, top, width, height); } \
      93             :   NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetRectDisplayPix(left, top, width, height); } \
      94             :   NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetAvailRectDisplayPix(left, top, width, height); } \
      95             :   NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override { return _to GetPixelDepth(aPixelDepth); } \
      96             :   NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override { return _to GetColorDepth(aColorDepth); } \
      97             :   NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override { return _to GetContentsScaleFactor(aContentsScaleFactor); } \
      98             :   NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) override { return _to GetDefaultCSSScaleFactor(aDefaultCSSScaleFactor); } 
      99             : 
     100             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     101             : #define NS_FORWARD_SAFE_NSISCREEN(_to) \
     102             :   NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRect(left, top, width, height); } \
     103             :   NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRect(left, top, width, height); } \
     104             :   NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRectDisplayPix(left, top, width, height); } \
     105             :   NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRectDisplayPix(left, top, width, height); } \
     106             :   NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
     107             :   NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } \
     108             :   NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentsScaleFactor(aContentsScaleFactor); } \
     109             :   NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultCSSScaleFactor(aDefaultCSSScaleFactor); } 
     110             : 
     111             : #if 0
     112             : /* Use the code below as a template for the implementation class for this interface. */
     113             : 
     114             : /* Header file */
     115             : class nsScreen : public nsIScreen
     116             : {
     117             : public:
     118             :   NS_DECL_ISUPPORTS
     119             :   NS_DECL_NSISCREEN
     120             : 
     121             :   nsScreen();
     122             : 
     123             : private:
     124             :   ~nsScreen();
     125             : 
     126             : protected:
     127             :   /* additional members */
     128             : };
     129             : 
     130             : /* Implementation file */
     131             : NS_IMPL_ISUPPORTS(nsScreen, nsIScreen)
     132             : 
     133             : nsScreen::nsScreen()
     134             : {
     135             :   /* member initializers and constructor code */
     136             : }
     137             : 
     138             : nsScreen::~nsScreen()
     139             : {
     140             :   /* destructor code */
     141             : }
     142             : 
     143             : /* void GetRect (out long left, out long top, out long width, out long height); */
     144             : NS_IMETHODIMP nsScreen::GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* void GetAvailRect (out long left, out long top, out long width, out long height); */
     150             : NS_IMETHODIMP nsScreen::GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* void GetRectDisplayPix (out long left, out long top, out long width, out long height); */
     156             : NS_IMETHODIMP nsScreen::GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* void GetAvailRectDisplayPix (out long left, out long top, out long width, out long height); */
     162             : NS_IMETHODIMP nsScreen::GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* readonly attribute long pixelDepth; */
     168             : NS_IMETHODIMP nsScreen::GetPixelDepth(int32_t *aPixelDepth)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* readonly attribute long colorDepth; */
     174             : NS_IMETHODIMP nsScreen::GetColorDepth(int32_t *aColorDepth)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* readonly attribute double contentsScaleFactor; */
     180             : NS_IMETHODIMP nsScreen::GetContentsScaleFactor(double *aContentsScaleFactor)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* readonly attribute double defaultCSSScaleFactor; */
     186             : NS_IMETHODIMP nsScreen::GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* End of implementation class template. */
     192             : #endif
     193             : 
     194             : 
     195             : #endif /* __gen_nsIScreen_h__ */

Generated by: LCOV version 1.13