PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

/gecko_api/include/nsIDOMBarProp.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 106 lines | 56 code | 26 blank | 24 comment | 0 complexity | 78a2c7c1fa4ca18e486cd3dd2c038cab MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/base/nsIDOMBarProp.idl
  3 */
  4
  5#ifndef __gen_nsIDOMBarProp_h__
  6#define __gen_nsIDOMBarProp_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.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:    nsIDOMBarProp */
 19#define NS_IDOMBARPROP_IID_STR "9eb2c150-1d56-11d3-8221-0060083a0bcf"
 20
 21#define NS_IDOMBARPROP_IID \
 22  {0x9eb2c150, 0x1d56, 0x11d3, \
 23    { 0x82, 0x21, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMBarProp : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMBARPROP_IID)
 29
 30  /**
 31 * The nsIDOMBarProp interface is the interface for controlling and
 32 * accessing the visibility of certain UI items (scrollbars, menubars,
 33 * toolbars, ...) through the DOM.
 34 *
 35 * @status FROZEN
 36 */
 37  /* attribute boolean visible; */
 38  NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) = 0;
 39  NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) = 0;
 40
 41};
 42
 43  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMBarProp, NS_IDOMBARPROP_IID)
 44
 45/* Use this macro when declaring classes that implement this interface. */
 46#define NS_DECL_NSIDOMBARPROP \
 47  NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible); \
 48  NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMBARPROP(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) { return _to GetVisible(aVisible); } \
 53  NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) { return _to SetVisible(aVisible); } 
 54
 55/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 56#define NS_FORWARD_SAFE_NSIDOMBARPROP(_to) \
 57  NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisible(aVisible); } \
 58  NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisible(aVisible); } 
 59
 60#if 0
 61/* Use the code below as a template for the implementation class for this interface. */
 62
 63/* Header file */
 64class nsDOMBarProp : public nsIDOMBarProp
 65{
 66public:
 67  NS_DECL_ISUPPORTS
 68  NS_DECL_NSIDOMBARPROP
 69
 70  nsDOMBarProp();
 71
 72private:
 73  ~nsDOMBarProp();
 74
 75protected:
 76  /* additional members */
 77};
 78
 79/* Implementation file */
 80NS_IMPL_ISUPPORTS1(nsDOMBarProp, nsIDOMBarProp)
 81
 82nsDOMBarProp::nsDOMBarProp()
 83{
 84  /* member initializers and constructor code */
 85}
 86
 87nsDOMBarProp::~nsDOMBarProp()
 88{
 89  /* destructor code */
 90}
 91
 92/* attribute boolean visible; */
 93NS_IMETHODIMP nsDOMBarProp::GetVisible(PRBool *aVisible)
 94{
 95    return NS_ERROR_NOT_IMPLEMENTED;
 96}
 97NS_IMETHODIMP nsDOMBarProp::SetVisible(PRBool aVisible)
 98{
 99    return NS_ERROR_NOT_IMPLEMENTED;
100}
101
102/* End of implementation class template. */
103#endif
104
105
106#endif /* __gen_nsIDOMBarProp_h__ */