LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIScreenManager.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/nsIScreenManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIScreenManager_h__
       6             : #define __gen_nsIScreenManager_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIScreen_h__
      14             : #include "nsIScreen.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : 
      22             : /* starting interface:    nsIScreenManager */
      23             : #define NS_ISCREENMANAGER_IID_STR "e8a96e60-6b61-4a14-bacc-53891604b502"
      24             : 
      25             : #define NS_ISCREENMANAGER_IID \
      26             :   {0xe8a96e60, 0x6b61, 0x4a14, \
      27             :     { 0xba, 0xcc, 0x53, 0x89, 0x16, 0x04, 0xb5, 0x02 }}
      28             : 
      29           3 : class NS_NO_VTABLE nsIScreenManager : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREENMANAGER_IID)
      33             : 
      34             :   /* nsIScreen screenForRect (in long left, in long top, in long width, in long height); */
      35             :   NS_IMETHOD ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval) = 0;
      36             : 
      37             :   /* readonly attribute nsIScreen primaryScreen; */
      38             :   NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScreenManager, NS_ISCREENMANAGER_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSISCREENMANAGER \
      46             :   NS_IMETHOD ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval) override; \
      47             :   NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSISCREENMANAGER \
      52             :   nsresult ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval); \
      53             :   nsresult GetPrimaryScreen(nsIScreen * *aPrimaryScreen); 
      54             : 
      55             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56             : #define NS_FORWARD_NSISCREENMANAGER(_to) \
      57             :   NS_IMETHOD ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval) override { return _to ScreenForRect(left, top, width, height, _retval); } \
      58             :   NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) override { return _to GetPrimaryScreen(aPrimaryScreen); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSISCREENMANAGER(_to) \
      62             :   NS_IMETHOD ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScreenForRect(left, top, width, height, _retval); } \
      63             :   NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryScreen(aPrimaryScreen); } 
      64             : 
      65             : #if 0
      66             : /* Use the code below as a template for the implementation class for this interface. */
      67             : 
      68             : /* Header file */
      69             : class nsScreenManager : public nsIScreenManager
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSISCREENMANAGER
      74             : 
      75             :   nsScreenManager();
      76             : 
      77             : private:
      78             :   ~nsScreenManager();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsScreenManager, nsIScreenManager)
      86             : 
      87             : nsScreenManager::nsScreenManager()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsScreenManager::~nsScreenManager()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* nsIScreen screenForRect (in long left, in long top, in long width, in long height); */
      98             : NS_IMETHODIMP nsScreenManager::ScreenForRect(int32_t left, int32_t top, int32_t width, int32_t height, nsIScreen * *_retval)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* readonly attribute nsIScreen primaryScreen; */
     104             : NS_IMETHODIMP nsScreenManager::GetPrimaryScreen(nsIScreen * *aPrimaryScreen)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* End of implementation class template. */
     110             : #endif
     111             : 
     112             : 
     113             : #endif /* __gen_nsIScreenManager_h__ */

Generated by: LCOV version 1.13