PageRenderTime 223ms CodeModel.GetById 208ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentView.h

http://firefox-mac-pdf.googlecode.com/
C Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | af880a6b5008cc8974fe45310d7f431b 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/nsIDOMDocumentView.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentView_h__
  5. #define __gen_nsIDOMDocumentView_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: nsIDOMDocumentView */
  14. #define NS_IDOMDOCUMENTVIEW_IID_STR "1acdb2ba-1dd2-11b2-95bc-9542495d2569"
  15. #define NS_IDOMDOCUMENTVIEW_IID \
  16. {0x1acdb2ba, 0x1dd2, 0x11b2, \
  17. { 0x95, 0xbc, 0x95, 0x42, 0x49, 0x5d, 0x25, 0x69 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentView : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTVIEW_IID)
  21. /**
  22. * The nsIDOMDocumentView interface is a datatype for a document that
  23. * supports views in the 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 nsIDOMAbstractView defaultView; */
  31. NS_SCRIPTABLE NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) = 0;
  32. };
  33. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentView, NS_IDOMDOCUMENTVIEW_IID)
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMDOCUMENTVIEW \
  36. NS_SCRIPTABLE NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMDOCUMENTVIEW(_to) \
  39. NS_SCRIPTABLE NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) { return _to GetDefaultView(aDefaultView); }
  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_NSIDOMDOCUMENTVIEW(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultView(aDefaultView); }
  43. #if 0
  44. /* Use the code below as a template for the implementation class for this interface. */
  45. /* Header file */
  46. class nsDOMDocumentView : public nsIDOMDocumentView
  47. {
  48. public:
  49. NS_DECL_ISUPPORTS
  50. NS_DECL_NSIDOMDOCUMENTVIEW
  51. nsDOMDocumentView();
  52. private:
  53. ~nsDOMDocumentView();
  54. protected:
  55. /* additional members */
  56. };
  57. /* Implementation file */
  58. NS_IMPL_ISUPPORTS1(nsDOMDocumentView, nsIDOMDocumentView)
  59. nsDOMDocumentView::nsDOMDocumentView()
  60. {
  61. /* member initializers and constructor code */
  62. }
  63. nsDOMDocumentView::~nsDOMDocumentView()
  64. {
  65. /* destructor code */
  66. }
  67. /* readonly attribute nsIDOMAbstractView defaultView; */
  68. NS_IMETHODIMP nsDOMDocumentView::GetDefaultView(nsIDOMAbstractView * *aDefaultView)
  69. {
  70. return NS_ERROR_NOT_IMPLEMENTED;
  71. }
  72. /* End of implementation class template. */
  73. #endif
  74. #endif /* __gen_nsIDOMDocumentView_h__ */