/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIScreenManager.idl
 */

#ifndef __gen_nsIScreenManager_h__
#define __gen_nsIScreenManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIScreen_h__
#include "nsIScreen.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIScreenManager */
#define NS_ISCREENMANAGER_IID_STR "e224bd44-252b-4b66-b869-99738250904a"

#define NS_ISCREENMANAGER_IID \
  {0xe224bd44, 0x252b, 0x4b66, \
    { 0xb8, 0x69, 0x99, 0x73, 0x82, 0x50, 0x90, 0x4a }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIScreenManager : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREENMANAGER_IID)

  /* nsIScreen screenForRect (in long left, in long top, in long width, in long height); */
  NS_SCRIPTABLE NS_IMETHOD ScreenForRect(PRInt32 left, PRInt32 top, PRInt32 width, PRInt32 height, nsIScreen **_retval NS_OUTPARAM) = 0;

  /* readonly attribute nsIScreen primaryScreen; */
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) = 0;

  /* readonly attribute unsigned long numberOfScreens; */
  NS_SCRIPTABLE NS_IMETHOD GetNumberOfScreens(PRUint32 *aNumberOfScreens) = 0;

  /* [noscript] nsIScreen screenForNativeWidget (in voidPtr nativeWidget); */
  NS_IMETHOD ScreenForNativeWidget(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIScreenManager, NS_ISCREENMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCREENMANAGER \
  NS_SCRIPTABLE NS_IMETHOD ScreenForRect(PRInt32 left, PRInt32 top, PRInt32 width, PRInt32 height, nsIScreen **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen); \
  NS_SCRIPTABLE NS_IMETHOD GetNumberOfScreens(PRUint32 *aNumberOfScreens); \
  NS_IMETHOD ScreenForNativeWidget(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCREENMANAGER(_to) \
  NS_SCRIPTABLE NS_IMETHOD ScreenForRect(PRInt32 left, PRInt32 top, PRInt32 width, PRInt32 height, nsIScreen **_retval NS_OUTPARAM) { return _to ScreenForRect(left, top, width, height, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) { return _to GetPrimaryScreen(aPrimaryScreen); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumberOfScreens(PRUint32 *aNumberOfScreens) { return _to GetNumberOfScreens(aNumberOfScreens); } \
  NS_IMETHOD ScreenForNativeWidget(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) { return _to ScreenForNativeWidget(nativeWidget, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCREENMANAGER(_to) \
  NS_SCRIPTABLE NS_IMETHOD ScreenForRect(PRInt32 left, PRInt32 top, PRInt32 width, PRInt32 height, nsIScreen **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScreenForRect(left, top, width, height, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScreen(nsIScreen * *aPrimaryScreen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryScreen(aPrimaryScreen); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumberOfScreens(PRUint32 *aNumberOfScreens) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfScreens(aNumberOfScreens); } \
  NS_IMETHOD ScreenForNativeWidget(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScreenForNativeWidget(nativeWidget, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsScreenManager : public nsIScreenManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISCREENMANAGER

  nsScreenManager();

private:
  ~nsScreenManager();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScreenManager, nsIScreenManager)

nsScreenManager::nsScreenManager()
{
  /* member initializers and constructor code */
}

nsScreenManager::~nsScreenManager()
{
  /* destructor code */
}

/* nsIScreen screenForRect (in long left, in long top, in long width, in long height); */
NS_IMETHODIMP nsScreenManager::ScreenForRect(PRInt32 left, PRInt32 top, PRInt32 width, PRInt32 height, nsIScreen **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIScreen primaryScreen; */
NS_IMETHODIMP nsScreenManager::GetPrimaryScreen(nsIScreen * *aPrimaryScreen)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long numberOfScreens; */
NS_IMETHODIMP nsScreenManager::GetNumberOfScreens(PRUint32 *aNumberOfScreens)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] nsIScreen screenForNativeWidget (in voidPtr nativeWidget); */
NS_IMETHODIMP nsScreenManager::ScreenForNativeWidget(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIScreenManager_MOZILLA_1_9_1_BRANCH */
#define NS_ISCREENMANAGER_MOZILLA_1_9_1_BRANCH_IID_STR "ee561ea4-7409-46f9-b79c-9f98f7f21aec"

#define NS_ISCREENMANAGER_MOZILLA_1_9_1_BRANCH_IID \
  {0xee561ea4, 0x7409, 0x46f9, \
    { 0xb7, 0x9c, 0x9f, 0x98, 0xf7, 0xf2, 0x1a, 0xec }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIScreenManager_MOZILLA_1_9_1_BRANCH : public nsIScreenManager {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREENMANAGER_MOZILLA_1_9_1_BRANCH_IID)

  /* [noscript] nsIScreen screenForNativeWindow (in voidPtr nativeWidget); */
  NS_IMETHOD ScreenForNativeWindow(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIScreenManager_MOZILLA_1_9_1_BRANCH, NS_ISCREENMANAGER_MOZILLA_1_9_1_BRANCH_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCREENMANAGER_MOZILLA_1_9_1_BRANCH \
  NS_IMETHOD ScreenForNativeWindow(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCREENMANAGER_MOZILLA_1_9_1_BRANCH(_to) \
  NS_IMETHOD ScreenForNativeWindow(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) { return _to ScreenForNativeWindow(nativeWidget, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCREENMANAGER_MOZILLA_1_9_1_BRANCH(_to) \
  NS_IMETHOD ScreenForNativeWindow(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScreenForNativeWindow(nativeWidget, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsScreenManager_MOZILLA_1_9_1_BRANCH : public nsIScreenManager_MOZILLA_1_9_1_BRANCH
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISCREENMANAGER_MOZILLA_1_9_1_BRANCH

  nsScreenManager_MOZILLA_1_9_1_BRANCH();

private:
  ~nsScreenManager_MOZILLA_1_9_1_BRANCH();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScreenManager_MOZILLA_1_9_1_BRANCH, nsIScreenManager_MOZILLA_1_9_1_BRANCH)

nsScreenManager_MOZILLA_1_9_1_BRANCH::nsScreenManager_MOZILLA_1_9_1_BRANCH()
{
  /* member initializers and constructor code */
}

nsScreenManager_MOZILLA_1_9_1_BRANCH::~nsScreenManager_MOZILLA_1_9_1_BRANCH()
{
  /* destructor code */
}

/* [noscript] nsIScreen screenForNativeWindow (in voidPtr nativeWidget); */
NS_IMETHODIMP nsScreenManager_MOZILLA_1_9_1_BRANCH::ScreenForNativeWindow(void * nativeWidget, nsIScreen **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIScreenManager_h__ */
