/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsITabChild.idl
 */

#ifndef __gen_nsITabChild_h__
#define __gen_nsITabChild_h__


#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIContentFrameMessageManager; /* forward declaration */

class nsIWebBrowserChrome3; /* forward declaration */


/* starting interface:    nsITabChild */
#define NS_ITABCHILD_IID_STR "7227bac4-b6fe-4090-aeb4-bc288b790925"

#define NS_ITABCHILD_IID \
  {0x7227bac4, 0xb6fe, 0x4090, \
    { 0xae, 0xb4, 0xbc, 0x28, 0x8b, 0x79, 0x09, 0x25 }}

class NS_NO_VTABLE nsITabChild : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITABCHILD_IID)

  /* readonly attribute nsIContentFrameMessageManager messageManager; */
  NS_IMETHOD GetMessageManager(nsIContentFrameMessageManager * *aMessageManager) = 0;

  /* attribute nsIWebBrowserChrome3 webBrowserChrome; */
  NS_IMETHOD GetWebBrowserChrome(nsIWebBrowserChrome3 * *aWebBrowserChrome) = 0;
  NS_IMETHOD SetWebBrowserChrome(nsIWebBrowserChrome3 *aWebBrowserChrome) = 0;

  /* [notxpcom] void sendRequestFocus (in boolean canFocus); */
  NS_IMETHOD_(void) SendRequestFocus(bool canFocus) = 0;

  /* [noscript,notxpcom] void enableDisableCommands (in AString action, in CommandsArrayRef enabledCommands, in CommandsArrayRef disabledCommands); */
  NS_IMETHOD_(void) EnableDisableCommands(const nsAString & action, nsTArray<nsCString> & enabledCommands, nsTArray<nsCString> & disabledCommands) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITabChild, NS_ITABCHILD_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITABCHILD \
  NS_IMETHOD GetMessageManager(nsIContentFrameMessageManager * *aMessageManager) MOZ_OVERRIDE; \
  NS_IMETHOD GetWebBrowserChrome(nsIWebBrowserChrome3 * *aWebBrowserChrome) MOZ_OVERRIDE; \
  NS_IMETHOD SetWebBrowserChrome(nsIWebBrowserChrome3 *aWebBrowserChrome) MOZ_OVERRIDE; \
  NS_IMETHOD_(void) SendRequestFocus(bool canFocus) MOZ_OVERRIDE; \
  NS_IMETHOD_(void) EnableDisableCommands(const nsAString & action, nsTArray<nsCString> & enabledCommands, nsTArray<nsCString> & disabledCommands) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITABCHILD(_to) \
  NS_IMETHOD GetMessageManager(nsIContentFrameMessageManager * *aMessageManager) MOZ_OVERRIDE { return _to GetMessageManager(aMessageManager); } \
  NS_IMETHOD GetWebBrowserChrome(nsIWebBrowserChrome3 * *aWebBrowserChrome) MOZ_OVERRIDE { return _to GetWebBrowserChrome(aWebBrowserChrome); } \
  NS_IMETHOD SetWebBrowserChrome(nsIWebBrowserChrome3 *aWebBrowserChrome) MOZ_OVERRIDE { return _to SetWebBrowserChrome(aWebBrowserChrome); } \
  NS_IMETHOD_(void) SendRequestFocus(bool canFocus) MOZ_OVERRIDE { return _to SendRequestFocus(canFocus); } \
  NS_IMETHOD_(void) EnableDisableCommands(const nsAString & action, nsTArray<nsCString> & enabledCommands, nsTArray<nsCString> & disabledCommands) MOZ_OVERRIDE { return _to EnableDisableCommands(action, enabledCommands, disabledCommands); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITABCHILD(_to) \
  NS_IMETHOD GetMessageManager(nsIContentFrameMessageManager * *aMessageManager) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); } \
  NS_IMETHOD GetWebBrowserChrome(nsIWebBrowserChrome3 * *aWebBrowserChrome) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWebBrowserChrome(aWebBrowserChrome); } \
  NS_IMETHOD SetWebBrowserChrome(nsIWebBrowserChrome3 *aWebBrowserChrome) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWebBrowserChrome(aWebBrowserChrome); } \
  NS_IMETHOD_(void) SendRequestFocus(bool canFocus) MOZ_OVERRIDE; \
  NS_IMETHOD_(void) EnableDisableCommands(const nsAString & action, nsTArray<nsCString> & enabledCommands, nsTArray<nsCString> & disabledCommands) MOZ_OVERRIDE; 

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

/* Header file */
class nsTabChild : public nsITabChild
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITABCHILD

  nsTabChild();

private:
  ~nsTabChild();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsTabChild, nsITabChild)

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

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

/* readonly attribute nsIContentFrameMessageManager messageManager; */
NS_IMETHODIMP nsTabChild::GetMessageManager(nsIContentFrameMessageManager * *aMessageManager)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIWebBrowserChrome3 webBrowserChrome; */
NS_IMETHODIMP nsTabChild::GetWebBrowserChrome(nsIWebBrowserChrome3 * *aWebBrowserChrome)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTabChild::SetWebBrowserChrome(nsIWebBrowserChrome3 *aWebBrowserChrome)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [notxpcom] void sendRequestFocus (in boolean canFocus); */
NS_IMETHODIMP_(void) nsTabChild::SendRequestFocus(bool canFocus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript,notxpcom] void enableDisableCommands (in AString action, in CommandsArrayRef enabledCommands, in CommandsArrayRef disabledCommands); */
NS_IMETHODIMP_(void) nsTabChild::EnableDisableCommands(const nsAString & action, nsTArray<nsCString> & enabledCommands, nsTArray<nsCString> & disabledCommands)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsITabChild_h__ */
