nsIDOMWindow2.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/base/nsIDOMWindow2.idl
  3. */
  4. #ifndef __gen_nsIDOMWindow2_h__
  5. #define __gen_nsIDOMWindow2_h__
  6. #ifndef __gen_nsIDOMWindow_h__
  7. #include "nsIDOMWindow.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: nsIDOMWindow2 */
  14. #define NS_IDOMWINDOW2_IID_STR "65455132-b96a-40ec-adea-52fa22b1028c"
  15. #define NS_IDOMWINDOW2_IID \
  16. {0x65455132, 0xb96a, 0x40ec, \
  17. { 0xad, 0xea, 0x52, 0xfa, 0x22, 0xb1, 0x02, 0x8c }}
  18. class NS_NO_VTABLE nsIDOMWindow2 : public nsIDOMWindow {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMWINDOW2_IID)
  21. /**
  22. * Get the window root for this window. This is useful for hooking
  23. * up event listeners to this window and every other window nested
  24. * in the window root.
  25. */
  26. /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  27. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0;
  28. };
  29. /* Use this macro when declaring classes that implement this interface. */
  30. #define NS_DECL_NSIDOMWINDOW2 \
  31. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot);
  32. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  33. #define NS_FORWARD_NSIDOMWINDOW2(_to) \
  34. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return _to GetWindowRoot(aWindowRoot); }
  35. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  36. #define NS_FORWARD_SAFE_NSIDOMWINDOW2(_to) \
  37. NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowRoot(aWindowRoot); }
  38. #if 0
  39. /* Use the code below as a template for the implementation class for this interface. */
  40. /* Header file */
  41. class nsDOMWindow2 : public nsIDOMWindow2
  42. {
  43. public:
  44. NS_DECL_ISUPPORTS
  45. NS_DECL_NSIDOMWINDOW2
  46. nsDOMWindow2();
  47. private:
  48. ~nsDOMWindow2();
  49. protected:
  50. /* additional members */
  51. };
  52. /* Implementation file */
  53. NS_IMPL_ISUPPORTS1(nsDOMWindow2, nsIDOMWindow2)
  54. nsDOMWindow2::nsDOMWindow2()
  55. {
  56. /* member initializers and constructor code */
  57. }
  58. nsDOMWindow2::~nsDOMWindow2()
  59. {
  60. /* destructor code */
  61. }
  62. /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  63. NS_IMETHODIMP nsDOMWindow2::GetWindowRoot(nsIDOMEventTarget * *aWindowRoot)
  64. {
  65. return NS_ERROR_NOT_IMPLEMENTED;
  66. }
  67. /* End of implementation class template. */
  68. #endif
  69. #endif /* __gen_nsIDOMWindow2_h__ */