PageRenderTime 27ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMAbstractView.h

http://firefox-mac-pdf.googlecode.com/
C Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | f26906a19b942b9d6b09b7b88ac565f1 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/views/nsIDOMAbstractView.idl
  3. */
  4. #ifndef __gen_nsIDOMAbstractView_h__
  5. #define __gen_nsIDOMAbstractView_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: nsIDOMAbstractView */
  14. #define NS_IDOMABSTRACTVIEW_IID_STR "f51ebade-8b1a-11d3-aae7-0010830123b4"
  15. #define NS_IDOMABSTRACTVIEW_IID \
  16. {0xf51ebade, 0x8b1a, 0x11d3, \
  17. { 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMAbstractView : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMABSTRACTVIEW_IID)
  21. /**
  22. * The nsIDOMAbstractView interface is a datatype for a view in the
  23. * Document Object Model.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Views
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute nsIDOMDocumentView document; */
  31. NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) = 0;
  32. };
  33. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMAbstractView, NS_IDOMABSTRACTVIEW_IID)
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMABSTRACTVIEW \
  36. NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMABSTRACTVIEW(_to) \
  39. NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) { return _to GetDocument(aDocument); }
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  41. #define NS_FORWARD_SAFE_NSIDOMABSTRACTVIEW(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); }
  43. #if 0
  44. /* Use the code below as a template for the implementation class for this interface. */
  45. /* Header file */
  46. class nsDOMAbstractView : public nsIDOMAbstractView
  47. {
  48. public:
  49. NS_DECL_ISUPPORTS
  50. NS_DECL_NSIDOMABSTRACTVIEW
  51. nsDOMAbstractView();
  52. private:
  53. ~nsDOMAbstractView();
  54. protected:
  55. /* additional members */
  56. };
  57. /* Implementation file */
  58. NS_IMPL_ISUPPORTS1(nsDOMAbstractView, nsIDOMAbstractView)
  59. nsDOMAbstractView::nsDOMAbstractView()
  60. {
  61. /* member initializers and constructor code */
  62. }
  63. nsDOMAbstractView::~nsDOMAbstractView()
  64. {
  65. /* destructor code */
  66. }
  67. /* readonly attribute nsIDOMDocumentView document; */
  68. NS_IMETHODIMP nsDOMAbstractView::GetDocument(nsIDOMDocumentView * *aDocument)
  69. {
  70. return NS_ERROR_NOT_IMPLEMENTED;
  71. }
  72. /* End of implementation class template. */
  73. #endif
  74. #endif /* __gen_nsIDOMAbstractView_h__ */