PageRenderTime 24ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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. #ifndef __gen_nsIDOMBarProp_h__
  5. #define __gen_nsIDOMBarProp_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMBarProp */
  14. #define NS_IDOMBARPROP_IID_STR "9eb2c150-1d56-11d3-8221-0060083a0bcf"
  15. #define NS_IDOMBARPROP_IID \
  16. {0x9eb2c150, 0x1d56, 0x11d3, \
  17. { 0x82, 0x21, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMBarProp : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMBARPROP_IID)
  21. /**
  22. * The nsIDOMBarProp interface is the interface for controlling and
  23. * accessing the visibility of certain UI items (scrollbars, menubars,
  24. * toolbars, ...) through the DOM.
  25. *
  26. * @status FROZEN
  27. */
  28. /* attribute boolean visible; */
  29. NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) = 0;
  30. NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) = 0;
  31. };
  32. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMBarProp, NS_IDOMBARPROP_IID)
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMBARPROP \
  35. NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible); \
  36. NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMBARPROP(_to) \
  39. NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) { return _to GetVisible(aVisible); } \
  40. NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) { return _to SetVisible(aVisible); }
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  42. #define NS_FORWARD_SAFE_NSIDOMBARPROP(_to) \
  43. NS_SCRIPTABLE NS_IMETHOD GetVisible(PRBool *aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisible(aVisible); } \
  44. NS_SCRIPTABLE NS_IMETHOD SetVisible(PRBool aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisible(aVisible); }
  45. #if 0
  46. /* Use the code below as a template for the implementation class for this interface. */
  47. /* Header file */
  48. class nsDOMBarProp : public nsIDOMBarProp
  49. {
  50. public:
  51. NS_DECL_ISUPPORTS
  52. NS_DECL_NSIDOMBARPROP
  53. nsDOMBarProp();
  54. private:
  55. ~nsDOMBarProp();
  56. protected:
  57. /* additional members */
  58. };
  59. /* Implementation file */
  60. NS_IMPL_ISUPPORTS1(nsDOMBarProp, nsIDOMBarProp)
  61. nsDOMBarProp::nsDOMBarProp()
  62. {
  63. /* member initializers and constructor code */
  64. }
  65. nsDOMBarProp::~nsDOMBarProp()
  66. {
  67. /* destructor code */
  68. }
  69. /* attribute boolean visible; */
  70. NS_IMETHODIMP nsDOMBarProp::GetVisible(PRBool *aVisible)
  71. {
  72. return NS_ERROR_NOT_IMPLEMENTED;
  73. }
  74. NS_IMETHODIMP nsDOMBarProp::SetVisible(PRBool aVisible)
  75. {
  76. return NS_ERROR_NOT_IMPLEMENTED;
  77. }
  78. /* End of implementation class template. */
  79. #endif
  80. #endif /* __gen_nsIDOMBarProp_h__ */